misc.sh 586 B

123456789101112131415161718192021222324252627282930
  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. apt-get --yes --force-yes install vim curl
  15. sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
  16. locale-gen
  17. apt-get --yes --force-yes install ntp
  18. dpkg-reconfigure tzdata
  19. apt-get --yes --force-yes install tmux etckeeper needrestart
  20. # TODO cron
  21. # https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log/121560#121560
  22. echo -e "\033[92;1mMisc done \033[Om"