LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2008, 11:23 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 622

Rep: Reputation: 42
starting software AFTER boot


Hi all
I'm trying to get a piece of software to start after boot and after X has started.
I did try to get it to run from a start up script, however it uses GLX so crashes as X has not started up correctly, basically even if X starts early the screen has not set up till the end of the boot process. So start up scripts are no use.

So basically I need to start the software after the system has set up, can anyone advise how to do this? Thanks in advance.
 
Old 02-04-2008, 11:27 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Most X environments have some sort of autostart feature. For example in KDE, if you put a script in ~/.kde/Autostart, KDE will run it. In Fluxbox, you would use the ~/.fluxbox/apps file.

So if you tell us what X environment you're running, we can probably be more specific.
 
Old 02-04-2008, 11:37 AM   #3
Lepakko
Member
 
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44

Rep: Reputation: 16
if you type 'ls /etc/rc2.d', you see that the script run in boot time after kdm/gdm is rc.local. You probably have the file /etc/rc.local in your system; if you edit it, you see a text saying it's the last script of them all to be run and you cann add your own things in it. Just make sure it's executable (has the 'x' bit set).

Edit: if you add your script there, you may want to end the command with an '&', so that the script is run on background and the system won't wait until it returns.

Last edited by Lepakko; 02-04-2008 at 12:30 PM.
 
Old 02-04-2008, 11:40 AM   #4
knobby67
Member
 
Registered: Mar 2006
Posts: 622

Original Poster
Rep: Reputation: 42
Hi I'm just running Xorg-core, it just boots to a white screen with a command promt black box in the top left corner. It's etch basic with xorg-core added.
I'm using this as I'm running it on an old arcade machine with emulators, I'm running my own front end which I need to call after x has started as it uses GLX so can't be in a startup script. Thanks
 
Old 02-05-2008, 07:55 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Hm. Have you tried messing with the ~/.xinitrc file?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I was thinking about starting a Open Source Software Security Organization HGeneAnthony General 1 11-20-2004 03:46 AM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
Question on installing software and starting software rootlinux Linux - Newbie 5 01-19-2002 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration