Manual PPP Connection
1. connect w/minicom and exit w/o reset
2. pppd /dev/ttyS1 115200 defaultroute
#----------------------------------------------------------------------------
count number of lines:
	cat file.txt | grep -c ^.*$
#----------------------------------------------------------------------------
Linux terminal screen saver:
setterm -blank 8	# blank screen in 8 min of inactivity; 0 = off
#----------------------------------------------------------------------------
IPADDR=`/sbin/ifconfig ppp0 | grep inet | cut -d : -f 2 | cut -d " " -f 1`
#----------------------------------------------------------------------------
Keyboard:
	To set up the keyboard repeat rate and delay time, add this line to:
		Red Hat: /etc/rc.d/rc.sysinit
		Caldera: /etc/rc.d/rc.boot
		S.u.S.E: /etc/rc.d/boot
			/sbin/kbdrate -s -r 16 -d 500

	To load the key table, issue /etc/rc.d/init.d/keytable start.

	To enable NumLock on by default, add these lines to:
		/etc/rc.d/rc.sysinit
			for tty in /dev/tty[1-9]*; do
				setleds -D +num < $tty
			done
#----------------------------------------------------------------------------
Rescue Diskette:
	Make a couple of boot floppies for your newly installed system.
	Your distribution may include a command for creating such a floppy; if not, these commands will do:
		% dd if=/boot/vmlinuz-2.0.36-0.7 of=/dev/fd0  # use your kernel image
		% rdev /dev/fd0 /dev/hda2                     # your Linux partition
	Also, have at least a couple of rescue disks ready. There's a wide choice
	of rescue disks at ;
	if you don't know which one to choose, I suggest you try out Tomsbtrt.
#----------------------------------------------------------------------------
Hard Drive Performance:
Your (E)IDE hard disk's performance can be greatly enhanced by carefully using
hdparm(8). If your Linux distribution doesn't include it, you'll find on
; called hdparm-X.Y.tar.gz.
/etc/rc.d/rc.sysinit:
	/sbin/hdparm -c1 /dev/hda		# first IDE drive assumed
Enables (E)IDE 32-bit I/O support. As for the `-m' option.
	/sbin/hdparm -c1 -A1 -m16 -d1 /dev/hda	# alternative?
#----------------------------------------------------------------------------
Symbolic Links:
	% ln -s ttyS0 mouse
	% ln -s ttyS1 modem
	% ln -s hdb cdrom
	% ln -s sda4 zip
	# Do chmod 666 to these devices if you want to make them fully
	# accessible by all users.
#----------------------------------------------------------------------------
MBR Backup/Restore:
	# To backup your MBR:
		% dd if=/dev/hda of=MBR bs=512 count=1
	# To restore your MBR:
		% dd if=/mnt/MBR of=/dev/hda bs=446 count=1
		# assuming that a floppy containing MBR is mounted under /mnt
		# you may also use a DOS rescue floppy to issue FDISK /MBR
#----------------------------------------------------------------------------
Dual boot NT and Linux:
	What you basically have to do is extract the top 512 bytes of your
	Linux partition (using dd) and then place it in the Windows root
	partition. The NT boot loader must be set to report it.

	To get the Linux boot record:
		dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
		# replace "/dev/hda2" with your root Linux partition