Last active
July 12, 2017 14:19
-
-
Save flyfy1/ce4343b841b52301bbb5849249e9ba84 to your computer and use it in GitHub Desktop.
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
# 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