Monday, February 16, 2015

Install Rails 4.1 on Ubuntu 14.04





Reference:

What versions of ruby are supported in 14.04?

Failed to build gem native extension — Rails install

sqlite3-ruby install error on Ubuntu

ExecJS and could not find a JavaScript runtime

Extend Virtualbox Ubuntu Window Size


# Extend Virtualbox Ubuntu Window Size
# Press Ctrl + Alt + T to open terminal
# execute
sudo apt-get install virtualbox-guest-dkms
# Input your password when asking
# Type Y then Enter when asking
# Restart VM
# Done

Update : 

The method above doesn't work for me in newer version of virtualbox, another way:

Run Command
# Update repo
sudo apt-get update
# install linux headers
sudo apt-get install linux-headers-$(uname -r)
# install build-essential and dkms
sudo apt-get install build-essential
sudo apt-get install dkms

Then click 'Device-> Insert Guest Addition CD Image' at menu bar and follow instruction.

Reference:

How do I install Guest Additions in a VirtualBox VM?

cannot change screen size from 640x480 after 14.04 installation on VirtualBox OSX [duplicate]

Saturday, February 7, 2015

Install Ubuntu 14.04 on VirtualBox

Execute VirtualBox
New
(Click image to view)

=>
Name: RailsPlayground
Type: Linux
Version: Ubuntu (32 bit)
Next

=>
Memory Size: 2048 MB
Next

=>
Create a virtual hard drive now
Create

=>
Hard drive file type: VDI
Next

=>
Storage on physical hard drive: Fixed size
Next

=>
File location and size
Change size to 16GB
Create

=>
VM created

=>
Settings

=>
Network - Adapter 1 - Bridged Adapter
Select Adapter as needed

=>
Storage - Controller IDE
Choose .iso file as needed
OK

=>
Start

=>
Ubuntu screen appeared
Select language, click Install Ubuntu

=>
Check Download updates while installing
Continue

=>
Install Now
(...)
Install Finished
Click Restart Now

=>
Close VM
=>
Start it again
Done

Test Test Test

Start to trying something in/on/with Rails...
Hope it will be fun.


###

JS
CSS
HTML