Closed Thread Icon

Preserved Topic: Linux - Start program at boot time (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17476" title="Pages that link to Preserved Topic: Linux - Start program at boot time (Page 1 of 1)" rel="nofollow" >Preserved Topic: Linux - Start program at boot time <span class="small">(Page 1 of 1)</span>\

 
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 01-03-2004 17:10

I need a certain program to start up when Mandrake boots up. On windows this is really simple but in Linux I am at a loss.

so when Linux boots I need this program to start up too. One other thing, when I run the program via terminal, I have to SU into
the directory.

any help is appreciated

Thanks in advance!

Later,

C:\


~Binary is best~

ninmonkey
Nervous Wreck (II) Inmate

From:
Insane since: Nov 2003

posted posted 01-03-2004 18:17

If you only want it to run when you "startx" then you can edit your .xinitrc

code:
#my programs
xterm -bg black -fg gray &
gkrellm -w &
xmms -p &

#window manager
exec fluxbox

If you want it based on the runlevel, then you need to edit the scripts in /etc/rc.d ( http://doc.mandrakelinux.com/MandrakeLinux/91/en/Command-Line.html/sysv-levels.html )

[This message has been edited by ninmonkey (edited 01-03-2004).]

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 01-03-2004 19:09

yeah. /etc/rc.d (or /etc/init.d on debian systems) would probably be the place to look to start a programm automatically.

You'll probably have to either set the suid flag on the program (meaning it will always run as the owning user, no matter who runs it),
or look into sudo, which I believe is capable of doing this as well. (man sudo)
so long,

Tyberius Prime

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 01-05-2004 02:15

if I remember correctly, in KDE it is '/.kde/Autostart/' in your home directory...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

« BackwardsOnwards »

Show Forum Drop Down Menu