misc.sh 665 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. echo -e '\033[35m
  3. __ ____
  4. / |/ (_)_________
  5. / /|_/ / / ___/ ___/
  6. / / / / (__ ) /__
  7. /_/ /_/_/____/\___/
  8. \033[0m'
  9. if [ "$EUID" -ne 0 ]; then
  10. echo "Please run as root"
  11. exit
  12. fi
  13. sleep 2
  14. # TODO --force-yes is deprecated, use one of the options starting with --allow instead.
  15. apt-get --yes install vim curl
  16. sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
  17. locale-gen
  18. apt-get --yes install ntp
  19. dpkg-reconfigure tzdata
  20. apt-get --yes install tmux etckeeper needrestart htop lynx unzip nfs-common
  21. # TODO cron
  22. # https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log/121560#121560
  23. echo -e "\033[92;1mMisc done \033[Om"