Updated on: 7/3/01 Linux info & Stuff this file is created with the Debian distribution of Linux in mind. (Debian kernel compile) /usr/src/linux make menuconfig (creates /usr/src/linux/.config) /usr/src/linux make-kpkg clean /usr/src/linux make-kpkg -revision x.x kernel-image (replace x.x with YOUR numbering system) /usr/src/linux make-kpkg modules_image (this will create any "special" modules) ls /lib/modules if /lib/modules/2.2.18.old exists, 'rm -r' it /usr/src/ mv /lib/modules/2.x.x /lib/modules/2.x.x.old (if the .old directory exists, rm -R /lib/modules/2.x.x.old then repeat above step) /usr/src/ dpkg -i kernel-image-x.x-.deb (replace the x.x with the numbers you chose above) /usr/src/ dpkg -i {module packages created} (Hand kernel compile) /usr/src/linux make menuconfig /usr/src/linux make dep /usr/src/linux make clean /usr/src/linux make bzImage /usr/src/linux make modules /usr/src/linux make modules_install /usr/src/linux cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-{kernel version} /usr/src/linux cp System.map /boot/System.map-{version} /usr/src/linux ln -s /boot/System.map-{version} /boot/System.map /usr/src/linux rm -f /vmlinuz /usr/src/linux ln -s /boot/vmlinuz-{kernel version} /vmlinuz /usr/src/linux /sbin/lilo INFO ONLY! /vmlinuz is a symbolic link to the current kernel image to create a boot disk method #1 dd if=/vmlinuz of=/dev/fd0 rdev /dev/fd0 /dev/hdxx {replace xx with root partition info (see /etc/fstab) } rdev -R /dev/fd0 1 this is the number 1 (one) and not a small L to create a boot disk method #2 cd /usr/src/linux make zdisk compiles current kernel & creates a boot disk ONLY Printer Control lpr {file} send {file} to printer lpr -p {file} send {file} to printer and give it a pretty format {file name, date, time} lpr -P{printer}{file} to print to a remote printer specified in /etc/printcap lpq shows what jobs are in print queue lpq -P{printer} shows what jobs are in print queue of {printer} lprm {job #} to remove jobs from print queue Installing software & locating installed packages dselect debian configuration program {Add/Remove software} dpkg -l | less show everything installed dpkg -l | grep{keyword} find {keyword} in the dpkg -l listing dpkg -S {package} to see list of all packages installed via {package} apt-cache search {keyword} to search the available packages and definitions for {keyword} apt-get update to update the available packages list apt-get upgrade to upgrade existing packages that have new versions available apt-get install {package} to install {package} via apt-get apt-get clean to remove packages/files from /var/cache/apt/archives To compile your very own .deb packages..... (ensure that the -dev version of all the libraries exist) cd /usr/src this is where all compiling will be done from apt-get source {package} download the {package} and uncompress under /usr/src cd to the new directory created debian/rules binary this is the actual compile for the package you want Files to customize for user/global setup /etc/profile global settings /home/{user}/.bash_profile individual settings Drive/printer mapping /etc/fstab drive mapping and mounting within linux /etc/smb.conf specifies which directories to share to wfw clients killall -HUP inetd to restart inetd.conf after edits /etc/exports to share nfs drives /etc/init.d/nfs-server {start/stop} to start, stop, or restart nfs sharing smbclient -L {machine} lists what is shared on {machine} Tape Backup Control Commands mt -f /dev/ftape erase to erase a tape (unsure if works) mt -f /dev/ftape rewind to rewind a tape mt -f /dev/ftape retension to retension a tape TAR commands tar -xzf {file.tgz} to untar, unzip a tgz file tar -czf {tar filename} {files to put in archive} to tar files (e.g. tar -czf myhome.tgz /home/griz/* ) tar -tzf {tar filename} to verify tar file tar -xf /where/filename/what to untar files {w/o .tgz} tar -cvzf /dev/ftape /{files} to tar to tape tar -dzf /dev/ftape /where to compare a tape archive tar -tzf /dev/ftape to verify tar to tape tar -xvzf /dev/ftape to restore tar from tape Drive manipulation superformat /dev/fd0 to format a floppy in fd0 mke2fs /dev/hdx to format a hard drive partiin ext2 (LINUX) format e2fsck -b 8192 /dev/hdxx clean hard drive partition xx mount -n -o remount,rw / to mount root as read/write while in emergency mode Directory listing commands du shows total size of dir and subdir(s) ls directory listing ls -l long directory listing ls -lAF shows it all ls | less screen full at a time w/ scroll ability ls | more screen full at a time du -skc * To see the directory sizes under the current directory PPP-networking files/dirs & info /etc/ppp/ip-up is a file to execute after IP connections are established /etc/ppp/ip-down is a file to execute after IP connections are disconnected /etc/ppp/ip-up.d/ is a directory containing files to be executed upon ppp connection /etc/ppp/ip-down.d/ is a directory containing files to be executed after ppp connection is down /etc/ppp/peers/{filename} set the modem port, speed & pppd options for {filename} /etc/chatscripts/{filename} set phone number, username and password for {filename} /etc/chatscripts/provider this is a "default file" called by pon. sets ISP info u: p: /etc/ppp/peers/provider this is a "default file" called by pon. set modem port, ttyS?, mode, etc /etc/mgetty/login.conf to enable the AUTO_PPP functions (allow dial-up users ppp access) /etc/ppp/pap-secrets file to edit to specify passwords for dialing into providers, user to dial into your box, via ppp. MUST BE PERMISSIONS 600 pon to connect to the net using defaults in /etc/ppp/peers/provider pon {account} to connect to net using a specified account poff to disconnect from net plog to view the ppp log plog -f to "tail" the ppp log (show entries as they occur) /etc/resolv.conf nameservers (DNS servers) /etc/init.d/network specifies IP, NETMASK, BROADCAST, etc and sets up system networking. /etc/inetd.conf specifies what "services" are offered (i.e. telnet, ftp, news, etc) killall -HUP inetd to restart inetd.conf after edits VT, getty, mgetty, vgetty, run-level (/etc/inittab) file /etc/inittab set gettys, mgetty, vgetty telinit q to restart /etc/inittab after edits IP Masq'ing info /usr/local/sbin/masq_up {script I used to begin IP Masq} #!/bin/sh ipfwadm -F -p deny ipfwadm -F -a m -S 192.168.1.1/24 -D 0.0.0.0/0 insmod `ls /lib/modules/2.0.x/ipv4/*` replace the small x with the current kernel version or place the ipfwadm lines into the bottom of the /etc/init.d/network file to automatically begin ip_masq (during boot) as the network is started Miscellaneous Info dmesg | less to review boot-up message screens locate {keyword} to find all occurrences of {keyword} on all mapped drives updatedb updates database of files on all mapped drives /sbin/make whatis creates apropos and whatis data base #! /bin/sh first 'common' line of executed scripts cat [sound file] > /dev/audio to test sound card grep "{keyword}" /{path}/* to search for {keyword}in {path} location /usr/X11/bin/xf86config text based X configuration program /usr/X11/bin/XF86Setup GUI based X configuration program /etc/X11/fvwm95/system.fvwm2rc95 edits button bar for fvwm95 in X cd /etc/X11/xinit if missing xinitrc ln -s ../Xsession xinitrc tail -f /var/spool/{logfile} to see each entry as it happens zcat /path/manpage | groff -Tascii -man | lpr to print manpages adduser "user" "group" to add users to a group /usr/sbin/addftpuser setup ftp server free tells how much RAM, swap, etc space is free reset reset "no typing" sessions ^v^o {control v, control o} reset "mode" problem /etc/rc.boot/0setserial to "hard set" serial port addresses file {filename} tells info about file, and what it's used for startx -- :1 will start X11 running on RIGHT ALT F1 find / -name "" to search for find /usr/bin -name 'k*' | grep find `echo $PATH | sed 's/:/ /g'` -perm +100 -o -perm +10 -o -perm +1 -name 'k*' | grep ... less /var/lib/dpkg/status To find out what packages are installed, w/o truncation ipchains -L output show firewall rules (outgoing) ipchains -F output flush firewall rules (outgoing) date to set the date/time stamp at the prompt level (i.e. Date 020921102001 = Feb 09 21:10 2001) ~/office52/program/sadmin To install printers in Star Office kbuildsycoca To re-initialize KDE menus du -skc * To see the directory sizes under the default directory # to lower the case of all files in current directory #!/bin/bash mv $1 `echo $1 | awk '{print tolower($0)}'` # done find -name '*[A-Z]*' -exec ./test-script {} \; Rodent says, "Here's a quick bit of advice: never, ever, ever compile up libc6 by hand and install it! :(" EMERGENCY INFO: linux root=/dev/hdxx at lilo prompt when starting from RESCUE disk will allow access to partition LILO: linux emergency to boot in EMERGENCY mode rescue root=/dev/hdxx boot onto Rescue disk, enter this at BOOT: prompt to access active partition for emergency repairs. Replace xx with root partition (see /etc/fstab) LOG FILES TO WATCH /var/log/xferlog* /var/log/mgetty/* /var/log/messages /var/log/auth.log /var/log/syslog "/proc is your FRIEND! Pay attention to it" /proc/filesystems file systems supported by active kernel /proc/interrupts IRQ's currently in use /proc/ioports I/O ports currently in use MODULES /lib/modules/2.x.x where modules for kernel 2.x.x reside rmmod {module name} to remove a module lsmod to show all modules installed modprobe {module name} inserts modules modconf GUI for modules selection SSH simple setup ssh-keygen generate a key on each machine, as root, without using a pass-phrase copy the .ssh/idenity.pub to the remote machines cat identity.pub >> /root/.ssh/authorized_keys appends it into the /root/.ssh/authorized_keys file CD & ISO's To burn an ISO back onto a CD: cdrecord -v speed=4 dev=0,1,0 -data {filename.iso} { the dev option can be determined by running " cdrecord --scanbus " } To make an ISO of a CD: dd if=/dev/cdrom of={filename.iso} Some EXAMPLES: (provided by Brian Kowolowski aka MidKnite) ## ipchains # flush ipchains /sbin/ipchains -F input /sbin/ipchains -F output /sbin/ipchains -F forward # list ipchains /sbin/ipchains -L # set policy /sbin/ipchains -P forward DENY # set masq timeouts /sbin/ipchains -M -S 600 10 160 # allow localhost /sbin/ipchains -A input -i lo -j ACCEPT # masq the local network /sbin/ipchains -A forward -s 192.168.3.3 -j MASQ /sbin/ipchains -A forward -s 192.168.10.0/24 -j MASQ # deny id software into any high port (backdoor in Q2) /sbin/ipchains -A input -p \! icmp -s 192.246.40.0/24 -j DENY # set tos bits for tuned transfers for ftp, ftp-data, and telnet /sbin/ipchains -A output -p tcp -d 0.0.0.0/0 ftp -t 0x01 0x10 /sbin/ipchains -A output -p tcp -d 0.0.0.0/0 telnet -t 0x01 0x10 /sbin/ipchains -A output -p tcp -d 0.0.0.0/0 ftp-data -t 0x01 0x10 # flush port forwarding /usr/sbin/ipmasqadm portfw -f # forward port 6000 (X windows) to workstation /usr/sbin/ipmasqadm portfw -a -P tcp -L 128.253.186.10 6000 -R 192.168.3.3 6000 # forward ports for icq proxy /usr/sbin/ipmasqadm portfw -a -P tcp -L 128.253.186.10 4000 -R 192.168.3.3 4000 PORT=59999 while [ $PORT -ge 59980 ] do /usr/sbin/ipmasqadm portfw -a -P tcp -L 128.253.186.10 $PORT -R 192.168.3.3 $PORT PORT=$((PORT - 1)) done # end of rc.masq ## sample .tcshrc umask 077 setenv MANPATH /usr/local/man:/usr/man/preformat:/usr/man:/usr/X11R6/man setenv MINICOM "-c on" setenv HOSTNAME "`cat /etc/HOSTNAME`" setenv LESS "-M" setenv LESSOPEN "|lesspipe.sh %s" setenv JED_ROOT /usr/lib/jed setenv TERM linux setenv EDITOR /usr/bin/jed set path = ( $HOME/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /usr/X11R6/bin ) set notify set history = 100 set ellipsis set prompt = "%m %.03%# " eval `dircolors -t ~/.dir_colors` unalias * alias ls "/bin/ls $LS_OPTIONS -A" alias dir "/bin/ls $LS_OPTIONS -al" alias ftp "/usr/local/bin/lftp" alias ps "/bin/ps Op" bindkey -c ^R "/usr/local/bin/screen -r" ## sample .fetchmailrc defaults proto pop3 fetchall no keep poll postoffice.mail.cornell.edu user bkk5 is midknite ## $HOME/clean - sample of using find(1) #!/bin/csh -f find /home/midknite -name "*~" -exec rm {} \; find /home/midknite -name ".*~" -exec rm {} \; find /home/midknite -name "#*#" -exec rm {} \; ## sample .procmailrc VERBOSE=off COMSAT=off LOGFILE=$HOME/log.procmail :0 * ^X-Loop.*bkk5@cornell.edu $HOME/mail/loop :0 * ^From.*foo@bar.com $HOME/mail/foobar :0 * ^From.*(foo|foo2)@bar.com $HOME/mail/foo2 :0 * ^TO.*CSLUG-L $HOME/mail/cslug :0 * ^TO.*security-audit $HOME/mail/security-audit :0:/home/midknite/mail/junk.lck * ^From.*(FreeServers.com) $HOME/mail/junk :0 * ^From.*(yesmail.com|developers.net|AllAdvantage.com|urbomail.com|enlist.com) /dev/null :0 * ^From.*(fsnet.co.uk|netcenter-direct|xoom.com|ebay.com|tripwiresecurity.com) /dev/null :0 * ^From.*(lunch4free.com|freedom2surf.net|kindermagicusa.com|arcamax.com) /dev/null :0 * ^From.*(keggler.com|clickrewards.com|tin.org) /dev/null ## sample smb.conf (samba) [global] announce as = NT Server announce version = 4.2 bind interfaces only = false blocking locks = true browse list = true case sensitive = no character set = ISO8859-1 client code page = 850 deadtime = 15 # debuglevel = 3 default case = lower default service = pub domain master = yes encrypt passwords = true guest account = nobody interfaces = 128.253.186.10/255.255.255.128 192.168.3.1/24 lm announce = auto lm interval = 60 load printers = no local master = yes lock directory = /usr/local/samba/var/locks log file = /usr/local/samba/var/log.smb mangle case = yes mangling char = ^ max connections = 10 max log size = 10 max open files = 20000 netbios name = knite os level = 65 preserve case = yes preferred master = yes printcap name = /dev/null printing = bsd remote announce = 128.253.186.0 security = share share modes = yes short preserve case = no smb passwd file = /usr/local/samba/private/smbpasswd smbrun = /usr/local/samba/bin/smbrun wins support = yes workgroup = WORKGROUP # public share [pub] available = yes browseable = yes force user = nobody guest ok = yes path = /home/public/pub read only = yes # requires password for user galik from smb passwd file [gaylick] available = yes browseable = yes force user = galik guest ok = no path = /home/galik read only = yes username = galik valid users = galik New Debian Network Configuration Instead of using the older /etc/init.d/network, we now have three files being used to setup the network. These files reside in /etc/network. To start/stop the networking, /etc/init.d/networking stop/start MUCH simplier!! /etc/network/interfaces - SAMPLE!! # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/netbase/examples for more information. # iface lo inet loopback iface eth0 inet dhcp iface eth1 inet static address 192.168.20.115 netmask 255.255.255.0 network 192.168.20.0 broadcast 192.168.20.255 up ipchains -P forward DENY up ipchains -A forward -j MASQ -s 192.168.20.0/24 -d 0.0.0.0/0 /etc/network/options - SAMPLE!! ip_forward=yes spoofprotect=yes syncookies=yes /etc/network/spoof-protect - SAMPLE!! # default spoof protection configuration # # this is only necessary for pre-2.2 kernels. # (it can be determined automatically under 2.2.x) LOCAL_IPS="127.0.0.1/8 192.168.10.0/24" LOCAL_IFACES="eth0 eth1 ppp0" /usr/local/firewall.script - see below!! #!/bin/sh # # Getting IP address from ifconfig # IPADDR0=`ifconfig eth0 | awk '/inet/ { print substr($2,6) ; exit }'` #`ifconfig eth0 | awk '/inet/ { sub(/.*:/,"",$2) ; print $2 }'` # # Lines added to block Samba shares to outside world # /sbin/ipchains -A input -j DENY -i eth0 -p udp -s 0.0.0.0/0 -d $IPADDR0/0 netbios-ns /sbin/ipchains -A input -j DENY -i eth0 -p udp -s 0.0.0.0/0 -d $IPADDR0/0 netbios-dgm /sbin/ipchains -A input -j DENY -i eth0 -p udp -s 0.0.0.0/0 -d $IPADDR0/0 netbios-ssn /sbin/ipchains -A input -j DENY -i eth0 -p tcp -s 0.0.0.0/0 -d $IPADDR0/0 netbios-ns /sbin/ipchains -A input -j DENY -i eth0 -p tcp -s 0.0.0.0/0 -d $IPADDR0/0 netbios-dgm /sbin/ipchains -A input -j DENY -i eth0 -p tcp -s 0.0.0.0/0 -d $IPADDR0/0 netbios-ssn # # Lines added for SpeakFreely v6.1b # ipmasqadm autofw -A -r udp 2074 2075 -c udp 2075 # # Lines added for Dailpad.com # ipmasqadm autofw -A -u -r udp 51200 51201 -c tcp 7175 ipmasqadm autofw -A -u -r tcp 51210 51210 -c tcp 7175 # # for the Master Server list: # ipmasqadm autofw -A -r udp 27900 27900 -h 192.168.20.3 -v # # Lines added for PowWow 3.2 beta 5 # ipmasqadm autofw -A -r tcp 13223 13223 -c tcp 13223 -u ipmasqadm autofw -A -r udp 13223 13223 -c tcp 13223 -u ipmasqadm autofw -A -r tcp 23213 23213 -c tcp 13223 -u This script is symbolicly linked to /etc/rc2.d/S42firewall.script !!! Forwarding VNC remote display system IPChains: ipmasqadm autofw -A -v -r tcp 5900 590d -h www.xxx.yyy.zzz ipmasqadm autofw -A -v -r tcp 5800 580d -h www.xxx.yyy.zzz (for the java viewer) ipfwadm: ipautofw -A -v -r tcp 5900 590d -h www.xxx.yyy.zzz ipautofw -A -v -r tcp 5800 580d -h www.xxx.yyy.zzz (for the java viewer) Comments: Where d>0 and is the highest display number that you wish to access, and www.xxx.yyy.zzz is the target machines IP address. The standard viewer software works fine with outbound connections and a standard masquerade setup. Incoming connections work via ipautofw. Great app and its GPL'd. Go get it! Some file edits that "I" do...... Want more VT's ? In /etc/inittab add the following lines...... # The "id" field MUST be the same as the last # characters of the device (after "tty"). # # Format: # ::: 1:2345:respawn:/sbin/mingetty --noclear tty1 2:23:respawn:/sbin/mingetty tty2 3:23:respawn:/sbin/mingetty tty3 4:23:respawn:/sbin/mingetty tty4 5:23:respawn:/sbin/mingetty tty5 6:23:respawn:/sbin/mingetty tty6 #7:23:respawn:/sbin/mingetty tty7 # The line above is commented for the dm's to work. 8:23:respawn:/sbin/mingetty tty8 9:23:respawn:/sbin/mingetty tty9 10:23:respawn:/sbin/mingetty tty10 11:23:respawn:/sbin/mingetty tty11 This is my /etc/profile which I've customized, extensively. # /etc/profile: system-wide .profile file for bash(1). EDITOR=/usr/bin/vim PAGER=/usr/bin/less PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/sbin:$HOME:" PS1="{\H} U=\u\n\rDir=\w `tty | cut -b 6-`$ " eval `dircolors /etc/DIR_COLORS` export TIMID_DIR=/etc/ export PATH PS1 EDITOR PAGER umask 002 alias ls='ls --color=auto -AF' function cls { clear } function x { exit } function pg { ps ax | grep $1 } function dg { dpkg -l | grep $1 } function lg { locate $1 | grep $2 } function acs { apt-cache search $1 } TTY=`tty | cut -b 9-` case $TTY in 1) mesg y ;; 2) mesg n mdial exit ;; 11) startx exit ;; esac This is my root .bash_profile # ~/.bash_profile created by Griz PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11" PS1="YOU ARE ROOT!! on \h\nDir=\w `tty | cut -b 6-`> " eval `dircolors /etc/DIR_COLORS` export PATH PS1 mesg y umask 022 function boot { shutdown -r now } function down { shutdown -h now } PERMISSIONS: OKAY!! DON'T SNIVEL AT ME! THIS IS JUST A QUICK/DIRTY ATTEMPT AT EXPLAINING THIS TO NEWBIES!! I'm not overriding the man-pages, not would I attempt to. USER GROUP WORLD 4 2 1 4 2 1 4 2 1 r w x r w x r w x Add the numbers together to make the permissions you want. -rwxr-xr-x 1 root staff 722 Apr 10 19:48 msg* -rw-r--r-- 1 root root 63404 Sep 9 17:44 notes_uploaded.wav msg has a chmod set of 755 USER GROUP WORLD 4 2 1 4 2 1 4 2 1 r w x r w x r w x y y y y n y y n y add up everything that has a y under it. 4+2+1 4+1 4+1 7 5 5 notes_uploaded.wav has a chmod set of 644 USER GROUP WORLD 4 2 1 4 2 1 4 2 1 r w x r w x r w x y y n y n n y n n add up everything that has a y under it. 4+2 4 4 6 4 4 JASONS' QUICK AND EASY: 7 r, w, x 6 r, w, - 5 r, -, x 4 r, -, - 3 -, w, x 2 -, w, - 1 -, -, x LINUX installation ftp://debian.coinet.com/pub/debian ftp installs This is the short version. The long version can be found on the net at ftp://debian.coinet.com/pub/bo/disks-i386/install.html. Download the following files; resc1440.bin Rescue Disk drv1440.bin Driver Disk base-1.bin Base disk #1 base-2.bin Base disk #2 base-3.bin Base disk #3 base-4.bin Base disk #4 base-5.bin Base disk #5 rawrite2.exe Find two (2) "good" disks. If they aren't perfect, it WON'T work. Create the all the disks using rawrite, ie "rawrite2 -f resc1440.bin -d a:". OR ie "rawrite" and follow the prompts Boot with the rescue disk, fdisk & format the hard drive, put in the driver disk when it asks. Follow with the Drivers and appropriate BASE disks as prompted. Partitions to create: / = 150 meg /tmp = 100 meg /var = 100 meg /usr = 1500 - 3000 (depending on the users needs) /home = the rest of the drive USING APT /etc/apt/source.list should contain; http://debian.coinet.com/debian stable main contrib non-free http://non-us.debian.org/debian-non-US unstable/binary-$(ARCH)/ www.debian.org has a good list of mirror sites for both non-free and standard PACKAGES I REMOVE: tetex ed emacs ae ibritish elvis-tiny nvi PACKAGES I PREFER: apache magicfilter minicom (w/ dependencies) ytalk fetchmail mc ncftp2 kernel-packager mgetty (voice, fax, etc) vim lftp mingetty wu-ftp My Current /etc/apt/sources.list file: # Use for a local mirror - remove the ftp1 http lines for the bits # your mirror contains. # deb file:/your/mirror/here/debian stable main contrib non-free # See sources.list(5) for more information, especial # Remember that you can only use http, ftp or file URIs # # STABLE sites (POTATO) # deb http://http.us.debian.org/debian stable main contrib non-free deb http://non-US.debian.org/debian-non-US stable/non-US main contrib non-free deb http://kde.tdyc.com potato kde contrib kde #deb http://non-us.debian.org/debian-non-US stable non-US #deb http://kde.tdyc.com slink kde contrib rkrusty #deb http://debian.oftheinter.net/ x335-slink/ # # FROZEN sites () # #deb http://http.us.debian.org/debian potato main contrib non-free #deb http://non-us.debian.org/debian-non-US potato/non-US main contrib non-free #deb ftp://ftp.jimpick.com/pub/mirrors/debian-non-US potato/non-US main contrib non-free #deb http://kde.tdyc.com potato kde contrib rkrusty #deb http://kde.tdyc.com potato kde contrib kde #deb ftp://ftp.de.debian.org/debian potato main contrib non-free #deb http://eliot.landrum.cx/packages frozen main # # UNSTABLE sites (WOODY) # #deb http://http.us.debian.org/debian unstable main contrib non-free #deb ftp://ftp.us.debian.org/debian unstable main contrib non-free #deb http://non-us.debian.org/debian-non-US unstable non-US/main non-US/contrib non-US/non-free #deb http://kde.tdyc.com unstable kde contrib kde ircII commands /exec -o {command or file} execute a LINUX command /window new /bind ^a next_window /window level ALL end messages, etc. to new window Pine setup {mail.coinet.com} /var/spool/mail/griz Inbox folder DOSEMU In CONFIG.SYS; DEVICE=EMUFS.SYS /mnt/dos DEVICE=EMUFS.SYS /mnt/data2 DEVICE=EMUFS.SYS /mnt/data3 etc... In AUTOEXEC.BAT; PATH=C:\ exitemu to leave DOS RedHat Note (sigh) REBUILDING PER ARCH rpm --rebuild --target=i686 {package}.src.rpm package that is created can be found in /usr/src/redhat/RPMS/{arch}/ INSTALLING rpm -i {package}.rpm CHECKING FOR INSTALLED rpm -qa|grep {keyword} to search the entire db of installed packages and descriptions for {keyword} TO CONFIGURE X11 Xconfigurator BEST PLACE TO SNAG RPMS ftp.metalab.unc.edu. /pub/linux/distributions/redhat/contrib/libc6/i386 (Kernel compile) /usr/src/linux/ make menuconfig (fill in options that you want in kernel) /usr/src/linux/ make dep /usr/src/linux/ make clean /usr/src/linux/ make bzImage /usr/src/linux/ make modules /usr/src/linux/ make modules_install /usr/src/linux/ cp System.map /boot/System.map-{kernel-version} /usr/src/linux/ cp arch/i386/boot/bzImage /boot/vmlinuz-{kernel-version} /usr/src/linux/ vi /etc/lilo.conf (make appropriate changes to show new kernel) /usr/src/linux/ /sbin/lilo