Installing virtualbox on Ubuntu | Konsultan IT dan jaringan Area Flores

Installing virtualbox on Ubuntu ( Sharing and USB Function )

Written on 12 January, 2009 – 9:33 am | by dedyisn | 4,364 views

Since 3 month ago, I tried using the virtualbox application in Ubuntu. The Installation process is easy. First time, the reason why I use virtualbox actually because I want my canoscan lide 25 to function properly. I already use some applications such as xsane in Ubuntu and kooka in Kooka but the result is still unsatisfactory (the scanner result is still not clear). I just write that I’ve done this week. I hope it can helped around there that have problem same with me . Sometime i forget this step, so i hope this can help me too, when i have problem like this again. Ok Here we go :
in terminal mode :

nano /etc/apt/sources.list

Add to this line :

deb http://download.virtualbox.org/virtualbox/debian hardy non-free deb http://download.virtualbox.org/virtualbox/debian hardy non-free

If you using intrepid, just change the word hardy to intrepid.
Then save the sources list ( CTRL+O )
Add the GPG key:

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add - wget-q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc-O-| sudo apt-key add –

This is The Step ( Be Careful ) :

  1. Package virtualbox installation

    sudo apt-get install virtualbox-2.0 sudo apt-get install virtualbox-2.0

  2. After that, the command will download virtualbox2-0 package and install it on your PC . When trying to run virtualbox, I encountered an error that essentially require me to install the support package are:

    virtualbox-ose-modules-2.6.24-21-generic

    There is also another error that I essentially have to enter my username in the group vbox. Just go to the System Menu - Administration - Users & Groups. In the manage Groups, i choose vboxuser and I give a check to the username that I use. I’m not able to edit, make sure to unlock editing( root capability ).

  3. Screen Vbox

  4. After modules genericnya installed, I try to run virtualbox again,and … … … … yup successful. For initial configuration, I create a guest virtualbox to Windows XP (Windows XP is in Ubuntu).
  5. On the next section, I set the installation of Windows XP from image file (I want to try Windows Dark Edition that i have download). So for CD / DVD Drive setting, I choose the third option, namely ISO file. I just point it to the direction where i keep the iso.
  6. For Audio, I set to Host Audionya ALSA Audio Driver and Controllernya to ICH AC97. For other seeting, I leave the other empty first ( because on that time i don’t know what to do)
  7. After that, I start a new guest OS for me. Begin the process of booting up the installation of XP as usual. Nothing different. First time, when i have been installed the XP OS as a guest, my mouse no longer working. it stuck in Guest OS (like in a prison :D). Why ?
  8. So I am asking uncle google, and In fact it’s because there is no sharing the mouse between the Host (Ubuntu) and Guest (Windows).In the meantime, I can get out of this problem, I just pressing CTRL key (meaning the CTRL key on the right side of the keyboard - On linux this button is called the host key). Finally, my mouse cursor free from the prison. :-p.
  9. For mouse sharing between Host and Guest,we must installation virtualbox guest addition. At the time of installation Virtualbox, this package should have been included. we just choose to Install GuestAddition, As the picture :
  10. Screen Vbox
    If not, mount VBoxGuestAdditions.iso manually. . The file is located in the usr /share/virtualbox/VBoxGuestAdditions.iso. as the picture:
    Screen Vbox
    Screen Vbox

  11. If you have successfully mounted vBoxGuestAddition, live next steps in the installation Guest Addition. After the installation is finished, I reboot guest OS and … … … … … … … … .. Yup mouse can already sharing between ubuntu and windows . for sharing folder between host and guest, select the menu Device - Shared Folder. And then I just add 1 directory that I want to share.
  12. By using the command prompt on the guest OS (Windows), type:

    net use x:\\vboxsvr\abc

    x means a virtual drive that will be made to the shared folder. abc whereas here is the name of the directory that i shared, I use the command:

    net use F:\\vboxsvr\Documents

  13. This is the example, that i use as Virtual drive and Documents as the directory that i share.
    If You still have problem on sharing , just open MyNetworkPlaces ->VirtualboxSharingFolder
    It will show you the shared folder

    Next is Dangerous file, Be Careful. backup is Important

  14. Installing USB Scanner
    Edit mountdevsubfs.sh file :
    sudo gedit /etc/init.d/mountdevsubfs.sh
    You will see a code such as:

    # Magic to make /proc/bus/usb work #
    #
    #mkdir -p /dev/bus/usb/.usbfs
    #domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
    #ln -s .usbfs/devices /dev/bus/usb/devices
    #mount –rbind /dev/bus/usb /proc/bus/usb

    Uncheck # on the 4 last line look like so:
    #
    # Magic to make /proc/bus/usb work
    #
    mkdir -p /dev/bus/usb/.usbfs mkdir-p / dev / bus / usb / .usbfs
    domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
    ln -s .usbfs/devices /dev/bus/usb/devices
    mount –rbind /dev/bus/usb /proc/bus/usb

  15. See id vboxusers with the user group by use the terminal:

    grep vbox /etc/group
    vboxusers:x:127:dedyisn
    Edit fstab to change the value of group id:

    sudo gedit /etc/fstab

    add a line under last line then save and exit:

    ## usbfs is the USB group in fstab file:
    none /proc/bus/usb usbfs devgid=127,devmode=664 0 0

  16. Then edit the file 40-permissions.rules

    gksu gedit /etc/udev/rules.d/40-permissions.rules

    Change
    # USB devices (usbfs replacement)
    SUBSYSTEM==”usb_device”, MODE=”0664? Subsystem == “usb_device”, MODE = “0664″
    become …

    # USB devices (usbfs replacement)
    SUBSYSTEM==”usb_device”, MODE=”0666? Subsystem == “usb_device”, MODE = “0666″

After that , just reboot the PC or laptop … … … … my USB Scanner automatically detected,I have test the USB function like Scanner, printer, USB to Serial and it work smoothly.

Sorry for my bad english cause i’m still learning.
For indonesian version see : http://www.dedyisn.net/2008/08/virtualbox-on-ubuntu-canoscan-dan-sharing-folder-sukses/

Share and Enjoy:
  • del.icio.us
  • Technorati
  • Digg
  • Facebook
  • Google Bookmarks
  • MySpace
  • YahooMyWeb

Related Posts

  1. 2 Responses to “Installing virtualbox on Ubuntu ( Sharing and USB Function )”

  2. DeddyNo Gravatar (9 comments.) on Jan 14, 2009

    Pengen tapi pusing, mantap DedComment posted using Mozilla Firefox Mozilla Firefox 2.0.0.20 on Windows Windows Vista

    Reply

  3. RyanNo Gravatar on Oct 20, 2009

    Hello Dedy, i would like to ask you if you can tell me how to install modem Haier D1200P in ubuntu 9.04 and 9.10, I having no luck thank you :puyeng:Comment posted using Mozilla Firefox Mozilla Firefox 3.0.10 on Windows Windows Vista

    Reply

Post a Comment

:hihi: :hiks: :melet: :nangis: :ngakak: :puyeng: :sip: more »

CommentLuv Enabled

About Me

Here I'll share my knowledge, discovery and experience related to my hobby and work. Most articles on this site are related to tips , my practice result and offcourse about me too. If you want a review for your website or product, contact me via YM or email. For Consultant service in flores "Maumere, Larantuka, Ende, Ruteng, and Bajawa ", just contact me @ email : dedyisn@gmail.com More

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:

Please Enter your email address:

I'm Member of :
Custom Search