-
-
Save yetti/6884883 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
# 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 protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment