Here is my link for Vagrant Setup: link
- Here
- Now click the amd64 link: VirtualBox 5.0.2 for OS X hosts
- Or just click this link: Here
- Install VB
- Go to this page
- Now pick Ubuntu 15.04 64-bit
Instructions on how to spin up the VM with Ubuntu will be Screencasted/Taught at the Student Led Session
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
Now we go get rbenv (ruby version manager)
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
rbenv install 2.2.3
rbenv global 2.2.3
ruby -v
How to get Node for Ubuntu
dpkg --get-selections | grep node
sudo apt-get remove --purge node
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
node -v
npm -v
Now to force update to the freshest version of everything:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Then do:
sudo npm update
Close Terminal, open a new one and do:
node -v
npm -v
If the versions have not changed, just (make sure you are ready to restart):
sudo reboot
And you will be in business!
gem install rails -v 4.2.4
Now you need to "rehash" rbenv
rbenv rehash
Should be good to go. To be sure just:
ruby -v
rails -v
node -v
npm -v
sudo apt-get update
sudo apt-get install htop
sudo apt-get install lm-sensors
sudo apt-get install vim
After getting some essentials, it is time to upgrade as much as possible
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot