HOWTO Automatically Start Applications at Boot

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
rdchin
Posts: 9
Joined: Sat 24 Jun 2006, 22:47

HOWTO Automatically Start Applications at Boot

#1 Post by rdchin »

How to get Torsmo (system monitor) and wireless configuration (ndiswrapper, wag) to automatically start at boot.

Command Line Application:
The application "ndiswrapper" is started or run by clicking on the console icon and typing the command after the ">" prompt.

Command Line Script:
In the second file listing below, assume that the path to script "startme" is /usr/local/share/myscript.
See also this posting: http://www.murga.org/~puppy/viewtopic.p ... b4777d6b51

GUI (Graphical User Inteface X-Windows) Application:
The application "Torsmo" is installed using DotPup and is started by clicking on its icon in folder ~/my-roxapps.

GUI and Command Line Application:
The application "wag" can either be started or run by clicking on the console icon and typing the command after the ">" prompt or by using the Wireless Wizard in the X-windows GUI.

1. To start a command line application:
Edit /etc/rc.d/rc.local and add at the end of the file rc.local "modprobe ndiswrapper" and any other command line interface commands you want started before X-windows is started up.

Here's the file listing:
#this file called from rc.local0
#you can edit this file
#When firewall is installed, will append lines to this file...
# to automatically set the time on boot, un-comment the next 2 lines
#rdate -s time.nist.gov
#hwclock --systohc --localtime
#
# to automatically adjust the time on boot, un-comment the next 2 lines
#hwclock -a
#hwclock --hctosys --localtime

#added by rdc 2006-06-22
#Automatically start more programs below:
modprobe ndiswrapper

2. To start a GUI application:
Edit ~/.xinitrc and add the lines below before the line exec $CURRENTWM at the end of the file:
rox /root/my-roxapps/Torsmo
rox /usr/sbin/wag

3. To start a script, put the full path and name of the script at the end of the file rc.local followed with a space and then an ampersand "&".

Code Listing of the last few lines of the file:
#v2.0.0
/usr/sbin/delayedrun &

#v2.01 hide cursor when not moving... (setup in /usr/sbin/input-wizard)
if [ -f /etc/mousehide ];then
IDLETIME="`cat /etc/mousehide | cut -f 1 -d ','`"
fi

#added by rdc 2006-06-22
#Automatically start more programs below:
rox /root/my-roxapps/Torsmo
rox /usr/sbin/wag
/usr/local/share/myscript/startme &

exec $CURRENTWM
###END###

Post Reply