Differences between revisions 6 and 7
Revision 6 as of 2010-11-12 07:44:46
Size: 2233
Editor: SamatJain
Comment: tmpfs for /var/run and /var/lock
Revision 7 as of 2010-11-14 09:09:22
Size: 2284
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 40: Line 40:
bash-completion \
sysfsutils procpsutils \
Line 53: Line 55:
$template DailyLogs,"/var/log/archive/%$YEAR%%$MONTH%/%$YEAR%%$MONTH%%$DAY%.log" \$template DailyLogs,"/var/log/archive/%\$YEAR%%\$MONTH%/%\$YEAR%%\$MONTH%%\$DAY%.log"

Chris Lamb has a good Debian installation checklist, from which I stole most of this list.

   1 # Configure sudo, adding my user to the sudo group so I don't get password prompts
   2 aptitude install sudo
   3 adduser xjjk sudo
   4 echo '%sudo ALL=NOPASSWD: ALL' > /etc/sudoers.d/No-Passwords-for-sudo-Group
   5 chmod 0440 /etc/sudoers.d/No-Passwords-for-sudo-Group
   6 
   7 # Configure locales to prevent harassment about it later
   8 aptitude install locales
   9 dpkg-reconfigure -plow locales
  10 # …or install all locales so they don't need to be configured/reinstalled
  11 aptitude install locales-all
  12 
  13 # Disable installation of recommended packages
  14 echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/90recommends
  15 
  16 # Enable log compression with date postfix'd extension
  17 cat /etc/logrotate.conf | sed "s/#compress/compress/" > /etc/logrotate.conf.tmp
  18 echo "dateext" >> /etc/logrotate.conf.tmp
  19 mv /etc/logrotate.conf.tmp /etc/logrotate.conf
  20 
  21 # Prevent PAM from allowing easily-crackable passwords
  22 aptitude install libpam-cracklib
  23 
  24 # Install essential utilities
  25 sudo aptitude install \
  26 openssh-server screen \
  27 rsync \
  28 atool lzma rzip xz-utils \
  29 htop dstat iotop \
  30 manpages manpages-dev \
  31 strace tcpdump lsof \
  32 moreutils \
  33 dnsutils \
  34 chrony \
  35 vim less \
  36 bash-completion \
  37 sysfsutils procpsutils \
  38 molly-guard
  39 
  40 # HDD Temperature/SMART monitoring utilities
  41 aptitude install hddtemp smartmontools
  42 sed -i 's/^#start_smartd=yes/start_smartd=yes/' /etc/default/smartmontools
  43 /etc/init.d/smartmontools start
  44 
  45 # Configure rsyslog for daily archival logging
  46 cat << EOF > /etc/rsyslog.d/51-cron.conf
  47 # Enable cron logging
  48 cron.* /var/log/cron.log
  49 EOF
  50 cat << EOF > /etc/rsyslog.d/99-archive.conf
  51 \$template DailyLogs,"/var/log/archive/%\$YEAR%%\$MONTH%/%\$YEAR%%\$MONTH%%\$DAY%.log"
  52 # Archive logging
  53 *.* -?DailyLogs
  54 EOF
  55 cat << EOF > /etc/cron.daily/rsyslog-archive
  56 #!/bin/sh
  57 # Compress *.log-files not changed in more than 24 hours
  58 find /var/log/archive -type f -mtime +1 -name "*.log" -exec xz '{}' \;
  59 EOF
  60 
  61 # Use tmpfs for /var/run and /var/lock (may break some buggy packages), like Ubuntu
  62 cat << EOF >> /etc/default/rcS
  63 RAMRUN=yes
  64 RAMLOCK=yes
  65 EOF

SamatsWiki: DebianChecklist (last edited 2019-10-18 23:01:36 by SamatJain)