Debian

Nützliches

Ethernet Interfaces nur starten, wenn sie einen Link haben

less /etc/network/interfaces
...
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0 inet dhcp
    pre-up /usr/local/bin/check_eth_state $IFACE
...
less /usr/local/bin/check_eth_state
 
#!/bin/sh
set -e
ethd=${1}
 
/sbin/ifconfig ${ethd} down
/sbin/ifconfig ${ethd} up
if mii-tool ${ethd} |grep -q 'no link' ; then
    echo
    echo " ::Sorry device ${ethd} has no link!"
    /sbin/ifconfig ${ethd} down
    exit 1
else
    /sbin/ifconfig ${ethd} down
    exit 0
fi

:!:Hinweis: Eventuell vorher apt-get install mii-diag

Administration

Configfile Leichen finden

dpkg -l |grep ^rc|awk '{print $2}' |xargs dpkg -P

Linux Kernel - The Debain Way

apt-get install kernel-package
cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.6/linux-<kernel-version>.tar.bz2
tar xjf linux-<kernel-version>.tar.bz2
ln -s linux-<kernel-version> linux
cd linux
make menuconfig
<Jetzt Kernel konfigurieren>
make-kpkg --bzImage --revision <version> kernel_image
cd ..
dpkg -i linux-image-<kernel-version>_<version>_i386.deb
reboot

Neue Truetype Schriften für X installieren

$ su -
apt-get install libft-perl defoma x-ttcidfont-conf
mkdir /usr/local/share/fonts/truetype
cp <truetype-schriften> /usr/local/share/fonts/truetype/
defoma-hints -c --no-question truetype /usr/local/share/fonts/truetype/* >/etc/defoma/hints/<Bezeichner>.hints
defoma-font register-all /etc/defoma/hints/<Bezeichner>.hints
defoma-reconfigure
xset fp rehash
debian.txt · Zuletzt geändert: 2011/07/22 23:26 (Externe Bearbeitung)
 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki