Some tips on getting Windows 10 to run VirtualBox with Ubuntu 14.04 for Rails


Here are some commands I found useful setting up my virtual machine ready for Ruby on Rails – as usual, exercise your own caution!

Host system

  • Windows 10
  • VirtualBox 4.3.30

Virtual Machine

  • Ubuntu 14.04

Set up a new unix user ready for VirtualBox (better than using the default vagrant user):

sudo adduser pete
sudo usermod -aG sudo pete

Shared folders appear on the guest OS in the /media folder with a prefix sf_ and with group vboxsf so set this up

sudo adduser pete vboxsf

Make sure you do this as the user account you’ll want to run Ruby as!

su pete

Get Ubuntu up to date!

sudo apt-get update
sudo apt-get upgrade

Run these again until you don’t get errors!

Get the copy-paste and folder sharing capabilities working

sudo apt-get install virtualbox-guest-dkms

Install ruby:

Instructions from Setup Ruby On Rails on Ubuntu 14.04 Trusty Tahr at https://gorails.com/setup/ubuntu/14.04 are really good.

Only differences:

Where it says

curl -L https://get.rvm.io | bash -s stable

You will get an message – you’ll need to do something like

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B17...2D39DC0E3

Where it says

git config --global user.name "YOUR NAME"

The YOUR NAME bit is your github user name

Installing nodejs has changed – instead of

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

do

curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install nodejs

Mapping a folder in your home directory to the directory shared via host machine – e.g.

cd ~
ln -s /media/sf_RubymineProjects RubymineProjects
Advertisements

About saasmd

I am an experienced software-as-a-service entrepreneur, based in London, UK. I love building interesting software businesses. My current venture is StorIQ, a platform to help bricks-and-mortar retailers manage their operations more effectively. This blog is a space to share low-level techie stuff that I think other people will find useful.
This entry was posted in Techy Stuff. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s