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 ‘Linux’ 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 »

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 »

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 »

openSUSE 12.x: today the same system would not plain “reboot” either (was: “A plain `halt` will not shutdown)

Posted by jpluimers on 2014/01/26

A long time ago I wrote about openSUSE 12.x: “A plain halt will not shutdown the system properly.” « The Wiert Corner – irregular stream of stuff.

Well, today, for the very first time, a plain “reboot” didn’t work on this system either showing the same symptom as the “halt”: it would shutdown all services, but not perform an ACPI power cycle.

Luckily the system is still on ESXi, so I could reboot using the ESXi vSphere client.

–jeroen

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | 1 Comment »

Sendmail: Redirecting domain based mail to multiple addresses: virtusertable and aliases file

Posted by jpluimers on 2014/01/26

When doing virtual sendmail hosting, in the domain based virtusertable file, you setup a domain based alias to point to a local alias:

foo.and.bar@example.org    foo.and.bar

In the local aliases file, you setup a local alias to redirect to multiple addresses (or other aliases redirecting features):

foo.and.bar: foo@example.org, bar@example.org

–jeroen

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

When yast2 in another session didn’t fully terminate…

Posted by jpluimers on 2014/01/26

Sometimes you get this when starting yast2:

System management is locked by the application with pid #### (@@@@@@).
Close this application before trying again.

This means another yast2 process with pid #### and name @@@@@@ is active, or hasn’t shut down properly.

@@@@@@ usually equals /usr/lib/YaST2/bin/y2base or /usr/sbin/packagekitd.

First, view what the process is about by issusing this ps command that shows you a bit more context around the single pid ####: Read the rest of this entry »

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

terminal emulator – What is making my cursor ‘randomly’ disappear? (via: Unix & Linux Stack Exchange)

Posted by jpluimers on 2014/01/26

Annoying issue when suddenly the cursor on your OpenSUSE terminal session is gone, but the fix is simple run <a href="http://linux.about.com/library/cmd/blcmdl1_reset.htm" target="_blank" rel="noopener">reset</a>:

it’s possible that your TTY has been mangled by some other program you’ve run. Try running reset and then clear (or ctrl-L) to initialize your terminal.

–jeroen

via: terminal emulator – What is making my cursor ‘randomly’ disappear when using gnome-teminal? – Unix & Linux Stack Exchange.

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