[mdlug] [Fwd: Re: windows linux network and printer]
Aaron Kulkis
akulkis00 at gmail.com
Tue May 5 14:06:04 EDT 2009
This bounced the first time
-------- Original Message --------
Subject: Re: [mdlug] windows linux network and printer
Date: Thu, 30 Apr 2009 11:27:46 -0400
From: Aaron Kulkis <akulkis00 at gmail.com>
To: MDLUG's Main discussion list <mdlug at mdlug.org>
References: <Pine.LNX.4.44.0904300923500.13086-100000 at home.nuge.com>
Jay Nugent wrote:
> Greetings,
>
> On Thu, 30 Apr 2009, Aaron Kulkis wrote:
>
>> Ken Spress wrote:
>>
>>> CUPS printer configuration and management is handled by the Printer Admin
>>> utility launched from the Gnome menu - System -> Administration -> Printing.
>> Or, more generally from a web browser with:
>> http://localhost:631/
>>
>> or from another machine:
>> http://host.name.here:631/
>
> So what do you do to configure CUPS via a browser from workstation on
> the same LAN when the server you point the browser to only returns a
> "403 Forbidden" message? :(
>
> I have cups on a headless server (CentOS) that has NO GUI. It's a
> "server" afterall... So from my workstation, when pointing my browser to
> http://server1.nuge.com:631 all I ever get is a 403 Forbidden.
Strange.
1.
workstation:> ssh server1.nuge.com
Password:
nuge:> lynx localhost:631
2. It might be here in this section of /etc/cups/cupsd.conf:
########
######## Browsing Options
########
#
# Browsing: whether or not to broadcast and/or listen for CUPS printer
# information on the network. Enabled by default.
#
#Browsing On
#
# BrowseProtocols: which protocols to use for browsing. Can be
# any of the following separated by whitespace and/or commas:
#
# all - Use all supported protocols.
# cups - Use the CUPS browse protocol.
# slp - Use the SLPv2 protocol.
#
# The default is "cups".
#
# NOTE: If you choose to use SLPv2, it is *strongly* recommended that
# you have at least one SLP Directory Agent (DA) on your
# network. Otherwise, browse updates can take several seconds,
# during which the scheduler will not respond to client
# requests.
#
#BrowseProtocols cups
#
# BrowseAddress: specifies a broadcast address to be used. By
# default browsing information is not sent!
#
# Note: HP-UX does not properly handle broadcast unless you have a
# Class A, B, C, or D netmask (i.e. no CIDR support).
#
# Note: Using the "global" broadcast address (255.255.255.255) will
# activate a Linux demand-dial link with the default configuration.
# If you have a LAN as well as the dial-up link, use the LAN's
# broadcast address.
#
# The @LOCAL address broadcasts to all non point-to-point interfaces.
# For example, if you have a LAN and a dial-up link, @LOCAL would
# send printer updates to the LAN but not to the dial-up link.
# Similarly, the @IF(name) address sends to the named network
# interface, e.g. @IF(eth0) under Linux. Interfaces are refreshed
# automatically (no more than once every 60 seconds), so they can
# be used on dynamically-configured interfaces, e.g. PPP, 802.11, etc.
#
#BrowseAddress x.y.z.255
#BrowseAddress x.y.255.255
#BrowseAddress x.255.255.255
#BrowseAddress 255.255.255.255
#BrowseAddress @LOCAL
#BrowseAddress @IF(name)
#
# BrowseShortNames: whether or not to use "short" names for remote printers
# when possible (e.g. "printer" instead of "printer at host".) Enabled by
# default.
#
#BrowseShortNames Yes
#
# BrowseAllow: specifies an address mask to allow for incoming browser
# packets. The default is to allow packets from all addresses.
#
# BrowseDeny: specifies an address mask to deny for incoming browser
# packets. The default is to deny packets from no addresses.
#
# Both "BrowseAllow" and "BrowseDeny" accept the following notations for
# addresses:
#
# All
# None
# *.domain.com
# .domain.com
# host.domain.com
# nnn.*
# nnn.nnn.*
# nnn.nnn.nnn.*
# nnn.nnn.nnn.nnn
# nnn.nnn.nnn.nnn/mm
# nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
# @LOCAL
# @IF(name)
#
# The hostname/domainname restrictions only work if you have turned hostname
# lookups on!
#
#BrowseAllow address
#BrowseDeny address
BrowseAllow @LOCAL
BrowseDeny All
#
# BrowseInterval: the time between browsing updates in seconds. Default
# is 30 seconds.
#
# Note that browsing information is sent whenever a printer's state changes
# as well, so this represents the maximum time between updates.
#
# Set this to 0 to disable outgoing broadcasts so your local printers are
# not advertised but you can still see printers on other hosts.
#
#BrowseInterval 30
#
# BrowseOrder: specifies the order of BrowseAllow/BrowseDeny comparisons.
#
#BrowseOrder allow,deny
#BrowseOrder deny,allow
#
# BrowsePoll: poll the named server(s) for printers
#
#BrowsePoll address:port
#
# BrowsePort: the port used for UDP broadcasts. By default this is
# the IPP port; if you change this you need to do it on all servers.
# Only one BrowsePort is recognized.
#
#BrowsePort 631
#
# BrowseRelay: relay browser packets from one address/network to another.
#
#BrowseRelay source-address destination-address
#BrowseRelay @IF(src) @IF(dst)
#
# BrowseTimeout: the timeout for network printers - if we don't
# get an update within this time the printer will be removed
# from the printer list. This number definitely should not be
# less the BrowseInterval value for obvious reasons. Defaults
# to 300 seconds.
#
#BrowseTimeout 300
>
> What needs to be added or edited in /etc/cups/cupsd.conf to get this
> beast to at least let me *begin* to start configuring it????
>
did you try using using lynx?
>
> The only lines I have edited in cupsd.conf so far are:
>
> ####LogLevel info
> LogLevel debug2 <------- more verbose error logs
>
>
> Listen localhost:631
> ## jjn 090429 -- Added following line
> Listen 216.144.208.28:631 <-- web access went from not responding
> at all to now giving a 403 Forbidden
> message
>
>
> Thanks!
> --- Jay
>
> Train how you will Operate, and you will Operate how you were Trained.
> +------------------------------------------------------------------------+
> | Jay Nugent jjn at nuge.com (734)484-5105 (734)649-0850/Cell |
> | Nugent Telecommunications [www.nuge.com] |
> | Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
> | ISP Monitoring [www.ispmonitor.org] ISP & Modem Performance Monitoring |
> | Web-Pegasus [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
> +------------------------------------------------------------------------+
> 9:01am up 22 days, 8:14, 4 users, load average: 0.12, 0.06, 0.01
>
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
More information about the mdlug
mailing list