Results 1 to 8 of 8

Thread: Autostarting a program on a second monitor

  1. #1
    Join Date
    Nov 2008
    Beans
    6

    Autostarting a program on a second monitor

    I have two monitors and they are set up as separate X Screens in the nVidia X server settings.

    On my second monitor I like to run a full screen vmware with windows.

    So my question is, how do I get vmware to autostart (at login) on my second monitor (Screen 1). I have the command I would like to run (VBoxManage startvm Windows). I just need to know who to tell ubuntu to run that command on start up, and on my second monitor.

    Also is there a VMware switch to tell it to automatically start in fullscreen?

    Thank you

  2. #2
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Autostarting a program on a second monitor

    you need to create a shell script, first set the display

    export DISPLAY=:0.1
    <command to run vmware>
    go to system-->Preference-->Sessions to add the script to startup at logon

    i am not sure but its -x for fullscreen in vmware

    also have a look at
    http://www.ubuntugeek.com/how-to-set...u-desktop.html

    enjoy

  3. #3
    Join Date
    Nov 2008
    Beans
    6

    Re: Autostarting a program on a second monitor

    I'll try that.

    And I don't know why I said VMware, I am using Virtual Box XD
    I have no idea why I constantly said VMware instead of Virtual Box lol

  4. #4
    Join Date
    Nov 2008
    Beans
    6

    Re: Autostarting a program on a second monitor

    Thank you that worked (once I figured out how to get my script to run )

    Now if it just started fullscreen it would be perfect

    I should go read some forum rules, but what are the rules related to double posting?

  5. #5
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Autostarting a program on a second monitor

    try this
    Code:
    VBoxSDL -vm "Windows XP" -fullscreen


    Quote Originally Posted by Kup0man View Post
    Thank you that worked (once I figured out how to get my script to run )

    Now if it just started fullscreen it would be perfect

    I should go read some forum rules, but what are the rules related to double posting?

  6. #6
    Join Date
    Nov 2008
    Beans
    6

    Re: Autostarting a program on a second monitor

    The -fullscreen switch doesn't quite work like I wanted. It basically maximizes the window, whereas what I want is the complete cover the entire screen fullscreen (the one you get by pressing <hostkey>+F).

    Is there a way I can tell the script to just press ctrl + F?

    Also how do I put in a wait in the script? Is it sleep?

  7. #7
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Autostarting a program on a second monitor

    yes its sleep 10 for 10 secs.

    there should be some way for complete fullscreen, lets google it, if you find it first let me know

    Quote Originally Posted by Kup0man View Post
    The -fullscreen switch doesn't quite work like I wanted. It basically maximizes the window, whereas what I want is the complete cover the entire screen fullscreen (the one you get by pressing <hostkey>+F).

    Is there a way I can tell the script to just press ctrl + F?

    Also how do I put in a wait in the script? Is it sleep?

  8. #8
    Join Date
    Nov 2008
    Beans
    6

    Re: Autostarting a program on a second monitor

    There is a command to send keypresses to the guestOS

    Code:
    VBoxManage controlvm VMname keyboardputscancode
    Unfortunately, this appears to send commands straight to the guestOS, and ignores the host key. But it is an interesting feature.

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
  •