Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@nchapman /
Last active Oct 13, 2015

Ubuntu setup
# wget -O -<REVISION>/ | bash
# Get updates
apt-get -y update
apt-get -y upgrade
# Install build tools
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core mysql-client libmysqlclient-dev libxslt-dev libxml2-dev python-software-properties
# Install Ruby
tar -xvzf ruby-2.0.0-p353.tar.gz
cd ruby-2.0.0-p353/
make install
cd ..
rm -rf ruby-2.0.0-p353/
rm ruby-2.0.0-p353.tar.gz
gem install bundler --no-ri --no-rdoc
# Install node.js
apt-add-repository ppa:chris-lea/node.js
apt-get -y update
apt-get -y install nodejs
# Install coffeescript
npm install -g coffee-script
# Setup users
adduser ubuntu
usermod -aG sudo ubuntu
# Configure ssh keys
echo "Upload your ssh public key"
echo "scp ~/.ssh/ ubuntu@"
mkdir /home/ubuntu/.ssh
mv /home/ubuntu/ /home/ubuntu/.ssh/authorized_keys
chown -R ubuntu:ubuntu /home/ubuntu/.ssh
chmod 700 /home/ubuntu/.ssh
chmod 600 /home/ubuntu/.ssh/authorized_keys
# Configure SSH
nano /etc/ssh/sshd_config
service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.