Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:debian [2006/11/22 12:16]
a proliant support for debian
linux:debian [2010/03/04 13:49] (current)
a
Line 7: Line 7:
   * [[http://wiki.debian.org/SecureApt|Secure APT]]   * [[http://wiki.debian.org/SecureApt|Secure APT]]
   * [[http://openchemist.net/linux/howto.php|A Collection of Debian Linux Howto 's]]   * [[http://openchemist.net/linux/howto.php|A Collection of Debian Linux Howto 's]]
 +  * [[http://www.debian-hardened.org/Debian Hardeded]]
 +  * [[http://wiki.debian.org/SELinux/Setup|SELinux Setup]]
 +  * [[http://www.gentoo.org/proj/en/hardened/|Hardened Gentoo - other linux security tips]]
  
 == HP & Debian == == HP & Debian ==
Line 15: Line 18:
  
  
 +===== Network tips  =====
 +==== Interface bonding ====
 +**''/etc/network/interfaces''**
 +   auto bond0
 +   iface bond0 inet static
 +           address xxx.xxx.xxx.xxx
 +           netmask 255.255.255.0
 +           network xxx.xxx.xxx.0
 +           broadcast xxx.xxx.xxx.255
 +           gateway xxx.xxx.xxx.1
 +           up /sbin/ifenslave bond0 eth0 eth1
 +
 +==== bridge setup ====
 +**''/etc/network/interfaces''**
 +   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 ===== ===== Perfect Debian Server Setup =====
Line 87: Line 115:
    127.0.0.1       localhost.localdomain   localhost       server1    127.0.0.1       localhost.localdomain   localhost       server1
    192.168.0.100   server1.example.com     server1    192.168.0.100   server1.example.com     server1
 +
 +
 +
 +
 +
  
 ==== Configuration optimization ==== ==== Configuration optimization ====
 ''/etc/syslog.conf'' \\ ''/etc/syslog.conf'' \\
 ''/etc/issue'' \\ ''/etc/issue'' \\
 +[[http://tnt.aufbix.org/tnt/doku.php?id=dns&s=host%20conf#general_dns_linux_stuff|/etc/host.conf]]\\
 ''/etc/issue.net'' \\ ''/etc/issue.net'' \\
 ''/etc/motd'' \\ ''/etc/motd'' \\
Line 121: Line 155:
    #   set the adapter to forced speed and duplex.     #   set the adapter to forced speed and duplex. 
    #   Example usage: insmod e100.o e100_speed_duplex=4,4 (for two adapters)    #   Example usage: insmod e100.o e100_speed_duplex=4,4 (for two adapters)
 +
 +
 +## 
 +#
 +
 +==== Some dpkg-hacks ====
 +
 +   dpkg-query -W --showformat='${Package}\n'
 +   dpkg-query -W --showformat='${Installed-Size} ${Status} ${Package}\n' | sort -n
 +   dpkg --get-selections | awk '{ print $1; }'| tr "\n" " "
 +**Sorting debian packages installed by size**
 +   dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n'  | sort -k2 -n
 +
 +
 +== How to disable IPv6 in debian linux ==
 +/etc/modprobe.d/aliases\\
 +net ipv-10 off\\
 +net ipv6 off\\
 +
 +===== Tips & troubleshooting =====
 +==== 'apt-get' (Debian) says "E: Dynamic MMap ran out of room" and bails out ====
 +
 +Create a file **/etc/apt/apt.conf** and put something like:
 +
 +   Apt::Cache-Limit 67108864;
 +
 +in it. If it still fails, make that number higher.
 +
 +==== apt-get (from Debian) suddenly segfaults ====
 +
 +Delete the file '**/var/cache/apt/pkgcache.bin**' and re-run '**apt-get update**'.
 +
 +==== 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/Debian, then to a
 +
 +   sudo dpkg --set-selections < package_list.txt
 +   sudo apt-get -y update
 +   sudo apt-get dselect-upgrade
 +
linux/debian.1164194180.txt.gz ยท Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready