jueves, 5 de junio de 2008

Avoiding unnecesary restarts

When you have a lot of servers to manage from a single keyboard/monitor, sometimes is easy to reboot a Linux system when trying to login into a Windows one using the crtl+alt+del keys. To solve this, just comment this line in the /etc/inittab file:

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

miércoles, 7 de mayo de 2008

apt-get install without recommends

To automatically ignore recommends packages just:

echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/70debconf