io scheduler for databases (deadline) 
As suggested by http://www.nextre.it/oracledocs/oraclemyths.html
i put elevator=deadline to grubs menu.lst.

[ view entry ] ( 728 views )   |  print article
kvm pxe boot 
get a ISO bootable image without legacy floppy emulation (.iso) from etherboot

kvm.sh:
#!/bin/sh

switch=br0

USERID=$(whoami)
iface=$(sudo tunctl -b -u $USERID)

sudo /usr/sbin/brctl addbr $switch
sudo /sbin/ifconfig $switch 192.168.99.1 up

kvm -M pc -m 512 -smp 1 -cdrom eb-5.4.3-ns8390.iso \
-boot d -net nic,model=rtl8139 \
-net tap,vlan=0,ifname=$iface, \
script=qemu-ifup,downscript=qemu-ifdown

sudo tunctl -d $iface &> /dev/null

sudo /sbin/ifconfig br0 down
sudo /usr/sbin/brctl delbr $switch
qemu-ifup:
#!/bin/sh

#!/bin/sh

switch=br0

if [ -n "$1" ];then
echo "config $1"
/usr/bin/sudo /sbin/ifconfig $1 0.0.0.0 promisc up
/usr/bin/sudo /usr/sbin/brctl addif $switch $1
exit 0
else
echo "Error: no interface specified"
exit 1
fi
qemu-ifdown:
#!/bin/sh

switch=br0

if [ -n "$1" ];then
sudo tunctl -d $1
sudo ifconfig $switch down
exit 0
else
echo "Error: no interface specified"
exit 1
fi


[ view entry ] ( 689 views )   |  print article
format a partition with check for badblocks 
badblocks -swvo <output_file> /dev/PARTITION
mkfs.vfat -l <output_file> /dev/PARTITION


[ view entry ] ( 790 views )   |  print article
Desktopsharing with vnc 
sudo apt-get install vnc4-common vnc4

sudo vncpasswd /etc/vncpasswd

/etc/X11/xorg.conf:
Section "Module"
Load "vnc"
EndSection

Section "Screen"
Option "PasswordFile" "/etc/vncpasswd"
EndSection



[ view entry ] ( 809 views )   |  print article
Using a Flashdisk and take care about limited writes 
For me it is sufficient to have data written every 20 Minutes.

To enable this i use laptop-mode and set some values in /etc/sysctrl.conf:

vm.swappiness = 0
vm.laptop_mode = 1200
vm.dirty_writeback_centisecs = 120000
vm.dirty_expire_centisecs = 120000
vm.dirty_ratio = 40
vm.dirty_background_ratio = 1


[ view entry ] ( 866 views )   |  print article

<<First <Back | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Next> Last>>