LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Auto running an application on start up (https://www.linuxquestions.org/questions/linux-newbie-8/auto-running-an-application-on-start-up-766211/)

u03pje 11-02-2009 07:22 AM

Auto running an application on start up
 
Hi,

Can you run an application automatically when you load linux? In this case it would be VMPlayer?

repo 11-02-2009 07:29 AM

Since vmplayer needs X, you can start vmplayer automatically when the windowmanager starts.
How to do this depends on the widowmanager you are uing.

u03pje 11-02-2009 08:38 AM

Hi Repo,

Using the Metacity Window Manager. Are you able to point me in the right direction to be able to do this?

Cheers

AngTheo789 11-02-2009 10:27 AM

You can start an application at boot time, this is probably not what you want when using vmplayer. What you want, I assume, is to start an application when a user logs into an account. For that you need to add to .bashrc or .bash_profile the same calling sequence of vmplayer as you would do when starting it on a shell. It is assumed that user accounts launch directly from a GUI login, or that X-Windows is started first.

u03pje 11-02-2009 11:08 AM

Hi AngTheo789,

What I would really like to do is load VM Player without user having to use the GUI log in. I realise X-Windows has to be running for this to work as well.

The reason I would like this is because the user will then log onto a virtual windows (xp) session. Authenication on the linux isn't necessary therefore.

Trying to give the illusion of Windows XP running on the machine, when in fact it's Linux using VMWare running a virtual Windows session.

Does this make sense?


All times are GMT -5. The time now is 11:38 AM.