288
Comment:
|
1547
Revert typo fix, finish sudo section
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Describe DebianChecklist here. | Chris Lamb has a good [[http://www.chris-lamb.co.uk/2009/06/03/checklist-configuring-debian-system/|Debian installation checklist]], from which I stole most of this list. |
Line 4: | Line 4: |
# Configure sudo, adding my user to the sudo group so I don't get password prompts aptitude install sudo adduser xjjk sudo echo '%sudo ALL=NOPASSWD: ALL' > /etc/sudoers.d/No-Passwords-for-sudo-Group chmod 0440 /etc/sudoers.d/No-Passwords-for-sudo-Group # Configure locales to prevent harassment about it later aptitude install locales dpkg-reconfigure -plow locales # …or install all locales so they don't need to be configured/reinstalled aptitude install locales-all # Disable installation of recommended packages echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/90recommends |
|
Line 9: | Line 24: |
# Prevent PAM from allowing easily-crackable passwords apt-get install libpam-cracklib # Install essential utilities sudo aptitude install openssh-server \ atool lzma rzip xz-utils \ htop dstat iotop \ manpages manpages-dev \ strace tcpdump lsof \ moreutils \ dnsutils \ chrony \ molly-guard # HDD Temperature/SMART monitoring utilities aptitude install hddtemp smartmontools sed -i 's/^#start_smartd=yes/start_smartd=yes/' /etc/default/smartmontools /etc/init.d/smartmontools start |
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 apt-get install libpam-cracklib
23
24 # Install essential utilities
25 sudo aptitude install
26 openssh-server \
27 atool lzma rzip xz-utils \
28 htop dstat iotop \
29 manpages manpages-dev \
30 strace tcpdump lsof \
31 moreutils \
32 dnsutils \
33 chrony \
34 molly-guard
35
36 # HDD Temperature/SMART monitoring utilities
37 aptitude install hddtemp smartmontools
38 sed -i 's/^#start_smartd=yes/start_smartd=yes/' /etc/default/smartmontools
39 /etc/init.d/smartmontools start