Ubuntu as print server

Niki Kovacs contact at kikinovak.net
Sun Oct 16 21:56:39 BST 2005


Le dimanche 16 octobre 2005 à 21:45 +0200, Chosechu a écrit :
> Dear all:
> 
> The subject must have come up a hundred times I'm sure,
> but I cannot find anything useful on the Net about that
> topic. Simple question: how do I set up cups to be a LAN
> print server?

Two or three lines to add in /etc/cups/cupsd.conf on the server side,
one line to add in /etc/cups/client.conf on the client side, restart,
serve hot. Details see below.

> First I changed the "Listen" line to add some more, got
> some errors, then reverted back to something simpler:
> Port=631 and nothing else.
> Setting "Allow from All, Deny from None" did not seem to do
> the job either. I get no complaints but it still does not
> work.

Here's what I modified to a stock cupsd.conf. My print server being at
192.168.1.1:

Port 631
#
#Listen 127.0.0.1:631

#BrowseAddress x.y.z.255
#BrowseAddress x.y.255.255
#BrowseAddress x.255.255.255
#BrowseAddress 255.255.255.255
#BrowseAddress @LOCAL
BrowseAddress 192.168.1.255

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.*
</Location>

<Location /admin>
#
# You definitely will want to limit access to the administration
functions.
# The default configuration requires a local connection from a user who
# is a member of the system group to do any admin tasks.  You can change
# the group name using the SystemGroup directive.
#

AuthType Basic
AuthClass System

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.*

#Encryption Required
</Location>

... and on the client side, /etc/cups/client.conf:

#ServerName myhost.domain.com
ServerName 192.168.1.1

Restart CUPS on server AND client side.

$ lpstat -t 
scheduler is running
system default destination: HL2030
device for HL2030: usb:/dev/usb/laserprinter
HL2030 accepting requests since Jan 01 00:00
printer HL2030 is idle.  enabled since Jan 01 00:00
kikinovak at ninthcircle.hell:~/Sites/spiptest/dist$


> 
> Finally I got some administrative-like interface inside a
> web browser, but strictly nothing to set up network stuff.
> There is a message mentioning the use of a GUI in
> Administration/Printing but this one does not have anything
> about printer sharing or network configuration.

Forget the GUIs. I'm a Slack veteran, so believe me: vi is your friend
for configuring your PC :oD (I l-o-v-e Ubuntu though... first non-Slack
distro I really dig)

HTH,

Niki Kovacs

PS: check out Carla Schroder's excellent online tutorial about the
subject (CUPS in a network)





More information about the ubuntu-users mailing list