BoiseUbuntu

Started by students at Boise State

If you regularly run a couple of OS from your VirtualBox and want to login to those OS directly from GDM session, here is a quick way to do it. For this to work you should have already set up your VirtualBox. Here we won’t be talking about how to setup VirtualBox but only how to login to a virtual OS from GDM session.

1. Create a bash script with the following contents
#!/bin/bash
VirtualBox -startvm NameOfYourVirtualOS


Replace NameOfYourVirtualOS with the name that you have given to your virtual OS in VirtualBox.

2. Name it something like windowsXPGDM (if you want to run Windows XP), make it executable, and then copy it to /usr/bin.

$ chmod 755 windowsXPGDM
$ sudo cp windowsXPGDM /usr/bin


3. Go to /usr/share/xsessions and create a new file with the following contents:

[Desktop Entry]
Encoding=UTF-8
Name=WindowsXP
Comment=My Virtual WindowsXP
Exec=/usr/bin/windowsXPGDM
Icon=
Type=Application

4. Save it with a name something like windowsXP.desktop.

5. Log out and you will see a new entry WindowsXP in your GDM session. You can now directly open VirtualBox session without even logging in to Gnome.


I've tested this only in my Ubuntu machine, but should work pretty well for other distros too.

Share 

2 Comments

Roger Goerrich Comment by Roger Goerrich on November 1, 2008 at 9:40am
We'll have to get together sometime so you can show me how to do this... I tried to do it and it didn't work.... That would be awesome to do though!
Roger Goerrich Comment by Roger Goerrich on November 1, 2008 at 9:43am
When I go to do step #2 I get the following error: chmod: cannot access `WindowsVistaGDM': No such file or directory.

Add a Comment

You need to be a member of BoiseUbuntu to add comments!

Join this social network

About

Trent Cutler Trent Cutler created this social network on Ning.

Create your own social network!

© 2009   Created by Trent Cutler on Ning.   Create Your Own Social Network

Badges  |  Report an Issue  |  Privacy  |  Terms of Service