common.sh 833 B

1234567891011121314151617181920212223242526272829
  1. # Quiets the TTY error message
  2. #sed -i 's/^mesg n$/tty -s \&\& mesg n/g' /root/.profile
  3. DEBIAN_FRONTEND=noninteractive
  4. apt-get -y update
  5. apt-get -y upgrade
  6. apt-get install -y openntpd htop autossh sshfs vim
  7. echo 'UTC' | tee /etc/timezone
  8. dpkg-reconfigure -f noninteractive tzdata
  9. update-alternatives --set editor /usr/bin/vim.basic
  10. ufw allow ssh
  11. ufw --force enable
  12. ufw logging off
  13. sed -i 's|[#]*PasswordAuthentication yes|PasswordAuthentication no|g' /etc/ssh/sshd_config
  14. sed -i 's|UsePAM yes|UsePAM no|g' /etc/ssh/sshd_config
  15. #sed -i 's|[#]*PermitRootLogin yes|PermitRootLogin no|g' /etc/ssh/sshd_config
  16. service ssh restart
  17. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  18. sudo dpkg -i google-chrome-stable_current_amd64.deb
  19. sudo apt-get install -f -y
  20. rm google-chrome-stable_current_amd64.deb