Debian
From Logicalwebhost-Wiki
Debian is the foundation of ubuntu and it's variants, as well as Knoppix, a tasty live-cd distro used to unscrew whatever you just did to make your computer crash.
after you load it, change your /etc/apt/sources.list to include these
deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contrib deb http://debian.osuosl.org/debian/ etch main contrib non-free deb-src http://debian.osuosl.org/debian/ etch main contrib non-free
change your prompt to color for listing, and use vim to color edit your files with vim:
apt-get install vim-full edit ~/.bashrc for whichever user you are add: alias vi='vim' then edit: /etc/vim/vimrc and uncomment: syntax on
[edit] network
example commands below would make your eth0 be 192.168.1.10, with a netmask of 255.255.255.0, then bring it up, then tell it your upstream router is at 192.168.1.0, which you could probably guess, and you get to it from eth0 too, and then the last command sets your upstream gateway at 192.168.1.1 on eth0, which you probably also knew :) The 'default' thing means if you access the internet from this computer, it will attempt to send stuff through your gateway, because google.com definitely has a different gateway that your gateway has to look up somewhere.
ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up route add -net 192.168.1.0 netmask 255.255.255.0 eth0 route add default gw 192.168.1.1 eth0
survival commands: http://www.debian.org/doc/manuals/reference/ch-package.en.html#s-debian-package
| alias ll='ls -la' | enable long listings by editing .bashrc |
| alias vi='vim' | use vim as default "after you install it" |
| apt-get install apache2 libapache2-mod-php5 mysql-server-5.0 php5-mysql php5 openssl ssl-cert | loads a basic LAMP server with ssl support |
| apt-cache depends lsof | shows what dependencies lsof package has |
| .bashrc | you can make your dir listings color and add an add aliases |
| update-rc.d apache2 defaults 20 21 | sets apache to turn on at boot |
| dpkg -i package.deb | installs a .deb package |
| dpkg -l iptables | tells you about the iptables package |
| dpkg --list | grep dhcp | this will list what packages contain the term "dhcp" |
| dpkg -s proftpd | shows you all the package information about proftpd |
| dpkg -S /bin/netstat | find which files are used by /bin/netstat |
| grep -i 'sudo' | shows what version of sudo is installed |
| dpkg -s samba | grep Status | shows if that package is installed |
| dpkg-reconfigure xserver-xorg | re-detects your video, monitor, mouse and keyboard...hopefully successfully when you're done, you'll have to logout/login to start the new settings |
| hostname | http://www.cpqlinux.com/hostname.html tells you how to check it and set it |
| locales | apt-get install locales, then dpkg-reconfigure locales will keep those pesky LC messages from cropping up :) |
| tzconfig | allows you to set your timezone |
| vim color | you have to edit /etc/vim/vimrc |
| wajig hold packagename | stops a package from being upgraded if you think it will break stuff, you have to install wajig first though |
what your /etc/network/interfaces should look like http://www.cae.wisc.edu/site/public/?title=tcpipdebian
http://www.eset.com/joomla/index.php?option=com_rss&feed=RSS2.0&no_html=1&cat=13
