> From [EMAIL PROTECTED] Wed Oct  3 10:35:01 2001
> To: [EMAIL PROTECTED]
> From: David Chin <[EMAIL PROTECTED]>
> Subject: NIS with LPRng 3.7.4 on RedHat
> Date: Wed, 03 Oct 2001 13:34:57 -0400
>
>
> Hello,
>
> I wanted to share /etc/printcap with NIS on my (mostly) stock RedHat 7.1
> system, and found it couldn't because of RH's printconf-generated printcap 
> file.  I found a kluge-around.  The html source is
>
>   http://tenaya.physics.lsa.umich.edu/~dwchin/Linux/printers.html
>
> and the raw-text version is below.  Maybe you can include this in the
> HOWTO.
>
> Cheers,
> --Dave Chin
>   [EMAIL PROTECTED]
>
>
> --------Begin included file
>
>      Setting up printcap sharing with NIS
>
> Introduction
>
> We would like to distribute the /etc/printcap file via NIS for convenience. 
> The problem is that RedHat 7.1's standard printcap file is not formatted 
> properly for /usr/lib/yp/create_printcap to work. We detail the steps to
> work around this problem.
>
> Recipe
>
> We create the printcap file using /usr/bin/printtool. What this does is 
> actually create a database file (in compressed XML format, if you must know)
> which then gets mangled by /usr/sbin/printconf-backend into the plaintext 
> printcap. The resulting printcap has line continuation characters: 
> backslashes at the end of lines. However, /usr/lib/yp/create_printcap 
> expects a printcap file that does not contain these backslashes. 
> create_printcap is used by NIS to create the printcap database for 
> distribution.
>
> To get around this, we copy /etc/printcap to /etc/printcap.local, 
> and remove the backslashes from /etc/printcap.local. Then, the original 
> queues are removed using printtool so that /etc/printcap is empty. Once 
> the lpd service is restarted, printcap.local is included verbatim (sans 
> backslashes) into printcap. So, we now have a printcap that NIS can handle. 
>
> To get the NIS clients to read printcap from NIS, one would think that an 
> entry in /etc/nsswitch.conf would do it, but no. Following the the NIS 
> section of the LPRng 3.7.4 HOWTO, you need to modify all /etc/lpd.conf 
> thusly:
>         printcap_path=|/usr/lib/yp/match_printcap
>
> --------End included file
>
>
>

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to