LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2005, 09:24 PM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
adding programs to startup


hey
i wanna know how to add programs to start up

i know ihave to edit the xinitrc.template file but i dunno what to put to add superkaramba..


any help please?

Thanks
 
Old 02-25-2005, 09:37 PM   #2
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
check out the man page for chkconfig

Code:
man chkconfig
 
Old 02-25-2005, 09:41 PM   #3
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok, so would i type
chkconfig -a superkaramba to add it to the startup for my user?
 
Old 02-25-2005, 09:59 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
You can add it to your ~/.xinitrc file in your home directory.
Example:
Code:
#!/bin/sh
superkaramba &
If you do not have one then just create it in your home directory. It will need to have what I have in the example. Also not the ' & ' symbol. It is needed so it is releaseed from that session. If you create it it will need to be executable also. You can change it by running the command ' chmod +x .xinitrc '. I also recomend that you point superkaramba to its true path. I don't know what it would be but another example like /usr/bin/xmms & .

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 02-25-2005, 10:01 PM   #5
tomasch
LQ Newbie
 
Registered: Feb 2005
Posts: 10

Rep: Reputation: 0
or

chkconfig servicename on

T
 
Old 02-25-2005, 10:24 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
To help you out chkconfig is used to change the start or stop value of a script in the /etc/rc.d/init.d. It also is used to change which runlevels the service will start in or stop in. If there is a script in /etc/rc.d/init.d for superkarambe then you can use the chkconfig command. If not one can do like example below

Examples:
chkconfig --level 345 dhcpd on When rebooted the dhcpd service will start in runlevels 3, 4, & 5.
chkconfig --level 345 dhcpd off Deactivates the service from running in runlevel 3, 4, & 5
chkconfig dhcpd stop. Stops the service now.
chkconfig dhcpd start Starts the service now.

Now one can create one by using the add option. But you will need to create a script first. I think this is correct but I have never done it this way myself. I am use to the old school manual way.
Example:
Create script in /etc/rc.d/init.d
Call it superkaramba
Simple Contents of script. One can do a lot more look over other scripts there for pointers.
Code:
#!/bin/sh
superkaramba
Make executable with chmod command.
Run ' chkconfig --add --level 345 superkaramba on ' Being it was created in the init.d directory one may not need the --add option.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 02-25-2005, 10:32 PM   #7
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
thanks guys!
 
Old 02-25-2005, 10:34 PM   #8
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
oh, and jsut to tell you guys what i did, was i made a link to ~/.kde/autostart to the program iwant

Ill keep this page for future reference.
 
Old 02-25-2005, 10:36 PM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
There is more than one way to make it work in Linux. I myself will make a note of that. You learn something new everyday.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding programs to startup dengoy Linux - Newbie 2 11-11-2005 07:06 PM
Adding to startup?? pertek Linux - General 2 02-01-2005 07:40 AM
adding programs Ammad Linux - General 1 01-07-2005 11:48 PM
Adding programs to startup TheTweaker Linux - Newbie 5 05-25-2004 02:47 AM
Adding Programs to Startup Atroxic Linux - Newbie 3 01-27-2002 07:18 PM


All times are GMT -5. The time now is 07:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration