Last active
February 27, 2022 10:41
-
-
Save leoyuholo/57b37474e24dec76856d to your computer and use it in GitHub Desktop.
script for setting up ubuntu14.04.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ubuntu server setup | |
# put this script file in OS and run | |
# this includes: | |
# correct timezone (HKT), | |
# build-essential, | |
# ssh, | |
# git, | |
# curl | |
# install | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# sudo apt-get -y dist-upgrade | |
sudo apt-get -y install build-essential ssh git curl | |
# reconfig timezone to Hong Kong (UTC +8) | |
sudo sh -c "echo 'Asia/Hong_Kong' > /etc/timezone" | |
sudo dpkg-reconfigure -f noninteractive tzdata | |
# inject public key | |
mkdir ~/.ssh | |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC3KjSb1hdcdmosaBrlMuMXsOmwFE+8JyZpYsy3ligd5dW5B8v6RELcN9EUX+8cBme6SWROPkkAtTiQscB7ohoEbxry63ccc4gSnyvEEkqW41gPc5Aageiu6gKCOB60ERs7gjRpCra0LBGTYxDRUsXNYaBidZtz6sQuz80SfocmYeujCoW/p+qBI/UsSzEGSIT7Xgse6XL/gvK67b7nkD6pyCrJqrzzB8jMTg/DZ0VXP5d0edAyQe6ZhgpOrSL8tc4k+XlByP5WuYUxHksSRC/1E6L7p/nFUtSGoxLXyJaEn+yItGDZ4ckvse1WxMJVJ+EV69hmA+DA4XSKcMntS+uha+NBSSD7pUSuu4tV7HYk5KI+RfHSY/kU0db1B4237PgruRKp06sUatCSKtyJCFPm+hrMTQBkc/Xzvi8mfMuUwA7hVzjxJM/g1vP0SQnLHnQZbXkm8eiVTApQWL50z791EiUw2DEUb2mOW9GPxUL6UqIG01+OO0/ekahe3Up6nnhGuHUwO0FH/qA5kBbnhIWZOgPiTD2KcntKC9M3wxBAJ7nb1aK9Q9MbE6xPbcgUcg3xWHMrLrVnKaoRQs0lMzZjDeA5u8TlcFDYVtvNj8LgmJ1c+QWTmCSpBdA3jednNFaBkLQaA3xp3Pu4acJ6rxBxpWjzOOr7+LGFtyspSGAbaQ==" > ~/.ssh/authorized_keys |
Author
leoyuholo
commented
Dec 12, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment