Skip to content

Instantly share code, notes, and snippets.

@flyfy1
Last active July 12, 2017 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyfy1/ce4343b841b52301bbb5849249e9ba84 to your computer and use it in GitHub Desktop.
Save flyfy1/ce4343b841b52301bbb5849249e9ba84 to your computer and use it in GitHub Desktop.
# This gist records the steps to setup a new Ubuntu Server
# User Setup - add user with sudo
sudo adduser $USERNAME
sudo adduser $USERNAME sudo
# Add SSH Login
mkdir ~$USERNAME/.ssh/
cat public_key > ~$USERNAME/.ssh/authorized_keys
chmod 500 -R ~$USERNAME/.ssh/
# Install commonly used tools
sudo apt-get install -y tmux git vim
# Install ruby: https://rvm.io/
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
# Install rails
gem install rails
# postgresql
sudo apt-get install -y postgresql
# create database
createdb $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment