nixCraft Poll

Topics

Linux/UNIX: sharing a CUPS printer queue

Posted by Vivek Gite [Last updated: June 23, 2006]

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:

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:

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. H M Joshi Says:

    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.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

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

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.