Results 1 to 8 of 8
Hello friends,
i want to run a gui application(a server like thing which will run always) after the computer is started but with nobody logged in to it like a ...
- 06-14-2009 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 8
Any way to run gui applications without logging in
Hello friends,
i want to run a gui application(a server like thing which will run always) after the computer is started but with nobody logged in to it like a service. I tried many methods like editing /etc/rc.local file and put the complete path of the executable there. But only scripts and programs having non gui are working there. Gui programs are not working in it. I know that X server is not started at the time of execution of /etc/rc.local. Is there any way to run gui programs automatically after booting but with nobody logged in just like a service? Is there any script executed after X server has started so that i can edit it and put the name of the executable there?
- 06-14-2009 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
If it ran as a service it would be running as root!
You can configure it to run as a particular user but I don't think that'd meet the end you're looking for. You obviously don't want it to run as root, the usual thing to do is to create a user for this application and set that user to auto-login and the autorun that application. You can opt for a mininmal window manager to reduce resources.
- 06-15-2009 #3Just Joined!
- Join Date
- Aug 2008
- Posts
- 8
Run gui application just like a daemon
No.... i don't want to autologin and run that application. I just want to run it as root just like a service after booting. Since it is a gui application it can't be placed inside /etc/rc.local . I just want to run it after X server has started but with nobody logged in to it. I dont want to see its GUI, i just want to run it in the background just like a daemon so that nobody can see its gui.
Do you know the name of any scripts running after X server has started so that i can edit it and put the name of the executable there?
Is it possible to run a gui application internally in linux after X server has started but with nobody logged in to it.
Any help will be deeply appreciated.
- 06-19-2009 #4
well you don't want it to run as a daemon or in microsft language a service neither you want to log in. i think you can write it down as a script and put it down as a cron and time it if you start your machine at a particular time every day.
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.


- 07-04-2009 #5Just Joined!
- Join Date
- Aug 2008
- Posts
- 8
First of all sorry for not replying to rituraj.goswami. I hadn't checked for a long time.
You must have misunderstood my intension. I want to run a gui program as a service after booting just like all other nongui services. For example take apache service. It doesnt have a gui so it can be run before logged in as a service.Since my program has gui it cannot be do so. I dont want to see the gui. I just want to run it. So is there any possible solution in linux to run gui service programs without logging in. Thats all i needed. Thank you
- 07-04-2009 #6
I am not sure, but what you are saying sounds
similar to running a kiosk.
The idea there is booting into a single app, usually
a web browser.
Google
- 07-06-2009 #7
well i guess yu have to check out the commnad options of your file that you want to execute. i will be glad if you tell me what you want to run maybe the software's name.
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.


- 07-07-2009 #8Just Joined!
- Join Date
- Aug 2008
- Posts
- 8
well what i want to want to run is a qt4 application which i have created which will run as a server. But the problem is that since it is a gui application connection to xserver is needed. I tried many methods like placing it in initialization scripts. But they are not working since connection to xserver is needed for it to run.
Now changing code will be diificult to run it as a console application. Is there any specific options in qt to continue running without connecting to Xserver. So that its functionality willnot be affected and i can run it by placing it in initialisation scripts like "/etc/rc.d/rc.local".
Or is there any method in linux so that i can run it without logging in?


Reply With Quote