View previous topic :: View next topic |
Author |
Message |
aschueler Tux's lil' helper
Joined: 09 Apr 2004 Posts: 119
|
Posted: Sun Apr 18, 2004 3:43 pm Post subject: Starting a program at startup? |
|
|
I am trying to get firestarter to run when I boot instead of me having to long into KDE as root to load it up. I am not fixated on firestarter, it's just a simple firewall I know from Debian, so if there is an easier/better one for simple no-network firewalling, I will change.
I read the stuff on init scripts etc, and am more confused than I was before I did.
Is there an easy way to get a firewall running at boot time, no matter how I log in?
Thanks in advance! |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sun Apr 18, 2004 3:56 pm Post subject: |
|
|
hi
the way to add anything at boot up is like this
Code: | rc-update add <application> default |
u could also use "boot" instead of "default"
luck
Saurabh |
|
Back to top |
|
|
aschueler Tux's lil' helper
Joined: 09 Apr 2004 Posts: 119
|
Posted: Sun Apr 18, 2004 4:37 pm Post subject: |
|
|
Thank you for the reply. Unfortunately, I am a little confused. I get the following error:
Code: | rc-update add firestarter default
/sbin/rc-update: /etc/init.d/firestarter not found; aborting |
I really didn't understand the installing instructions with regard to init.d stuff, so I apologize if I overlooked something simple; do I do something like a symbolic link from firestarter to /etc/init.d? Thanks. |
|
Back to top |
|
|
pixie Guru
Joined: 29 Dec 2002 Posts: 305
|
Posted: Sun Apr 18, 2004 4:39 pm Post subject: |
|
|
If there is no script in /etc/init.d you can add the command to launch it in the file /etc/conf.d/local.start |
|
Back to top |
|
|
ReD-BaRoN Apprentice
Joined: 06 Feb 2004 Posts: 208
|
Posted: Sun Apr 18, 2004 4:43 pm Post subject: |
|
|
Is firestarter a cli based application, or it is actually a KDE gui thing?
If you can start it from the CLI, find the systax for the program and add it to /etc/conf.d/local.start
Thanks,
Brian |
|
Back to top |
|
|
aschueler Tux's lil' helper
Joined: 09 Apr 2004 Posts: 119
|
Posted: Sun Apr 18, 2004 4:54 pm Post subject: |
|
|
That didn't work either.
Let me rephrase the question:
How can I launch a firewall at startup? |
|
Back to top |
|
|
ReD-BaRoN Apprentice
Joined: 06 Feb 2004 Posts: 208
|
Posted: Sun Apr 18, 2004 5:10 pm Post subject: |
|
|
Can you find the command to run it from command line? Let's start there. Sounds like you run it normally from KDE, look at the properties and see if you can find it. |
|
Back to top |
|
|
aschueler Tux's lil' helper
Joined: 09 Apr 2004 Posts: 119
|
Posted: Sun Apr 18, 2004 5:20 pm Post subject: |
|
|
it's /usr/bin/firestarter.
Maybe it was a path problem when I put it in the first time...I just put in firestarter in local.start.
Will post back.... |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20093
|
Posted: Sun Apr 18, 2004 5:22 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
aschueler Tux's lil' helper
Joined: 09 Apr 2004 Posts: 119
|
Posted: Sun Apr 18, 2004 5:37 pm Post subject: |
|
|
Got it -- had to do /usr/bin/firestarter -s
Without the -s it was trying to bring up a GUI menu. It works, and I don't have to log in as root!
Thanks |
|
Back to top |
|
|
|