GNU/Linux initial setup hints

Debian-specific

fsck -y

In /etc/default/rcS set

FSCKFIX=yes

This has the effect of running fsck -y rather than fsck on startup. Note that it may be potentially unsafe.

In /etc/apt/apt.conf set:

APT::Install-Recommends "0";
APT::Install-Suggests "0";

Check packages for known bugs before installation

Install apt-listbugs package.

Non-debian-specific

noatime

In /etc/fstab, set noatime option for filesystems for which it makes sense.

sudo

Allow myself to do everything via sudo:

feuerbach       ALL=(ALL) NOPASSWD: ALL
Defaults:feuerbach timestamp_timeout=-1

(Remember that later entries override previous ones, so place the most specific entries at the bottom.)

Protect ssh from attacks

In /etc/ssh/sshd_config:

  1. Disable root login

    PermitRootLogin no
    
  2. Optionally change ssh port

    Port 123