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,839 other subscribers

Archive for the ‘Linux’ Category

Some links on ESXi disaster recovery and configuration backup

Posted by jpluimers on 2014/03/27

Just in case the shit ever hits the fan:

Background information:

Notes:

bootbank, altbootbank, backup.sh, auto-backup.sh

Adding your own software to ESXi:

–jeroen

Posted in *nix, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, openSuSE, Power User, SuSE Linux, Virtualization, VMware, VMware ESXi | Tagged: , , | Leave a Comment »

vi intro — the cheat sheet method (via: IBM developerworks)

Posted by jpluimers on 2014/03/27

IBM isn’t all about dry corporate stuff and sometimes hard to read redbook documentation (:

I love the way they lead you do build your own VI cheat sheet step by step in vi intro — the cheat sheet method.

It is basically a vi tutorial that helps you to build up your own cheat sheet.

–jeroen Read the rest of this entry »

Posted in *nix, Cygwin, Endian, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, Power User, SuSE Linux, vi, VMware, VMware ESXi | Leave a Comment »

*nix: recursively listing “hidden” files from the current directory

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

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 »