Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-04-2005, 05:00 PM   #1
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Rep: Reputation: 15
Start at Boot - After X, before login.

I'm using slackware 10.2, with xdm, and fluxbox.

I want to start an program, (located in /bin) during boot, after the xserver starts, and before a user logs in.

However, the x server must be running. On boot the system loads lvl 4 (xdm).

I've tried putting the command '/bin/prog' in rc.local, rc.4 and /etc/X11/xdm/Xsession.

Does anyone know how to get this to work?


Old 11-04-2005, 06:44 PM   #2
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Possibly placing the command somewhere in /etc/X11/xdm/Xsession might do the trick? Oops, you already tried that! Possibly the location within Xsession makes a difference? Also, is the file you placed in /bin executable? (Been there done that many times. ) Lastly, just a comment, unless the file is part of the normal /bin, methinks the file should be stored in /usr/local/bin.

Last edited by Woodsman; 11-04-2005 at 06:54 PM.
Old 11-05-2005, 11:00 AM   #3
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
write a script with the name as you like. But check other scripts how to use start /stop mybe restart. Copy this script to /etc/init.d
but set the PATH of the instructions like /bin/ls ore a Pathsearch at the beginning of the script. Next step find out your initstate your system starts.
you will find it /etc/inittab
check the line initdefault
the number what you see there is the initstae the system is coming up. Normally it is 5
go now to
check for S?? Xseession or whre it is in!
then link your own script to the next higher number if is possible
like "ln /etc/init.d/myscipt /etc/init.d/rc5.d/S15myscript
The same you should do in reverse order with K0?myscript
S means start
K means Kill
I think this will work


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
auto start when login moonloader Slackware 7 08-14-2004 01:53 AM
[help]How to login and start mandrake 10 fallenangelseth Mandriva 7 07-26-2004 01:21 PM
start things on login moschi Linux - Newbie 6 03-27-2004 02:07 AM
How to login as ROOT at start satimis Debian 8 12-15-2003 05:34 AM
start an app upon next login bikergirl Linux - General 6 06-06-2003 02:37 PM > Forums > Linux Forums > Linux - Distributions > Slackware

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

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