Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > Any way to run gui applications without logging in

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-14-2009   #1 (permalink)
Just Joined!
 
Join Date: Aug 2008
Posts: 8
Red face 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?
ancest is offline  


Reply With Quote
Old 06-14-2009   #2 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,038
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.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 06-15-2009   #3 (permalink)
Just Joined!
 
Join Date: Aug 2008
Posts: 8
Question 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.
ancest is offline   Reply With Quote
Old 06-19-2009   #4 (permalink)
Linux Newbie
 
rituraj.goswami's Avatar
 
Join Date: Aug 2008
Location: Guwahati
Posts: 111
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.
rituraj.goswami is offline   Reply With Quote
Old 07-04-2009   #5 (permalink)
Just 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
ancest is offline   Reply With Quote
Old 07-04-2009   #6 (permalink)
Linux Enthusiast
 
rcgreen's Avatar
 
Join Date: May 2006
Location: the hills
Posts: 714
Send a message via Yahoo to rcgreen
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
rcgreen is offline   Reply With Quote
Old 07-06-2009   #7 (permalink)
Linux Newbie
 
rituraj.goswami's Avatar
 
Join Date: Aug 2008
Location: Guwahati
Posts: 111
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.
rituraj.goswami is offline   Reply With Quote
Old 07-07-2009   #8 (permalink)
Just 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?
ancest is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:27 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2