dash (Debian's /bin/sh) doesn't support echo's -e flag: it prints "-e" literally as text before processing the rest of the string's backslash escapes. Every script's colored banner was affected. printf's escape handling is POSIX-mandated and behaves identically under dash and bash, so swap all 90 echo -e calls for printf, appending the trailing \n that echo used to add implicitly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
32 lines
670 B
Bash
Executable File
32 lines
670 B
Bash
Executable File
#!/bin/sh
|
|
|
|
printf '\033[35m
|
|
__ ____
|
|
/ |/ (_)_________
|
|
/ /|_/ / / ___/ ___/
|
|
/ / / / (__ ) /__
|
|
/_/ /_/_/____/\___/
|
|
|
|
\033[0m\n'
|
|
|
|
if [ "$(id -u)" -ne 0 ]; then
|
|
echo "Please run as root"
|
|
exit
|
|
fi
|
|
|
|
sleep 2
|
|
# TODO --force-yes is deprecated, use one of the options starting with --allow instead.
|
|
apt-get --yes install vim curl
|
|
sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
|
|
locale-gen
|
|
apt-get --yes install ntp
|
|
dpkg-reconfigure tzdata
|
|
apt-get --yes install tmux etckeeper needrestart htop lynx unzip nfs-common
|
|
|
|
# TODO cron
|
|
# https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log/121560#121560
|
|
|
|
|
|
|
|
printf "\033[92;1mMisc done \033[Om\n"
|