Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: How To: Add a VirtualBox to GDM Sessions

  1. #1
    Join Date
    Oct 2005
    Beans
    475

    How To: Add a VirtualBox to GDM Sessions

    This is a quick tutorial on how to add a VirtualBox session to GDMs Session menu. This can be useful for someone with a decently powered computer, looking for all the benefits of having a dual boot system without actually having to restart the computer to go into Windows/DOS/*nix. For the purposes of this tutorial I'm assuming you have already got a VirtualBox set up.

    Open a terminal and navigate to /usr/share/xsessions. Now you need to create a new file here. My virtualbox is Windows XP, so I named it windows.desktop. To do this:
    Code:
     sudo gedit windows.desktop
    Paste this into the file:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Windows XP Pro
    Comment=This session will run your VirtualBox
    Exec=VirtualBox -startvm "Windows XP Pro"
    Icon=
    Type=Application
    The stuff that is bold is what you need to change. Name is what the session is going to be called (GNOME, Failsafe GNOME, etc are all ready taken!). The most important part is the Exec command. This is the command that will be executed by GDM, you need to change the bold part to the Name of the VirtualBox you have installed (See pic).
    http://jeffantosh.googlepages.com/Sc...tualBoxOSE.png
    Reboot gdm (ctrl-alt-backspace) and log into VirtualBox via GDM. To make VirtualBox fullscreen press the right control button and f at the same time.
    Last edited by rossjman1; August 8th, 2008 at 09:27 PM.

  2. #2
    Join Date
    Nov 2006
    Location
    France
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To: Add a VirtualBox to GDM Sessions

    Hi,
    It doesn't work for me, I have a bad agument number error message...

    Any idee ?

    Thanks

  3. #3
    Join Date
    Oct 2005
    Beans
    475

    Re: How To: Add a VirtualBox to GDM Sessions

    It should still work, just click ok.

  4. #4
    Join Date
    May 2007
    Location
    San Francisco, California
    Beans
    5,857
    Distro
    Ubuntu Development Release

    Re: How To: Add a VirtualBox to GDM Sessions

    It worked for me, thanks for that.

  5. #5
    Join Date
    Nov 2006
    Location
    France
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To: Add a VirtualBox to GDM Sessions

    Unfortunatly no, he return to my default session "gnome"...

    But I try your tips with the XBMC and it works perfectly !....

  6. #6
    Join Date
    Oct 2005
    Beans
    475

    Re: How To: Add a VirtualBox to GDM Sessions

    If anyone knows how to get rid of those meaningless error messages, please share!

  7. #7
    Join Date
    Jan 2005
    Location
    United States
    Beans
    369
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How To: Add a VirtualBox to GDM Sessions

    Quote Originally Posted by zugol View Post
    But I try your tips with the XBMC and it works perfectly !....
    Okay, I'll bite...what exactly did you do to accomplish that?

    Also, does anyone know if it would be possible to do something like this with the Netbook Remix? I have an ASUS EeePC 901 and would like to be able to switch between interfaces, if that's possible!

    Another thought that just hit me--would it be possible to do this with other emulators? For example Basilisk II the MacOS Classic emulator?

    --bornagainpenguin
    Last edited by bornagainpenguin; August 30th, 2008 at 06:24 AM. Reason: added questions after more thought.

  8. #8
    Join Date
    Nov 2006
    Location
    France
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To: Add a VirtualBox to GDM Sessions

    1-add this repo : deb http://ppa.launchpad.net/team-xbmc-hardy/ubuntu hardy main
    2-install xbmc
    3-go to /usr/share/xsessions
    4-copy launcher gnome.destop as xbmc.desktop (as root)
    5-edit it (as root) :
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=XBMC
    Comment=Media Center XBMC
    Exec=xbmc
    Icon=
    Type=Application
    Now you can log on XBMC session.

    (I created a new user called XBMC with this launcher as default session.)

    But, doing this you cannot run anything except xbmc built-in apps (no firefox, no xmame...) Becaus it's not multitask... I dont't know if bender mameOx can be run like this.

    I hope this can help you.

    For more information go to
    HTML Code:
    http://xbmc.org/forum/forumdisplay.php?f=52

  9. #9
    Join Date
    Nov 2006
    Location
    France
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To: Add a VirtualBox to GDM Sessions

    1-add this repo : deb http://ppa.launchpad.net/team-xbmc-hardy/ubuntu hardy main
    2-install xbmc
    3-go to /usr/share/xsessions
    4-copy launcher gnome.destop as xbmc.desktop (as root)
    5-edit it (as root) :
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=XBMC
    Comment=Media Center XBMC
    Exec=xbmc
    Icon=
    Type=Application
    Now you can log on XBMC session.

    (I created a new user called XBMC with this launcher as default session.)

    But, doing this you cannot run anything except xbmc built-in apps (no firefox, no xmame...) Becaus it's not multitask... I dont't know if bender mameOx can be run like this.

    I hope this can help you.

    For more information go to http://xbmc.org/forum/forumdisplay.php?f=52

  10. #10
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: How To: Add a VirtualBox to GDM Sessions

    Tried the OP's instructions under Xubuntu 8.04.1. Get the following error message:
    Code:
    X session: unsupported number of arguments
    (3); falling back to default session
    and am then returned to a normal session.

    FWIW, the command
    Code:
     VirtualBox -startvm Windows
    runs fine from a terminal window

    EDIT

    tried this under gnome-hardy too with same result
    Last edited by Jose Catre-Vandis; August 31st, 2008 at 02:48 PM.
    No longer participating......

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •