Archive for the ‘*nix’ Category
Posted by jpluimers on 2014/03/25
As a follow up on my recent rsync on ESXi 5.1 post, as – when rsync in ESXi terminates the hard way because of a lost SSH connection – rsync can leave “hidden” files behind.
A small script that recursively shows the hidden files (those starting with a dot) starting from the current directory:
find . -iname ".*"
More of those (including deleting them, filtering for only files or only directories, etc) are at Linux / UNIX: Bash Find And Delete All Hidden Files Directories.
Note: don’t try to outsmart using something like piping through grep "\/\." as that will also match files who’s parent directories are hidden.
–jeroen
via:
Posted in *nix, Apple, bash, Development, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development, SuSE Linux, VMware, VMware ESXi | Tagged: hidden files, rsync | Leave a Comment »
Posted by jpluimers on 2014/03/24
Blast from the past, and happy I found back the original blog that pointed me to this: Not a complete failure » Blog Archive » How to copy a file with I/O errors?.
A long while ago, I helped out a friend with a HDD that was partially working. He neede the bits of a file that had become unreadable by regular means.
dd to the rescue: it takes a lot longer, but gets the job done eventually. Eventually can be T+eternity.
Note that you always should copy such a file to another drive, like described in the above blog.
Something like this (the parameters are explained at the dd man page):
dd if=/mounting-path/directory-path/damaged.mp4 of=resurrected.mp4 conv=noerror,sync
Usually for creating disk images, dd works on *n*x, Mac OS X, Windows with for instance Cygwin, ESXi, etc.
See also: linux – Rescuing a hdd with bad sectors: dd vs gddrescue – Super User.
–jeroen
via: Not a complete failure » Blog Archive » How to copy a file with I/O errors?.
Posted in *nix, Apple, Cygwin, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, SuSE Linux, VMware, VMware ESXi | Leave a Comment »
Posted by jpluimers on 2014/03/23
Interesting: ESXi 5.1 and rsync – damiendebin.net. It works in ESXi 5.5 too, and the French link below has a version that runs on ESXi 4.
Now you can do these forms of backup:
Posted in *nix, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Power User, VMware, VMware ESXi, wget | 6 Comments »
Posted by jpluimers on 2014/03/22
If your downloaded WinSCP install ever throws this error, and you cannot find the cause on the WinSCP forums, then this is probably the reason:
The caption of the error message should be enough: Windows thinks it is a 16-bit MS-DOS program, not a Windows installer.
This means that the install download went wrong. In my case, I downloaded it through this wget command:
wget -m -np http://winscp.net/download/winscp552setup.exe
At first I thought that WinSCP has a referrer check, so this is the command that would work (similar to wget direct download with referer: SpeedFan):
wget -m -np --referer=http://winscp.net/eng/download.php http://winscp.net/download/winscp552setup.exe
Read the rest of this entry »
Posted in *nix, Power User, wget, Windows, Windows XP | Leave a Comment »
Posted by jpluimers on 2014/03/07
lesspipe is a great tool:
lesspipe.sh is an input filter for the pager less as described in less‘s man page. The script allows you to view files with binary content, compressed files, archives and files contained in archives.
… however getting it to run on OpenSUSE was a bit of a journey as it is not part of the standard OpenSUSE 12.x repository. You can only get ‘unstable’ lesspipe packages, of which the Show home:adra / lesspipe – openSUSE Build Service seems to be maintained most frequently.
This is how to install it from there: Read the rest of this entry »
Posted in *nix, bash, Development, Linux, openSuSE, Power User, Scripting, Software Development, SuSE Linux | 2 Comments »
Posted by jpluimers on 2014/02/13
Just append -O and -v to a command-line:
nmap -O -v ip-address
Note you need administrative privileges for this on Mac OS X, so there you run it like this:
sudo nmap -O -v ip-address
If you want to scan more than the default 1000 TCP ports, then use the -p- switch:
sudo nmap -O -v -p- ip-address
For more info about the finger printing algorithms used by nmap:
–jeroen
via: Usage and Examples.
Posted in *nix, Apple, Linux, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, SuSE Linux | Tagged: administrative privileges, nmap | Leave a Comment »