Slackware Linux Setup [GUI] login manager: edit /etc/initab and change from 1 to 6 [HWARE] advanced power mngmnt: edit /etc/rc.d/rc.modules and uncomment on apm device info: "cat /proc/cpuinfo" cpu "cat /proc/meminfo" or "free -m" mem "cat /proc/pci | grep VGA" video card "less /proc/pci" PCI cards "less /proc/partitions" or "cat /proc/mounts" partitions "cat /proc/version" or "uname -rsa" linux kernel version "X -version" X version "/sbin/runLevel" current runlevel "ps -A" or "ps -aux" or "ps -A | grep X" processes "kill -9 pid#" or "killall name" kill processes "top" system resource high usage "df -h" disk space usage "dmesg" or "less /var/log/syslog | grep "Jan 1"" or "tail /var/log/syslog" view syslog "who -q" and "last" whos logged in and logged in last [KERNEL] compile kernel: "cd /usr/src/linux" "make mrproper" -only if you patched the kernel source and compiled before "make menuconfig" -or Xconfig if from X console "make dep && make bzImage && make modules && make modules_install" "cp -p /boot/vmlinuz /boot/vmlinuz.old && cp arch/i386/boot/bzImage /boot/vmlinuz" "cp System.map /boot/System.map && cp .config /boot/config Add "image = /boot/vmlinuz.old root = /dev/hda# label = #name# password = password1 read-only run lilo patch kernel: copy file to linux source tree "cd /usr/src/linux" "gunzip -c filename.diff.gz | patch -p1" Use the below method if just diff format "patch -p1 < filename.diff" [SECURITY] closing ports: edit /etc/inetd.conf and comment on uneeded edit /etc/hosts.deny and add "ALL: PARANOID" edit /etc/rc.d/rc.M and comment on: rc.pcmcia;sendmail;httpd;samba edit /etc/rc.d/rc.K and comment on: rc.httpd;samba;nfsd;pcmcia edit /etc/rc.d/rc.0 and comment on: rc.httpd;samba;nfsd;"echo"URF";pcmcia edit /etc/rc.d/rc.6 and comment on: rc.httpd;samba;nfsd;"echo"URF";pcmcia edit /etc/rc.d/rc.inet2 and comment on: portmap;echo"NFS";echo"SMB"; inetd;sshd;yp;nfsd edit /etc/X11/xdm/Xservers and add: "-nolisten tcp" to end of line lilo: add "restricted" and "password=" under timeout. misc: edit /etc/inittab and comment on 3fingersalute, type "init q" to apply changes edit /etc/securetty and comment on unneeded root terminal access points remove accounts: type "userdel name" names=adm;lp;shutdown;halt;news;mail;uucp;operator;games;gopher;ftp type "groupdel name" names=adm;lp;news;mail;uucp;games;dip remove traces: edit /etc/profile and add following after export lines: rm -f ~/.kde/share/apps/konqueror/konq_history touch ~/.kde/share/apps/konqueror/konq_history rm -f ~/.kde/share/apps/kcookiejar/cookies touch ~/.kde/share/apps/kcookiejar/cookies rm -f ~/.kde/share/apps/RecentDocuments/* rm -f ~/.kde/share/config/konq_history touch ~/.kde/share/config/konq_history rm -fr ~/.kde/share/thumbnails/* rm -f ~/.mozilla/default/wf0w4e3d.slt/downloads.rdf rm -f ~/.mozilla/default/wf0w4e3d.slt/history.dat #cp -f ~/.mozilla/default/wf0w4e3d.slt/history.dat.bak ~/.mozilla/default/wf0w4e3d.slt/history.dat rm -f ~/.mozilla/default/wf0w4e3d.slt/Cache/* rm -f ~/.bash_history touch ~/.bash_history export HISTSIZE="10" - reduce bashhist to 10 lines export HISTFILESIZE="0" - clear bashhist on logout