Sunday, December 14, 2014

HTML Academy

Thursday, December 11, 2014

SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/

Make sure you use latest rvm:
rvm get stable
Then you can do two things:
  1. Update certificates:
    rvm osx-ssl-certs update all
  2. Update rubygems:
    rvm rubygems latest


OR

gem sources -r https://rubygems.org
gem sources -a http://rubygems.org  

Tuesday, December 9, 2014

VirtualBox: access Windows-host shared folders from Ubuntu-guest

This is the scenario that you run Windows as your host operating system and Ubuntu in a VirtualBox, and that you want to access a specific Windows folder from Ubuntu.
First you have to make sure that have install Guest Additions. From the VirtualBox’s menu go to Devices → Install Guest Additions…This will mount a virtual CD on your /media/cdrom. Normally this folder’s window will show up. As root run the programVBoxLinuxAdditions.run. When the program completes reboot your VirtualBox.
With Guest Additions installed you may now go ahead and define the shared folder(s). From the VirtualBox’s menu go to Devices → Shared Folders. A dialog will show up. In this dialog you can specify which folder from your Windows system you want to share with your Ubuntu. Press the button with the + symbol to add a new shared folder in the list. You will have to specify a Folder Name for each folder you add. Make sure you memorize that name because you will need it very soon.
When done with you shared folder(s) specification, you may now go ahead and actually mount these folders from Ubuntu. First you have to create a mounpoint, that is, a directory in your Ubuntu which will reflect the shared folder from Windows:
# sudo mkdir /media/windows-share
Of course you may choose an alternative path for your mountpoint. With your mountpoint created you can now mount the shared folder, like this:
# sudo mount -t vboxsf folder-name /media/windows-share
Where folder-name will be the name you assigned for this folder when you were adding it in the shared folders list.
You could use the /etc/init.d/rc.local script to execute these commands on startup to have the shared folders automatically mounted every time you start your Ubuntu VirtualBox.

Powered by Blogger.