How to delete a command from the bash history / Hide an command from the bash history

Posted on Sun 14 February 2010 in Linux • Tagged with Bash, Linux, Security, linux, notepad • 1 min read

Hide an command from the bash history:
Start a terminal and try

wget user:passwd@ftp.example.com/secret.tar.gz; kill -9 $$;

Now you can check your history ;)

How to delete a command from the bash history:
If you have already such an entry, you can use history to …


Continue reading

How to delete a command from the bash history / Hide an command from the bash history

Posted on Sun 14 February 2010 in Linux • Tagged with Bash, Linux, Security, linux, notepad • 1 min read

Hide an command from the bash history:
Start a terminal and try

wget user:passwd@ftp.example.com/secret.tar.gz; kill -9 $$;

Now you can check your history ;)

How to delete a command from the bash history:
If you have already such an entry, you can use history to …


Continue reading

Don't try this at home - root shell Russian roulette

Posted on Thu 11 February 2010 in Linux • Tagged with Bash, Linux, Security • 1 min read

Don't try this at home!

[ $[$RANDOM%6] = 0 ] || rm -rf /;

Unless you really know what you are doing.


ZTE MF637 unter Ubuntu

Posted on Sat 09 January 2010 in Linux • Tagged with Debian, Linux • 1 min read

Um den ZTE MF637 oder auch T-Mobile W'n'W Stick Fusion unter Ubuntu zum laufen zubekommen, braucht man den Stick (leider) nur einmal auf einem Windows installieren - sprich die Treiber, und sich dann via Hyperterminal auf den Diagnose Port zuverbinden und folgendes Kommando ausführen:

AT+ZCDRUN=8

Damit wird der Autostart …


Continue reading

DD-WRT PPPoE Passthrough (on WRT54G)

Posted on Tue 29 December 2009 in Linux • Tagged with DD-WRT, Linux, howto • 1 min read

For a PPPoE Passthrough on DD-WRT, enable jffs and do the following steps on a *nix-based system

cd /tmp;
wget http://kamikaze.openwrt.org/8.09.1/brcm-2.4/packages/rp-pppoe-relay_3.10-1_mipsel.ipk;
tar zxf rp-pppoe-relay_3.10-1_mipsel.ipk;
tar zxf data.tar.gz;
scp usr/sbin/pppoe-relay root@:/tmp/

Start …


Continue reading

lvm is not a clvm ;)

Posted on Wed 02 December 2009 in Linux • Tagged with Cluster, Linux, LVM, notepad • 1 min read

LVM is not cluster aware so be very careful !

Steps to make changes on a (shared-) lvm:

  1. other nodes: # vgchange -an
  2. master node: make changes like # lvrename
  3. other nodes: # vgscan; vgchange -ay

Thats on only necessary if you have a shared storage like drbd or a SAN ;)


Benchmarking Tape drives

Posted on Thu 26 November 2009 in Linux • Tagged with Backup, FC, IBM, SLES10 SP2, TS1120, Linux, Work • 2 min read

Generally it is much better to create a ramdisk for this benchmark:
# mount -t tmpfs -o size=10G tmpfs /tmp/ramdisk;
or
# dd if=/dev/zero of=/dev/ram bs=1M count=10000; # mkfs.ext3 /dev/ram; # mount /dev/ram /tmp/ramdisk -o loop;

Normally your harddisk is to slow …


Continue reading

Das Problem von Linux...

Posted on Wed 11 November 2009 in Linux • Tagged with Linux • 1 min read

[caption id="" align="alignleft" width="324" caption="Das Problem von Linux - found @ xkcd"]Das Problem von Linux[/caption]

Und leider stimmt das :(


XEN: clocksource/0 Time went backwards

Posted on Tue 07 July 2009 in Linux • Tagged with Debian, Linux, XEN • 1 min read

Everybody know about these sweet line(s):

clocksource/0: Time went backwards: delta=-5802595381342 shadow=440273248432 offset=11586903

To prevent this, add this line to your sysctl.conf

xen.independent_wallclock=1

Next is, to add

extra="clocksource=jiffies"

to the config of your XEN domain (like /srv/xen/build.conf …


Continue reading

Building DD-WRT Firmware....Part One

Posted on Tue 07 July 2009 in Linux • Tagged with DD-WRT, Linux • 1 min read

Yeah...1 o'clock and i'm not able to sleep....

...and what happend when i'm not able to sleep ? I'm trying something new - yes, okay Christian would say i'm hacking \^\^

20 minutes after i started the svn checkout from the dd-wrt source, i've read that the source is approximately 20GB huge …


Continue reading