Recent Blog Posts
When automating mysqldump it is necessary to pass authentication information along with the command. While you can pass the credentials on the command line this is considered unsafe as the password would be visible to all users using the ps afx command (for example).
A workaround for this is using expect a program that is meant to automate user interaction for terminal programs. IT simulates a tty and passes input to the controlled program depending on its output.
Windows XP, PXE Boot
Juni 14th, 2013 Read more ...
Windows XP is pretty old, but however, you may know those friends which are using quiet ooooold laptops, having a system crash but don't want to purchase a new one. When those laptops don't have a working CD-ROM drive anymore and ...
Booting your usb stick using Virtual Box on a Linux host
November 16th, 2012 Read more ...
During the development of my Linux From Scratch I were searching for a way to test the boot process using Virtual Box instead of rebooting my development computer again and again. I found some articles on how to achive this using Windows, but I use Linux on my computer. Finally I did it :) using
VBoxManage internalcommands
. As I found no articles on this, here comes a short howto: Export a linux binary with its lib dependencies to a chroot or initramfs, …
November 9th, 2012 Read more ...
Sometimes it is nessesary to copy a Linux binary with its lib dependencies to a folder or archive. For example when creating an chroot emvironment, create an initramfs or copy a binary from one machine to another with the same architecture and kernel interface (this is hacky, yes)
Because I frequently needed to do this, I wrote a small shellscript for that purpose. Here comes the shellscript, explanation will follow ...
A basic iconv example in C
Januar 13th, 2011 Read more ...
This example converts ISO-8859-1 to UTF
Reverse ARP in a shell script
Juli 11th, 2010 Read more ...
Sometimes it is useful in bash scripts to resolve an IP address to a mac address. Here comes a simple script that perfroms this action:
Ubuntu 9.10: NetworkManager PPTP failed to connect: ‚No VPN secrets!‘ – Solution
Februar 2nd, 2010 Read more ...
Trying to establish a PPTP VPN Connection via Gnome NetworkManager (Ubuntu 9.10) I encountered some problems. While the connection not establish I got the following lines in my syslog.
Howto generate a 128 bit key using dd
August 3rd, 2009 Read more ...
Using /dev/random to create randomness in shell scripts