Created
October 2, 2014 05:26
-
-
Save leandrowd/828611e1ec185138e3f9 to your computer and use it in GitHub Desktop.
Linux machine bootstrap
This file contains hidden or 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
#Updating the repo | |
#Adding google chrome keys | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
#updating the apt-get with the new repos | |
sudo apt-get update | |
#build/compiling tools | |
sudo apt-get install build-essential | |
#installing ruby | |
#rbenv | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
source ~/.bashrc | |
type rbenv | |
#ruby | |
rbenv install 2.1.2 | |
rbenv local --unset | |
rbenv global 2.1.2 | |
echo 'export RBENV_VERSION=2.1.2' >> ~/.bashrc | |
source ~/.bashrc | |
#bundler | |
gem install bundler | |
rbenv rehash | |
#installing chrome | |
sudo apt-get install google-chrome-stable | |
#sudo apt-get install google-chrome-beta | |
#sudo apt-get install google-chrome-unstable | |
#installing git | |
sudo apt-get install git | |
#installing vim | |
sudo apt-get install vim | |
#installing sublime text | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
sudo apt-get update | |
sudo apt-get install sublime-text-installer | |
#setting sublime as a default and adding the command line shortcut | |
echo 'export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH"' >> ~/.bashrc | |
echo 'export EDITOR="subl -w"' >> ~/.bashrc | |
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl | |
#installing node.js | |
sudo apt-get install nodejs | |
sudo apt-get install npm | |
#installing front end tools globally (requires sudo) | |
sudo npm install -g grunt | |
sudo npm install -g bower | |
#installing virtual box | |
sudo apt-get install virtualbox | |
sudo apt-get install virtualbox-dkms | |
#installing vagrant | |
sudo apt-get install vagrant | |
#TODO: Add automatic downlading of my .bash configs from my github repo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment