Last active
February 23, 2017 21:30
-
-
Save owahab/fd3536efc311e98eb363 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
echo '* Installing essential tools...' | |
sudo apt-get update | |
sudo apt-get -y install vim git-core curl zlib1g-dev build-essential module-assistant libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties openssl libreadline6-dev | |
echo '* Installing Chrome...' | |
sudo sh -c "echo 'deb http://dl.google.com/linux/deb/ stable main' > /etc/apt/sources.list.d/chrome.list" | |
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get -y install google-chrome-stable | |
echo '* Installing Ruby on Rails...' | |
sudo apt-get update | |
sudo apt-get -y install sqlite3 postgresql-contrib postgresql-9.3 libpq-dev postgresql-common xvfb qt5-default libqt5webkit5-dev imagemagick redis-server | |
if [ ! -d ~/.rbenv ]; then | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH=~/.rbenv/bin:$PATH' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
fi | |
if [ ! -d ~/.rbenv/plugins/ruby-build ]; then | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH=~/.rbenv/plugins/ruby-build/bin:$PATH' >> ~/.bashrc | |
fi | |
source ~/.bashrc | |
~/.rbenv/bin/rbenv versions | grep 2.1.5 || ~/.rbenv/bin/rbenv install 2.1.5 && ~/.rbenv/bin/rbenv global 2.1.5 | |
~/.rbenv/bin/rbenv rehash | |
echo "gem: --no-ri --no-rdoc" > ~/.gemrc | |
~/.rbenv/shims/gem install bundler | |
~/.rbenv/bin/rbenv rehash | |
echo '* Installing NodeJS...' | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash | |
source ~/.bashrc | |
nvm install 0.12.7 | |
node install npm | |
echo '* Installing Sublime Text 3...' | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
sudo apt-get update | |
sudo apt-get install sublime-text-installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment