How to load programs automatically at startup?

Using applications, configuring, problems
Post Reply
Message
Author
tommyhill
Posts: 29
Joined: Fri 16 Jun 2006, 01:13

How to load programs automatically at startup?

#1 Post by tommyhill »

There are a few applications I would like to start automatically when the computer boots into linux... is there a configuration file that can be modified to load programs at startup ? and what exactly do I do ?

Monkey server is one of the programs I would like to see loaded automatically...

/usr/local/apps/Monkey

Tommy
Last edited by tommyhill on Thu 13 Jul 2006, 21:21, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

add it with a texteditor to
/etc/rc.d/rc.local

Important:
add a "&" in the end, to run it in background, or it will block your bootprocess.
Like

/usr/local/apps/Monkey &

Mark

tommyhill
Posts: 29
Joined: Fri 16 Jun 2006, 01:13

#3 Post by tommyhill »

Here I am again one year later... I just downloaded the latest version of Puppy linux and would like to setup "Monkey" and "PureFTP" to start automatically...

/root/my-roxapps/Monkey

( not sure where PureFTP is located )

The scripts that are used to provide a GUI interface for Monkey and PureFTP prevent the program from starting automatically... Is there a way around these scripts to automatically start the programs without manually selecting "start" "stop" and "Kill" I would like to start these programs automatically when Puppy when Puppy loads into memory...

Any help will be much appreciated...

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#4 Post by muggins »

i think the idea is to run commandline programs, by adding the appropriate line to /etc/rc.d/rc.local, but to use /root/.xinitrc for graphical apps. where you would start the program in the background by adding the appropriate command before the line that starts the window manager. e.g.

Code: Select all

exec your-command-here &
#exec $CURRENTWM

tommyhill
Posts: 29
Joined: Fri 16 Jun 2006, 01:13

#5 Post by tommyhill »

Thanks muggins...

There are 2 programs I would like to autostart and 2 applications I would like to stop from loading...

#1 I would like to autostart a small web server and ftp server... "monkey" and "pureFTP" These are both great commandline programs but I am not sure how to configure the pup version of these programs... They now have interfaces that ask questions before the program is loaded...

#2 I would also like to turn off the "Do Not Save to File" ( when shutting down puppy ) along with the Dillo welcome, woof, woof screen...

I don't know where the configuration information is stored... I checked a few files and could not find them...

Tommy

User avatar
bobwrit
Posts: 283
Joined: Mon 12 Mar 2007, 23:33
Contact:

#6 Post by bobwrit »

tommyhill wrote:#2 I would also like to turn off the Dillo welcome, woof, woof screen...
Same here(in a new version).
I need help with my forum. [b][u]LINK:[/u][/b][url]http://www.programers.co.nr/[/url]
[url]http://www.freewebs.com/programm/iframe.html[/url] is my gateway page...

User avatar
aliG
Posts: 76
Joined: Sun 15 Jul 2007, 09:52
Location: Glasgow, Scotland

Another Way

#7 Post by aliG »

Tommy - I think the answers above give you two ways of doing it:
/etc/rc.d/rc.local and .xinitrc

However there is a third way - install a small autostart utility, see:

http://murga-linux.com/puppy/viewtopic. ... 872&t=6084

I struggled for ageas to get VNCserver to start in my .xinitrc - it would start but then JWM would die and leave me a grey window. The trick above is probably not very eligant but it does work for me.

Alison

PS I would like to do away with the woof-woof too is anyone knows how...

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#8 Post by HairyWill »

The barks are only made when you boot into ram, if you boot using a pup_save they will not happen.

In puppy 2.16 using xorg /usr/sbin/delayedrun line 50 is the culprit
wavplay /usr/share/audio/2barks.wav &
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

andrei
Posts: 80
Joined: Wed 31 May 2006, 23:56

#9 Post by andrei »

Starting with 2.17 (or 2.16 maybe, I don't remember), if you create a folder /root/Startup, then every executable in this folder will be executed at the time of startup (after X is started)

Post Reply