Skip to content

Instantly share code, notes, and snippets.

@leoyuholo
Last active December 12, 2015 15:06
Show Gist options
  • Save leoyuholo/11077326 to your computer and use it in GitHub Desktop.
Save leoyuholo/11077326 to your computer and use it in GitHub Desktop.
script for setting up ubuntu 14.04.1 server 64bit on VMware workstation 11.1.0 build-2496824
# ubuntu server setup
# install ubuntu 14.04.1 server 64-bit on VMware with easy install
# put this script file in guest OS and run
# this includes:
# build-essential
# ssh,
# git,
# curl,
# vmware hgfs,
# correct timezone (HKT)
# install
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential ssh git curl
# re-config vmware-tools because hgfs fails without build-essential
sudo vmware-config-tools.pl -d
# 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 AAAAB3NzaC1yc2EAAAABJQAAAIEAtwb9SKLABNYmMbAO5eTQrkhFRu/5y9us4PD5jZHo8aMa2gXbyJeQsvBGAH4Xc6Uz3djmbxKcinUl0ArJb39uLnJM2pTuVRUdtpTcEMe+hVR3Das4vjaEhsoh8Jq988IFturYZXQjtNX+kkEHUljSlOR++zKcdpAHAludqK1czjs=" > ~/.ssh/authorized_keys
@leoyuholo
Copy link
Author

wget https://goo.gl/a3SQlT -O setup.sh
chmod +x setup.sh
./setup.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment