iputils-ping
# what would we do without this …
apt
-# not only pull in systemd, but also /sbin/reboot and /sbin/shutdown
-systemd-sysv
nftables
# We want to be able to use ALL our servers as borg backup destinations.
borgbackup
+# not only pull in systemd, but also /sbin/reboot and /sbin/shutdown
+systemd-sysv
# /etc/ssh/sshd_config.
#
# Dependencies: ssh, scp, sshpass, ~/.ssh/id_rsa.pub, properly
-# configured sshd_config file in misc.sh:$linkable_files_dir
+# configured sshd_config file in misc.sh:$local_etc_server
set -e
. ./misc.sh
. ../../misc.sh
# /etc/ssh/sshd_config.
#
# Dependencies: ssh, scp, ~/.ssh/id_rsa.pub, properly configured sshd_config
-# file in misc.sh:$linkable_files_dir
+# file in misc.sh:local_etc_server$
set -e
. ./misc.sh
. ../../misc.sh
ssh-add
# This will be used to log-in as root from plom account.
-echo 'Asking for new root password.'
-ssh root@"${server}" "passwd"
+printf '\nAsking for new root password.\n\n'
+ssh root@"${server}" 'printf "\n\n" && passwd'
# Set up plom's ~/.ssh/authorized_keys from root's.
ssh root@"${server}" 'useradd -m plom'
set -e
. ./misc.sh
+
+path_sources_list="/etc/apt/sources.list"
+
apt update
-apt -y upgrade
+apt -y -o Dpkg::Options::="--force-confnew" upgrade
apt -y -o Dpkg::Options::="--force-confnew" full-upgrade
-path_sources_list="/etc/apt/sources.list"
cp "${config_tree_prefix}/etc_files/all${path_sources_list}" "${path_sources_list}"
apt clean
apt update
-apt -y upgrade
+apt -y -o Dpkg::Options::="--force-confnew" upgrade
apt -y -o Dpkg::Options::="--force-confnew" full-upgrade
apt -y autoremove
+cp "${locall_path_sshd_config}" "${system_path_sshd_config}"
# /etc/ssh/sshd_config.
#
# Dependencies: ssh, scp, sshpass, ~/.ssh/id_rsa.pub, properly
-# configured sshd_config file in misc.sh:$linkable_files_dir
+# configured sshd_config file in misc.sh:$local_etc_server
set -e
. ./misc.sh
. ../../misc.sh
# This will be used to log-in as root from plom account.
printf '\nFirst, enter the old root password; then enter new password three times.\n\n'
-ssh root@"${server}" 'printf "\n\n" && passwd'
+ssh root@"${server}" 'printf "\n" && passwd'
# Save root password for sshpass
stty -echo
#!/bin/sh
-linkable_files_dir="${config_tree_prefix}/etc_files/server"
+local_etc_server="${config_tree_prefix}/etc_files/server"
system_path_sshd_config='/etc/ssh/sshd_config'
-local_path_sshd_config="${linkable_files_dir}${system_path_sshd_config}"
+local_path_sshd_config="${local_etc_server}${system_path_sshd_config}"
expect_n_args() {
min_args="$1"