image=/boot/vmlinuz-2.2.14 append = "console=ttyS0,9600n8" label=linux read-only root=/dev/sda1 /etc/inittab 7:2345:respawn:/sbin/getty ttyS0 DT9600 vt100 startx -- -nolisten tcp (ssh X forwarding can still work under this) --------------------------------------------- Stick these lines in /etc/bashrc or ~/.bashrc. alias ls='ls $LS_OPTIONS -AF' alias l='ls $LS_OPTIONS -aFc' alias lc='ls $LS_OPTIONS -aF' alias ll='ls $LS_OPTIONS -al' And this in /etc/profile or ~/.bash_profile export LS_OPTIONS=--color=tty ============================================= Mount mount -n -o rw,remount / --------------------------------------------- HDD /sbin/hdparm -d1 -m16 -X66 /dev/hda ============================================= razno www.coda.cs.cmu.edu/doc/talks/linuxvfs/sld006.htm Linux is obsolete ============================================= USB install fdisk /dev/sdb select 6 FAT16 mkdosfs /dev/sdb1 syslinux /dev/sdb1 mount -t msdos /dev/sdb1 /mnt/fmem cp boot.img initrd.gz ldlinux.sys vmlinuz /mnt/fmem cp sarge-i386-businesscard.iso /mnt/fmem cp debian/sarge-i386-businesscard.iso /mnt/fmem install-mbr /dev/sdb (optional, if not installed with image) boot with USB RMD-FDD option in BIOS (F8) ============================================= Alt + SysRq + R Puts the keyboard into Raw Mode, then try Ctrl + Alt + Bksp to kill the X server, or . If that doesn't work, carry on Alt + SysRq + S Attemps to write unsaved data to the disk (sync the disk) Alt + SysRq + E Sends a termination signal to all processes except init Alt + SysRq + I Sends a kill signal to all processes except init Alt + SysRq + U Attempts to remount all mounted file systems read only. This removes the ?dirty flag? and will avoid a file system check upon reboot. Alt + SysRq + B ======================= apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.21.3.tar.bz2 tar xjf linux-2.6.21.3.tar.bz2 ln -s linux-2.6.21.3 linux cd /usr/src/linux cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.22-rc3.bz2 cd /usr/src/linux bzip2 -dc /usr/src/patch.bz2 | patch -p1 --dry-run bzip2 -dc /usr/src/patch.bz2 | patch -p1 make clean && make mrproper cp /boot/config-`uname -r` ./.config make menuconfig make-kpkg clean fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers 2 .deb packages in /usr/src dpkg -i linux-image-2.6.21.3-custom_2.6.21.3-custom-10.00.Custom_i386.deb dpkg -i linux-headers-2.6.21.3-custom_2.6.21.3-custom-10.00.Custom_i386.deb -------------------- traditional, as above + depmod 2.6.21.3 apt-get install yaird mkinitrd.yaird -o /boot/initrd.img-2.6.21.3 2.6.21.3 update-grub