Created
November 9, 2012 21:10
-
-
Save toobulkeh/4048262 to your computer and use it in GitHub Desktop.
HOWTO: Install a Rails Development Environment on Debian on Virtualbox inside Windows 7 & 8
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
#Instruction Sources: | |
# Guest Additions on Debian - http://virtualboxes.org/doc/installing-guest-additions-on-debian/ | |
sudo su - | |
apt-get update | |
apt-get upgrade | |
apt-get install build-essential module-assistant | |
m-a prepare #Click on Install Guest Additions… from the Devices menu, then run | |
mount /media/cdrom. | |
sh /media/cdrom/VBoxLinuxAdditions.run #and follow the instructions on screen. | |
# Install XFCE4 - http://wiki.debian.org/Xfce | |
su - | |
apt-get install xorg xfce4 xfce4-goodies | |
startxfce4 | |
# Install CURL | |
sudo apt-get install curl | |
# Install Ruby and RVM - https://rvm.io/rvm/install/ | |
\curl -L https://get.rvm.io | bash -s stable --ruby | |
# Install Rails, RubyGems, and Dependencies - http://stackoverflow.com/a/8954748/1376201 | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc | |
~/.bashrc | |
sudo apt-get install build-essential libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion | |
rvm install ruby-head | |
rvm use ruby-head | |
gem install rails | |
# Integrate RVM with Gnome Terminal - https://rvm.io/integration/gnome-terminal/ | |
# Install Sublime Text 2 - https://gist.github.com/2716568 | |
# Solarize Gnome Terminal | |
# Install Nodejs - https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager | |
apt-get install python g++ make | |
mkdir ~/nodejs && cd $_ | |
wget -N http://nodejs.org/dist/node-latest.tar.gz | |
tar xzvf node-latest.tar.gz && cd `ls -rd node-v*` | |
./configure | |
sudo make install | |
# 11. Install Postgres and Dependencies | |
# 12. Install Project Gems (Sassy, Postgres, HAML, Heroku, Cukes, Bootstrap) | |
sublime_text ~/Projects/<project>/Gemfile | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment