Gentoo Wiki ArchivesGentoo Wiki




There are a lot of guides out there that explain how to get Linux machines to serve Windows machines for printing via CUPS and SAMBA. This isn't one of them. This is for using CUPS without SAMBA and exclusively with Linux clients.

Actually, everything you need to know can probably be found right in the official Gentoo Printing Guide, and written much better, but since there are a few people like myself who always look on the wiki first, I'll cut out some of the fat and post it here.

Local Printing

Please see the official Gentoo Printing Guide, or, if you use GNOME primarily, use gnome-cups-manager to set up your local printer.

Printer Server

Allow sharing from other systems on your network. For example, if your network is you would add the following.

vim /etc/cups/cupsd.conf
File: /etc/cups/cupsd.conf
<Location />
Order Deny,Allow
Deny From All
Allow From
Allow From 192.168.0.*

IPP Clients

Install cups and make it listen to the server.

vim /etc/hosts
File: /etc/hosts       localhost.localdomain             localhost    gentoo-ipp-server.localdomain     gentoo-ipp-server
emerge cups && rc-update add cupsd default
vim /etc/cups/client.conf
File: /etc/cups/client.conf
ServerName gentoo-ipp-server

When you set up the CUPS server to be accessed from CUPS clients for printing the client will try to access the CUPS server at the port you specified or the default port of 631. A quick way to find out if the client can connect to the CUPS server. From the Shell:

telnet <cups_server_address> 631

From any web browser:


If you get telnet: Unable to connect to remote host: Connection refused or an Unable to Connect type message, it means the server has not opened outside connections to its CUPS port (631). In this case make sure that file /etc/cups/cupsd.conf on the CUPS server has the following line uncommented:

File: /etc/cups/cupsd.conf

Port 631

And also, make sure the line that looks like this is commented out:

File: /etc/cups/cupsd.conf

# Listen

These changes will allow access to the CUPS's server port from other computers.

See also

Retrieved from ""

Last modified: Sun, 24 Aug 2008 00:25:00 +1000 Hits: 29,379

Created by, Luxury Homes Australia
Real estate agents should list their apartments, townhouses and units in Australia.