LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Running cupsd on startup (https://www.linuxquestions.org/questions/slackware-14/running-cupsd-on-startup-405148/)

jrdioko 01-18-2006 07:47 PM

Running cupsd on startup
 
After upgrading to Slack 10.2, it seems cupsd is no longer started for me on boot. Where is the "correct place" to put this? I can't find it in /etc/rc.d. Also, is there a way to allow it to print (from the single computer you're using it on), but without it opening up a port with ipp listening for outside connections?

Poetics 01-18-2006 07:54 PM

You can either put it in /etc/rc.d (make sure it's executable), or you can put a link to it in rc.local

As to your second question ... I have no idea :)

jrdioko 01-18-2006 08:15 PM

Got it, thanks. I would like to know about that port though if anyone has ideas. It doesn't seem like I should have to open up to the outside world just to send files to my printer.

gilead 01-18-2006 08:24 PM

There are some settings in /etc/cups/cupsd.conf that might do what you want. Have a look at `man cupsd.conf` for Browsing and in the conf file itself for BrowseAllow and BrowseDeny

kodon 01-18-2006 08:24 PM

you can check /etc/cups/cupsd.conf
for config options

iirc, it denies all but localhost by default

Woodsman 01-18-2006 11:30 PM

Quote:

Got it, thanks. I would like to know about that port though if anyone has ideas. It doesn't seem like I should have to open up to the outside world just to send files to my printer.
With root privileges, with a text editor open /etc/cups/cupsd.conf. Search for the following:

# Listen to (Port/Listen)

Comment out all line in that section by adding a hash mark (#) at the beginning of the line. Then add thee following in that same section:

Listen 127.0.0.1:631

This command will limit cups to listening only on port 631 of the box the printer is attached.

To make these changes effective immediately, as root type:

/etc/rc.d/rc.cups restart

if the rc.cups script is not executable type:

sh /etc/rc.d/rc.cups restart

Before making the changes effective, from the command line type:

nmap -v localhost

Restart the cups daemon and then run nmap again. You should see a difference.


All times are GMT -5. The time now is 11:33 AM.