Skip to content

Instantly share code, notes, and snippets.

@strayduy
Last active December 20, 2015 07:59
Show Gist options
  • Save strayduy/6097455 to your computer and use it in GitHub Desktop.
Save strayduy/6097455 to your computer and use it in GitHub Desktop.
Steps to set up a Linode server with Ubuntu 13.04
# Secure the server:
# https://library.linode.com/securing-your-server
# Install essential stuff
apt-get update
apt-get upgrade
apt-get install build-essential
apt-get install git
apt-get install zsh
apt-get install tmux
apt-get install zlib1g-dev # Dependency for bundler
apt-get install libssl-dev # To compile Ruby with SSL support
apt-get install autojump # Gotta have autojump
apt-get install curl # Not installed by default?
apt-get install screen
apt-get install python-pip
apt-get install ack-grep
apt-get install libevent-dev # Dependency for gevent
apt-get install python-dev # Dependency for gevent
apt-get install sqlite3
# Link ack-grep to ack
sudo ln -sf /usr/bin/ack-grep /usr/local/bin/ack
# Install node
# https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
# Install virtualenvwrapper
pip install virtualenvwrapper
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
mkdir ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
# Now restart shell
# Install ruby
# Use this version to match up with Octopress
rbenv install 1.9.3-p194
rbenv global 1.9.3-p194
rbenv rehash
# Install bundler and rails
gem install compass
gem install bundler
gem install rails
# Set up keys on github
# Set up dotfiles
git clone https://github.com/strayduy/dotfiles.git
cd dotfiles
git submodule init
git submodule update
ln -s dotfiles/oh-my-zsh .oh-my-zsh
ln -s dotfiles/oh-my-zsh-custom .oh-my-zsh-custom
ln -s dotfiles/vim .vim
ln -s dotfiles/vimrc .vimrc
ln -s dotfiles/zsh_aliases .zsh_aliases
ln -s dotfiles/zshrc .zshrc
# Change default shell to zsh
chsh -s /bin/zsh
# Configure git
git config --global user.name "your name"
git config --global user.email "email@example.com"
# Install Heroku Toolbelt
# https://toolbelt.heroku.com/debian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment