misc.sh 903 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. echo -e '
  3. __ __ _
  4. | \/ (_)___ __
  5. | |\/| | (_-</ _|
  6. |_| |_|_/__/\__|
  7. '
  8. . bin/checkroot.sh
  9. sleep 2
  10. echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main
  11. @edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community
  12. @testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
  13. apk update
  14. apk add procps vim curl tmux etckeeper htop lynx unzip grep shadow coreutils certbot pwgen rsync patch #ntp # needrestart
  15. # sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
  16. # locale-gen
  17. apk add tzdata
  18. TIMEZONE="Europe/Paris"
  19. cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
  20. echo "${TIMEZONE}" > /etc/timezone
  21. rc-service crond start && rc-update add crond
  22. git config --global core.safecrlf false
  23. echo "limiting su to the admin group"
  24. groupadd admin
  25. echo -e "auth required pam_wheel.so group=admin" >> /etc/pam.d/su
  26. echo -e "Misc done"