Printing With Cups
Summary:Tips And Tricks III
- Network
- Small networks
- Printer clusters
- Redundant queues
- CUPS & LPD on one machine - CUPS on Linux Mandrake 7.1
Tips And Tricks III
Networked printing
Small networks In small networks, as they are very common at home or in a small office, there is only one machine, the server, which connects to the Internet, and each client uses this server as the gateway to connect. Often the printer is also connected to this machine. And because this machine has two Ethernet addresses, one for the Ethernet card connecting to the client(s) and one (usually dynamic) for the device connecting to the Internet, there are problems with the automatic broadcasting of printer information to the clients by CUPS. Here are step-by-step instructions to set up such a network so that both printer and Internet access work correctly. I assume that you have already set up Internet access on the server. Note: All names and IP addresses in this example can be replaced, but be careful that you do not choose any unsuitable IP address. The address for the server should start with "192.168." (local network) and it should not conflict with the IP address of the Internet connection ( at least one of the first three numbers of the IP should differ from the IP of the Internet access). First make sure that the server has a well-defined host name for the local network. For this, install server and clients as follows: On the server (the two steps can be done in any order):- Start 'linuxconf', choose "Networking" and then "Host name and IP network devices".
Click on the tab for the network interface of your local network. Fill in the "Primary name + domain" field with "server.localdomain". Do not keep the name "localhost" or "localhost.localdomain" here. Set the IP address to "192.168.0.1" - Set up "Internet Connection sharing" with the appropriate subprogram of '~DrakConf'. If you access the Internet via a second network card, choose the one for the local network.
Click on the tab for the network board and mark the "DHCP" field. Add an entry for your server name to '/etc/hosts'. For example add the line:
192.168.0.1 server.localdomain server
~ServerName server<br> ~BrowseAddress 192.168.0.255
service cups restart
On the command line you enter:
lpadmin -p <printer1> -c <class><br> lpadmin -p <printer2> -c <class><br> ...
~ImplicitClasses On
service cups restart
{printer}@{server}
{printer}
If you just want to have one of your CUPS printers available on a machine running only LPD, use the CUPS-LPD mini-daemon. To get LPD running you should at first turn off the automatic generation of an '/etc/printcap' file by CUPS: comment out the
Printcap /etc/printcap
service cups restart
urpmi lpr rhs-printfilters
chkconfig ––add lpd<br> service lpd start
lpr
lpq
lprm
lpc
lpr-lpd
lpq-lpd
lprm-lpd
lpc-lpd
CUPS on Linux Mandrake 7.1
If you still have a machine with Mandrake 7.1 and you want to use CUPS, you can install the CUPS packages of Linux Mandrake 7.2. Proceed like this: Stop LPD:/etc/rc.d/init.d/lpd stop
rpm -e ––nodeps lpr<br> rpm -e ––nodeps rhs-printfilters<br> ...
- cups
- cups-drivers
- ghostscript
- ghostscript-module-X
- ghostscript-module-SVGALIB
- ghostscript-utils
- xpp
- qtcups
- samba
- samba-common
- samba-client
rpm -Uvh ––nodeps cups-1.1.4*.rpm
cd /usr/bin<br> ln -s lpr-cups lpr<br> ln -s lpq-cups lpq<br> ln -s lprm-cups lprm<br> cd /usr/sbin<br> ln -s lpc-cups lpc
rpm -Uvh {package file name}chkconfig ––add cups<br> service cups start
Related Resources:
See Resources on article index Modified: Nov 24, 2000Author: Till Kamppeter Legal: This page is covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft.
Printing With Cups
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!
Mandriva.com
Store
Club

