CUPS/IPP-based_printserver
Contents |
About
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
- Server IP: 192.168.0.20
- Server Name: gentoo-ipp-server
Allow sharing from other systems on your network. For example, if your network is 192.168.0.0 you would add the following.
vim /etc/cups/cupsd.conf
| File: /etc/cups/cupsd.conf |
<Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.0.* </Location> |
IPP Clients
Install cups and make it listen to the server.
vim /etc/hosts
| File: /etc/hosts |
127.0.0.1 localhost.localdomain localhost 192.168.0.20 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:
http://<cups_server_address>:631/
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 127.0.0.1:631 |
These changes will allow access to the CUPS's server port from other computers.
See also
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should list their apartments, townhouses and units in Australia.
