Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Apr 2014, 21:02
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO Automatically Start Applications at Boot
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
rdchin

Joined: 24 Jun 2006
Posts: 9

PostPosted: 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 &

exec $CURRENTWM
###END###
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0397s ][ Queries: 11 (0.0064s) ][ GZIP on ]