How to clone a virtual machine in Virtual Box

Hey… last night I needed to clone a virtual machine that I have… so… looking around the web I’ve found how to do it…

VBoxManage clonehd /home/user/.VirtualBox/VDI/image.vdi /home/user/.VirtualBox/VDI/image.vdi

By the way… you HAVE to provide absolute paths to VirtualBox images..


Install Chromium in Fedora 13 (Updated 09/08/2010)

Since Fedora comes with Firefox as the default internet browser and there is no way to install Chromium by default, I leave you this post on How to Install Chromium in Fedora in a few easy steps.

First of all… What is Chromium?….

this is an open source browser developed by Google (and it’s the base for his Google Chrome).

By default, Chromium can’t be installed by default in fedora due to some issues with packaging…
(check this article: Why Chromium Isn’t in Fedora).

Now, to the steps:

1. Open a terminal window and type:


2. Create a “chromium.repo” file in “/etc/yum.repos.d” using the following command at Terminal

gedit /etc/yum.repos.d/chromium.repo

3. In the opened file paste the following code

name=Chromium Test Packages
name=Chromium for Fedora

4.Save and close the file and at the terminal type the following command

yum install chromium

This should install Chromium on your Fedora 13. You can find it under Applications > Internet > Chromim Web Browser.

Following a screeshot of Chromium running on my Fedora 13.

Create Virtual Directory with Apache HTTP Server in Fedora 13

If you want to have a “www” folder in your home directory and not to use the default: /var/www, you need to use a Virtual Directory within the Apache HTTP Server

Virtual Directories use a module called “mod_alias” wich redirects request to folders outside the server root.

Lets create a virtual directory that will be located in: /home/user/www and will be accessed via: http://url/user

1.- Edit the configuration file (as root)

$ vi /etc/httpd/conf/httpd.conf

Look for the section “Aliases” we’ll write the following lines:

Alias /user “/home/user/www/”

<Directory "/home/user/www">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

Save and close the file.

2.- Restart the service with:

(as root)
$ /etc/init.d/httpd restart

3.- Create the folder “www” in: /home/user and a file to test.

$ mkdir /home/user/www
$ cd ~/www
$ vi index.html

Now we should be able to access the fies of the folder: “/home/user/www” via http://url/user&#8221;

Installing JDK in Fedora 17 (Updated for the JDK 6.0 update 35 64 bits)

First thing we need to do is get the JDK installer
JDK Home @

Once we have the installer in our local repository (as root):

chmod a+x  jdk-6u35-linux-x64-rpm.bin

Let’s update our alternatives:

alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_35/jre/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_35/jre/bin/javaws 20000
alternatives --install /usr/lib64/mozilla/plugins/ /usr/java/jdk1.6.0_35/jre/lib/amd64/ 20000
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_35/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_35/bin/jar 20000

To confirm that our installation is successfull:

java -version

Should give us an ouptput like this:

#java -version
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)

That’s it. Enjoy.