Linux/UNIX: sharing a CUPS printer queue

by nixcraft · 2 comments

Common Unix Printing System (CUPS) is a modular computer printing system for Linux and UNIX like oses.

It allows Linux computer to act as a printer server. As a server it accepts printing requests from all client computer and send them to actual printer. It does printing accounting and other important stuff.

CUPS admin tools

CUPS comes with following admin tools:

  • GUI admin tools (gnome-cups-manager or KDEPrint or redhat-config-printer)
  • Text based GUI admin tools (redhat-config-printer-tui)
  • Web based admin tool (port 631 so http://server-ip:631/ will open CUPS web-admin)
  • And command line editing tools (lpadmin)

You can use above tools to share or setup a printer. The default configuration file is /etc/cups/cupsd.conf. You can edit this file to allow network access:

# vi /etc/cups/cupsd.conf

Modified text:

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

CUPS will accept connection from localhost and network 192.168.1.0/24. Just restart the service and your printer queue is ready to accept connections from clients:

# /etc/init.d/cups restart

Open Iptables 631 port

Make sure you open TCP/UDP Internet Printing Protocol (IPP) 631 on CPUS server system.

See also:

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 2 comments… read them below or add one }

1 H M Joshi 09.12.06 at 11:42 am

I am using a linux terminal server to connect thin clients to SUN Solaris machine. I want some one to guide me how do i configure local printer on a thin client so that a report generated in SUN machine can be sent to that printer.

2 Sagar Mhatre 10.01.09 at 2:48 am

Please can you help me for windows printing ?

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: