Skip to content

Instantly share code, notes, and snippets.

@yetti
Forked from strayduy/linode-setup.txt
Created October 8, 2013 13:43
Show Gist options
  • Save yetti/6884883 to your computer and use it in GitHub Desktop.
Save yetti/6884883 to your computer and use it in GitHub Desktop.
# 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 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
# 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 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/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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment