Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting a program at startup?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Sun Apr 18, 2004 3:43 pm    Post subject: Starting a program at startup? Reply with quote

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
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Sun Apr 18, 2004 3:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Sun Apr 18, 2004 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
pixie
Guru
Guru


Joined: 29 Dec 2002
Posts: 305

PostPosted: Sun Apr 18, 2004 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
ReD-BaRoN
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 208

PostPosted: Sun Apr 18, 2004 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Sun Apr 18, 2004 4:54 pm    Post subject: Reply with quote

That didn't work either.

Let me rephrase the question:

How can I launch a firewall at startup?
Back to top
View user's profile Send private message
ReD-BaRoN
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 208

PostPosted: Sun Apr 18, 2004 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Sun Apr 18, 2004 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20093

PostPosted: Sun Apr 18, 2004 5:22 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Sun Apr 18, 2004 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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