Last active
December 12, 2015 15:06
-
-
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
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 | |
# 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 |
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
since no easy way to transfer this script into guest OS
(i.e. copy and paste not available between host and guest without vmware tools, ssh not yet installed)
so added the snippet: