the other side of life
Posts tagged Linux
Lenny Linux rockz…
Jun 30th
Watch it !
http://www.youtube.com/watch?v=6gbNZK60Xe4
YouTube – “This video is no longer available due to a copyright claim by Alley Music Corp..” –
http://www.google.com/search?q=Java4Ever&hl=en&tbs=vid:1,srcf:H4sIAAAAAAAAAB3IQQ4AEAwF0dvYSNyppREpfoIu3J5092bihR1jSRkjKJbYdv6t5irU-h04DdMbvJPWQKUSsyx_1D2e3mPVGAAAA&prmd=v&source=lnt&sa=X&ei=SkBETOndKs384Aa93PGiDg&ved=0CCIQp
z-push, imap server and *irony* a user-friendly Debian whatever *irony*
May 9th
If you want to use z-push with your imap server (which requires php5-imap) you must add to following line to you /etc/php5/apache2/conf.d/imap.ini file
# configuration for php IMAP module extension=imap.so
Why is that not set Debian ?
How to delete a command from the bash history / Hide an command from the bash history
Feb 14th
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 delete it.
history # [...] # 849 uname -a # 850 wget user:passwd@ftp.example.com/secret.tar.gz # 851 ping blog.devnu11.net # [...]
Now you can delete your history with history -d 850 this line.
history -d 850
And see…
history # [...] # 849 uname -a # 850 history # 851 ping blog.devnu11.net # [...]
Or simply add a blank before the command
$ wget user:passwd@ftp.example.com/secret.tar.gz
Don’t try this at home – root shell Russian roulette
Feb 11th
Don’t try this at home!
[ $[$RANDOM%6] = 0 ] || rm -rf /;
Unless you really know what you are doing.
ZTE MF637 unter Ubuntu
Jan 9th
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 vom Stick, also das virtuelle CD-ROM am Anfang, deaktiviert !
Geht mit 9.08, 9.10 usw.
DD-WRT PPPoE Passthrough (on WRT54G)
Dec 29th
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 the relay agent on the router
/tmp/pppoe-relay -S vlan1 -C br0
Now you can start your pppoe client on your notebook.
Tested with a WRT54G and DD-WRT v23 !
lvm is not a clvm ;)
Dec 2nd
LVM is not cluster aware so be very careful !
Steps to make changes on a (shared-) lvm:
- other nodes:
# vgchange -an - master node: make changes like
# lvrename - other nodes:
# vgscan; vgchange -ay
Thats on only necessary if you have a shared storage like drbd or a SAN
XEN: clocksource/0 Time went backwards
Jul 7th
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).
After all this, you can reboot the vm’s or to get it working for your current kernel config type this in each vm:
sysctl -p
echo "jiffies" > /sys/devices/system/clocksource/clocksource0/current_clocksource
At the moment i only know this from debian-based systems.
Grub VGA Mode
Nov 28th
You would like to know what Grub VGA Mode you can use ? Default is something like that
Color depth | 640x480 800x600 1024x768 1280x1024
-----------------+-------------------------------------
256 (8bit)| 769 771 773 775
32000 (15bit)| 784 787 790 793
65000 (16bit)| 785 788 791 794
16.7 Mill.(24bit)| 786 789 792 795
but with hwinfo --framebuffer you get an output like this
stina:/home/rmichel# hwinfo --framebuffer
02: None 00.0: 11001 VESA Framebuffer
[Created at bios.450]
Unique ID: rdCR.VSBbdW2x3qC
Hardware Class: framebuffer
Model: "NVIDIA G86 Board - NV_NB8M "
Vendor: "NVIDIA Corporation"
Device: "G86 Board - NV_NB8M "
SubVendor: "NVIDIA"
SubDevice:
Revision: "Chip Rev"
Memory Size: 14 MB
Memory Range: 0xd1000000-0xd1dfffff (rw)
Mode 0x0300: 640x400 (+640), 8 bits
Mode 0x0301: 640x480 (+640), 8 bits
Mode 0x0303: 800x600 (+800), 8 bits
Mode 0x0305: 1024x768 (+1024), 8 bits
Mode 0x0307: 1280x1024 (+1280), 8 bits
Mode 0x030e: 320x200 (+640), 16 bits
Mode 0x030f: 320x200 (+1280), 24 bits
Mode 0x0311: 640x480 (+1280), 16 bits
Mode 0x0312: 640x480 (+2560), 24 bits
Mode 0x0314: 800x600 (+1600), 16 bits
Mode 0x0315: 800x600 (+3200), 24 bits
Mode 0x0317: 1024x768 (+2048), 16 bits
Mode 0x0318: 1024x768 (+4096), 24 bits
Mode 0x031a: 1280x1024 (+2560), 16 bits
Mode 0x031b: 1280x1024 (+5120), 24 bits
Mode 0x0330: 320x200 (+320), 8 bits
Mode 0x0331: 320x400 (+320), 8 bits
Mode 0x0332: 320x400 (+640), 16 bits
Mode 0x0333: 320x400 (+1280), 24 bits
Mode 0x0334: 320x240 (+320), 8 bits
Mode 0x0335: 320x240 (+640), 16 bits
Mode 0x0336: 320x240 (+1280), 24 bits
Mode 0x033d: 640x400 (+1280), 16 bits
Mode 0x033e: 640x400 (+2560), 24 bits
Mode 0x0345: 1600x1200 (+1600), 8 bits
Mode 0x0346: 1600x1200 (+3200), 16 bits
Mode 0x0347: 1400x1050 (+1400), 8 bits
Mode 0x0348: 1400x1050 (+2800), 16 bits
Mode 0x0349: 1400x1050 (+5600), 24 bits
Mode 0x034a: 1600x1200 (+6400), 24 bits
Mode 0x0352: 2048x1536 (+8192), 24 bits
Mode 0x0360: 1280x800 (+1280), 8 bits
Mode 0x0361: 1280x800 (+5120), 24 bits
Mode 0x0362: 768x480 (+768), 8 bits
Mode 0x0364: 1440x900 (+1440), 8 bits
Mode 0x0365: 1440x900 (+5760), 24 bits
Mode 0x0368: 1680x1050 (+1680), 8 bits
Mode 0x0369: 1680x1050 (+6720), 24 bits
Mode 0x037c: 1920x1200 (+1920), 8 bits
Mode 0x037d: 1920x1200 (+7680), 24 bits
Config Status: cfg=new, avail=yes, need=no, active=unknown
My notebook has native 1680×1050 so i can use vga=0×369 to boot up with 1680×1050
