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 Fri 22 Jun 2018, 00:00
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Howto Run commands at boot
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
code_m

Joined: 02 Jul 2008
Posts: 65

PostPosted: Tue 26 Aug 2008, 17:13    Post subject:  Howto Run commands at boot
Subject description: Use conky activate swap or mount devices
 

Very simple and useful. I use this to activate swap.

1. Download and install Conky system monitor
-- You can compile, but there are packages (pet) all over this forum

2. Link to the bin file in /root/Startup
-- This will start conky at every boot

3. Using a text editor open .conkyrc
-- under TEXT type the variable :
Code:
${pre_exec command}

-- replace "command" with swapon or mount and use the same arguments you would on the command line. remember that conky has an unknown relative directory, so you must type the full path.

4. That's it. reboot and your done.

Here's my line :
Code:
${pre_exec swapon /mnt/home/knoppix.swp}
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 12889
Location: Arizona USA

PostPosted: Wed 27 Aug 2008, 12:01    Post subject: Re: Howto Run commands at boot
Subject description: Use conky activate swap or mount devices
 

code_m wrote:

-- You can compile, but there are packages (.pet) all over this forum...

Could you give a link to at least one of them? Thanks. Smile
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Wed 27 Aug 2008, 12:05    Post subject:  

You could just put the command into /etc/rc.d/rc.local anything in here gets executed at boot before X starts.
_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
code_m

Joined: 02 Jul 2008
Posts: 65

PostPosted: Wed 27 Aug 2008, 19:25    Post subject:  

I figured there was a different way of doing it, but this is so easy. (I'm sure adding to that file is just as easy)

http://www.murga-linux.com/puppy/viewtopic.php?search_id=1518286370&t=30192

There's a link to a conky made for Puppy4 (several PETs... some work better, but ugly)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
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.0404s ][ Queries: 12 (0.0115s) ][ GZIP on ]