Thursday, May 31, 2007

Add a new harddisk to linux

1.fdisk /dev/sdbxxx follow instructions,fdisk entire disk.
2.mkfs -t ext3 /dev/sdbxxx
3.mkdir -p /opt;mount /dev/sdb1 /mnt -o rw
4.Add item to /etc/fstab file.such as : /dev/sdb1 /opt ext3 defaults 1 1

Wednesday, May 30, 2007

Get latest kernel source

Index of /pub/linux/kernel

stable ones:
v2.4
v2.6

Multimedia support under linux

Index of /MPlayer/releases/codecs


#apt-get install mplayer
#cp /PATH_TO_ALL_CODES/* /usr/lib/codecs


See a movie now ;)

Burn CD on Linux

在 Linux 上烧录 CD


#apt-get install cdrecord genisoimage

$mv OR cp FILES /TEMP/PATH

$genisoimage -v -o burnCD.iso /TEMP/PATH

#cdrecord -v -eject speed=16 /PATH/TO/burnCD.iso

Tuesday, May 29, 2007

use update-rc.d to manage Debian services

update-rc.d -f hplip remove
update-rc.d -f cupsd remove
update-rc.d -f cupsys remove
update-rc.d -f exim4 remove
update-rc.d -f apache2 remove
update-rc.d -f portmap remove
update-rc.d -f nfs-common remove
update-rc.d -f openbsd-inetd remove

Debian source.list Note

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

deb ftp://ftp.linuxforum.net/debian stable main

deb http://debian.cn99.com/debian stable main
deb-src http://debian.cn99.com/debian stable main

How to disable ipv6 in debian/ubuntu(kernel2.6)

#echo "blacklist ipv6" >>/etc/modprobe.d/blacklist
#reboot

==DONE

This can improve your network connectivity(esp for pure ipv4 network) .