Guest User

Untitled

a guest
Nov 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. # Download and Install the Latest Updates for the OS
  2. apt-get update && apt-get upgrade -y
  3.  
  4. # Set the Server Timezone to CST
  5. echo "Europe/Amsterdam" > /etc/timezone
  6. dpkg-reconfigure -f noninteractive tzdata
  7.  
  8. # Install essential packages
  9. apt-get -y install zsh htop
  10.  
  11. # Install MySQL Server in a Non-Interactive mode. Default root password will be "root"
  12. echo "mysql-server mysql-server/root_password password toomanysecrets" | sudo debconf-set-selections
  13. echo "mysql-server mysql-server/root_password_again password toomanysecrets" | sudo debconf-set-selections
  14. apt-get -y install mysql-server
  15.  
  16. # Run the MySQL Secure Installation wizard
  17. mysql_secure_installation --use-default
  18.  
  19. service mysql restart
Add Comment
Please, Sign In to add comment