Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux:debian [2006/06/09 00:16] a add secure apt |
linux:debian [2008/12/05 12:25] greebo |
||
---|---|---|---|
Line 6: | Line 6: | ||
* [[http:// | * [[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> | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | / | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | |||
+ | ## | ||
+ | # | ||
+ | |||
+ | | ||
+ | \\ | ||
+ | | ||
+ | |||
+ | |||
+ | dpkg --get-selections | awk '{ print $1; }'| tr " | ||
+ | |||
+ | |||
+ | == 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 ' | ||