Skip to content

Instantly share code, notes, and snippets.

@joshrickard
Last active August 29, 2015 14:14
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 joshrickard/44c15bd3a63b59adb851 to your computer and use it in GitHub Desktop.
Save joshrickard/44c15bd3a63b59adb851 to your computer and use it in GitHub Desktop.
Ubuntu Server 14.04 LTS with Ruby
sudo apt-get -y update
sudo apt-get -y dist-upgrade
sudo apt-get -y install apticron build-essential curl git-core ntp sendmail
sudo apt-get -y autoremove
# reboot
shutdown -r now
# update email address for update notifications
#
# nano /etc/apticron/apticron.conf
# EMAIL="josh.rickard@gmail.com"
#
# add new user and sudo access
#
# adduser <username>
# gpasswd -a <username> sudo
#
# add ssh key logins
# su - <username>
# mkdir ~/.ssh
# chmod 700 ~/.ssh
# nano ~/.ssh/authorized_keys
# paste in the local public key
# chmod 600 ~/.ssh/authorized_keys
# exit
# restrict root login
# nano /etc/ssh/sshd_config
# PermitRootLogin no
# service ssh restart
# setup git
git config --global user.name "Josh Rickard"
git config --global user.email josh.rickard@gmail.com
# setup rvm
curl -L https://get.rvm.io | bash
source ~/.rvm/scripts/rvm
# install ruby
rvm install 2.2
rvm use 2.2 --default
ruby -v
# update gems
gem update
# https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
# https://www.digitalocean.com/community/tutorials/additional-recommended-steps-for-new-ubuntu-14-04-servers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment