home · contact · privacy
WIP
[config] / all_new_2018 / setup_server.sh
1 #!/bin/sh
2 # Next setup steps for a server whose login policy has just been set from
3 # the outside via ./init_user_and_keybased_login.sh.
4 set -e
5
6 # Adapt /etc/ to our needs by symlinking into ./linkable_etc_files. This
7 # will set basic configurations affecting following steps, such as setup
8 # of APT and the locale selection, so needs to be right at the beginning.
9 ./symlink_etc.sh all server
10
11 # Ensure package installation state as defined by what packages are
12 # defined as required by Debian policy and by settings in ./apt-mark/.
13 apt update
14 ./install_for_target.sh all server
15 ./purge_nonrequireds.sh all server
16
17 # Only upgrade after reducing the system to the desired minimum, so that
18 # we don't need to get more data than necessary.
19 apt -y dist-upgrade
20
21 # Set Berlin localtime.
22 ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
23
24 # If we have not yet set the shell for user plom, ensure it here. This
25 # is mostly for convenience.
26 usermod -s /bin/bash plom