The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘*nix’ Category

How to copy a file with I/O errors? (via: Not a complete failure » Blog Archive)

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 »

Best Buy Guides (BBGs) – mux’ blog – Tweakblogs – Tweakers

Posted by jpluimers on 2014/03/23

Interesting as it talks about both ZFS and ESXi servers with ECC memory: Best Buy Guides (BBGs) – mux’ blog – Tweakblogs – Tweakers.

Posted in *nix, ESXi5, ESXi5.1, ESXi5.5, Power User, VMware, VMware ESXi, ZFS | Leave a Comment »

ESXi 5.1 and rsync – damiendebin.net.

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 »

WinSCP installer error because WinSCP site thinks wget can parse JavaScript.

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 »

Reference card for Linux performance and analysis tools (via: Antony Peel – Google+)

Posted by jpluimers on 2014/03/19

Brilliant reference card for Linux performance and analysis tools.

Click on the below image to enlarge.

Tools covered in the card: Read the rest of this entry »

Posted in *nix, Linux, Power User, SuSE Linux | 5 Comments »

Headless: PC Engines APU System Boards Feature AMD G-Series T40E APU, 3 Gigabit Ethernet Ports

Posted by jpluimers on 2014/03/10

Interesting for instance for a pfSense router: [Wayback/Archive] PC Engines APU System Boards Feature AMD G-Series T40E APU, 3 Gigabit Ethernet Ports.

–jeroen

Posted in *nix, APU, Hardware, Internet, Network-and-equipment, Power User, routers | Leave a Comment »

OpenSUSE 12.2: Install package lesspipe and using it from bash

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 »

Interesting Linux incoming mail setup using EXIM and Procmail (via: Kristian Köhntopp – Google+)

Posted by jpluimers on 2014/02/27

Very interesting: Kristian Köhntopp – Google+ – user-ordner@domain.de- Eine Anleitung für Exim-Benutzer ….

Will try that when I build my next Linux based mail server.

Edit: Kristian Köhntopp – Google+ – Tagged Mail bei der Arbeit.

–jeroen

Posted in *nix, Linux, Power User, SuSE Linux | Leave a Comment »

nmap finger printing: Usage and Examples

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: , | Leave a Comment »

idank/explainshell: explainshell.com – match command-line arguments to their help text

Posted by jpluimers on 2014/02/03

This is brilliant for learning *nix shell programming:

explainshell.com – match command-line arguments to their help text

explainshell is a tool (with a web interface) capable of parsing man pages, extracting options and explain a given command-line by matching each argument to the relevant help text in the man page.

It has open source code at gitub too: idank/explainshell.

–jeroen

Posted in *nix, Development, Linux, Power User, Scripting, Sh Shell, Software Development, SuSE Linux | Leave a Comment »