Posted: Sat 24 Jun 2006, 19:12 Post subject:
HOWTO Automatically Start Applications at Boot
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.php?t=8670&sid=3134dddb68fcc800b42d37b4777d6b51
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 &
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum