Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:debian [2006/07/17 12:02] a A Collection of Debian Linux Howto 's added |
linux:debian [2010/03/04 13:49] (current) a |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | == HP & Debian == | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Network tips ===== | ||
| + | ==== Interface bonding ==== | ||
| + | **''/ | ||
| + | auto bond0 | ||
| + | iface bond0 inet static | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | up / | ||
| + | |||
| + | ==== bridge setup ==== | ||
| + | **''/ | ||
| + | auto br0 | ||
| + | iface br0 inet static | ||
| + | address 192.168.0.100 | ||
| + | netmask 255.255.255.0 | ||
| + | network 192.168.0.0 | ||
| + | broadcast 192.168.0.255 | ||
| + | gateway 192.168.0.1 | ||
| + | bridge_ports eth0 eth1 | ||
| + | bridge_fd 0 | ||
| + | bridge_hello 0 | ||
| + | bridge_stp off | ||
| + | |||
| + | ===== Perfect Debian Server Setup ===== | ||
| + | |||
| + | ==== Base instalation ==== | ||
| + | |||
| + | **Requirements** | ||
| + | |||
| + | To install such a system you will need the following: | ||
| + | |||
| + | * A Debian Sarge Netinstall CD (available [[http:// | ||
| + | * an internet connection since I will describe a network installation in this document | ||
| + | |||
| + | ---- | ||
| + | |||
| + | * Insert your Sarge Netinstall CD into your system and boot from it (enter '' | ||
| + | * install only base system | ||
| + | * for RAID see: **[[: | ||
| + | * use lilo if plan to boot from raid devices | ||
| + | * use grub if you have hardware raid | ||
| + | |||
| + | ==== Install/ | ||
| + | |||
| + | Now let's install some software we need later on and remove some packages that we do not need: | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | <- Yes | ||
| + | |||
| + | / | ||
| + | |||
| + | ==== Configure The Network ==== | ||
| + | |||
| + | Because the Debian Sarge installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit / | ||
| + | |||
| + | # / | ||
| + | |||
| + | # The loopback interface | ||
| + | auto lo | ||
| + | iface lo inet loopback | ||
| + | |||
| + | # The first network card - this entry was created during the Debian installation | ||
| + | # (network, broadcast and gateway are optional) | ||
| + | auto eth0 | ||
| + | iface eth0 inet static | ||
| + | address 192.168.0.100 | ||
| + | netmask 255.255.255.0 | ||
| + | network 192.168.0.0 | ||
| + | broadcast 192.168.0.255 | ||
| + | gateway 192.168.0.1 | ||
| + | up / | ||
| + | # up / | ||
| + | |||
| + | Use {{linux: | ||
| + | |||
| + | Edit ''/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | Edit ''/ | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Configuration optimization ==== | ||
| + | ''/ | ||
| + | ''/ | ||
| + | [[http:// | ||
| + | ''/ | ||
| + | ''/ | ||
| + | ''/ | ||
| + | ''/ | ||
| + | '' | ||
| + | # Set EDITMOTD to " | ||
| + | | ||
| + | # Set FSCKFIX to " | ||
| + | | ||
| + | / | ||
| + | | ||
| + | / | ||
| + | sshd: trusted-network/ | ||
| + | /etc/fstab | ||
| + | # /etc/fstab: static file system information. | ||
| + | # | ||
| + | # <file system> <mount point> | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | |||
| + | / | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | |||
| + | ## | ||
| + | # | ||
| + | |||
| + | ==== Some dpkg-hacks ==== | ||
| + | |||
| + | | ||
| + | | ||
| + | dpkg --get-selections | awk '{ print $1; }'| tr " | ||
| + | **Sorting debian packages installed by size** | ||
| + | | ||
| + | |||
| + | |||
| + | == How to disable IPv6 in debian linux == | ||
| + | / | ||
| + | net ipv-10 off\\ | ||
| + | net ipv6 off\\ | ||
| + | |||
| + | ===== Tips & troubleshooting ===== | ||
| + | ==== ' | ||
| + | |||
| + | Create a file **/ | ||
| + | |||
| + | | ||
| + | |||
| + | in it. If it still fails, make that number higher. | ||
| + | |||
| + | ==== apt-get (from Debian) suddenly segfaults ==== | ||
| + | |||
| + | Delete the file ' | ||
| + | |||
| + | ==== Create a backup list of packages and resinstall ==== | ||
| + | |||
| + | sudo dpkg --get-selections > package_list.txt | ||
| + | |||
| + | Save the text file on a thumb drive, format the drive, reinstall Ubuntu/ | ||
| + | |||
| + | sudo dpkg --set-selections < package_list.txt | ||
| + | sudo apt-get -y update | ||
| + | sudo apt-get dselect-upgrade | ||

