LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problems with CUPS (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-cups-288673/)

paul_mat 02-10-2005 05:57 PM

problems with CUPS
 
hi there,

i'm having a few programs with CUPS there just small one and i'm sure there's an easy fix. i want to be able to access my cups web interface from another computer on my network but when i type in http://192.168.1.172:631 i can't get to it ... although when i'm on my fedora box i can type http://localhost:631 and i can access it ...

also how do you set a default printer via the CUPS web interface

Peacedog 02-10-2005 06:29 PM

This might answer your question. If not, get what you can from it, and post the results.

http://www.linux-magazine.com/issue/...k_Printing.pdf

good luck.

simeandrews 02-10-2005 06:29 PM

Go to http://localhost:631/ and click Do Administrative Tasks and enter your root information (i.e. root, root password), and under printers, click add printer. I didnt install my printer this way, so I can't help you any farther, Mandrake installed my printer for me (mandrake install is easier than windoze!).

perfect_circle 02-10-2005 06:45 PM

Quote:

i'm having a few programs with CUPS there just small one and i'm sure there's an easy fix. i want to be able to access my cups web interface from another computer on my network but when i type in http://192.168.1.172:631 i can't get to it ... although when i'm on my fedora box i can type http://localhost:631 and i can access it ...
192.168.1.631 looks like an internal IP to me, it's not routable from outside the LAN.
Are you behind a rooter?

paul_mat 02-10-2005 06:54 PM

yes i'm behind a router, but i want to access it from my LAN not an outside address

jschiwal 02-10-2005 07:04 PM

A) Is the apache service running on your computer at http: //192.168.1.172:631.
B) Is the firewall allowing this port.
C) Does cups.conf allow the access?
Quote:

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Being able to use the interface isn't as simple as logging in as root on some systems because cups runs as user 'lp'. I think that you need to be a member of the 'sys' group before you can use the administration features of the cups web interface. But if you have access using http://localhost:631 at the computer, then the access will be the same (at the 192.168.1.172 host that is ).

perfect_circle 02-10-2005 07:13 PM

Quote:

A) Is the apache service running on your computer at http: //192.168.1.172:631.
Are you sure you need apache for that. I think cups contains a http server for that.

I bet this is a B or C, but not A.

paul_mat 02-10-2005 07:35 PM

this is the cups.conf file found int he /etc/dbus-1/system.d/ directory




<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only root can send this message -->
<policy user="root">
<allow send="com.redhat.PrinterSpooler.QueueChanged"/>
</policy>

<!-- Allow any connection to receive the message -->
<policy context="default">
<allow receive="com.redhat.PrinterSpooler.QueueChanged"/>
</policy>
</busconfig>
~

perfect_circle 02-10-2005 07:51 PM

actually in My System it's cupsd.conf.
In slackware 10 it's under /etc/cups/cupsd.conf
and its looks like this:
Code:

# Possible values:
#
#    Always      - Always use encryption (SSL)
#    Never        - Never use encryption
#    Required    - Use TLS encryption upgrade
#    IfRequested  - Use encryption if the server requests it
#
# The default value is "IfRequested".
#

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

#<Location /classes>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

But I don't know. Fedora has the tendency to alter everything


All times are GMT -5. The time now is 10:13 PM.