/usr/share/doc/lprng-doc/LPRng-Reference-Multipart/x6275.htm is in lprng-doc 3.8.A~rc2-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.2.0">
<title>Solaris, Newsprint and FrameMaker</title>
<meta name="GENERATOR" content=
"Modular DocBook HTML Stylesheet Version 1.79">
<link rel="HOME" title=" LPRng Reference Manual" href=
"index.htm">
<link rel="UP" title="Printcap Database " href="printcapref.htm">
<link rel="PREVIOUS" title="Duplex Printing" href="x6254.htm">
<link rel="NEXT" title="Spool Queues and Files" href=
"spoolqueue.htm">
</head>
<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#840084" alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<th colspan="3" align="center">LPRng Reference Manual: 24
Sep 2004 (For LPRng-3.8.28)</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"x6254.htm" accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 12.
Printcap Database</td>
<td width="10%" align="right" valign="bottom"><a href=
"spoolqueue.htm" accesskey="N">Next</a></td>
</tr>
</table>
<hr align="left" width="100%">
</div>
<div class="SECT1">
<h1 class="SECT1"><a name="AEN6275" id="AEN6275">12.22.
Solaris, Newsprint and FrameMaker</a></h1>
<p>The following is a guide to using <b class=
"APPLICATION">LPRng</b> and Sun Microsystems Newsprint by
Christopher Hylands, Ptolemy Project Manager of the University
of California.</p>
<p>The Sun Newsprint printer is actually an OEM version of the
Tektronix PhaserII; Sun Microsystems appears to have dropped
support for Newsprint, and the recommended migration path is to
buy a PostScript printer. If you want more information on using
the Newsprint system, notes are available via <tt class=
"FILENAME">http://ptolemy.eecs.berkeley.edu/~cxh/lprng.html</tt>.</p>
<p>Looking through the mailing list logs, it looks like
everyone was having a hard time getting lprng to work with
Sun's brain-dead newsprinters. I tried using GhostScript, but
the fonts were, IMHO, ugly, so I spent a little time getting
the newsprint fonts to work.</p>
<p>The key thing was to grab the file <tt class=
"FILENAME">/usr/newsprint/lpd/if</tt> from a SunOS4.1.3
newsprint installation. If you cannot get this code, then the
installation will be extremely difficult.</p>
<p>To install lprng on a Solaris2.x machine, you need to first
stop the existing print services and install the startup
scripts for <b class="APPLICATION">LPRng</b>. Note that if
there is a local printer, you may have to also fix the
permissions of the device. Typical commands are:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6286" id="AEN6286"></a>
<pre class="SCREEN">
chown daemon /devices/sbus@1,f8000000/SUNW,lpvi@1,300000:lpvi0</pre>
</div>
<p>We use the following simple <tt class="LITERAL">:if</tt>
script.</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6290" id="AEN6290"></a>
<pre class="SCREEN">#/bin/sh
# extremely simple filter script
/bin/cat</pre>
</div>
<p>The Sparcprinters use licensed fonts from NeWSprint. To use
the licensed fonts, you must have the lprng spool directory for
the sparcprinter in the same location as spool directory of the
brain dead Solaris lp system. If your printer is named xsp524,
then this directory would be <tt class=
"COMMAND">/etc/lp/printers/xsp524</tt>.</p>
<p>The printcap entry looks like:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6295" id="AEN6295"></a>
<pre class="SCREEN">sp524|524:
:mx=0
:lp=:rm=doppler:rp=xsp524:
:sd=/var/spool/lpd/sp524d:
:lf=/var/spool/lpd/sp524d/log:
xsp524|Sun SPARCprinter NeWSprint printer:
:mx=0:rs:
:lp=/dev/lpvi0:
:sd=/etc/lp/printers/xsp524:
:lf=/etc/lp/printers/xsp524/log:
:af=/var/spool/lpd/xsp524/acct:
:filter=/usr/local/libexec/newsprint/if:</pre>
</div>
<p>The <tt class=
"FILENAME">/usr/local/libexec/newsprint/if</tt> was copied from
<tt class="FILENAME">/usr/newsprint/lpd/if</tt> in a SunOS4.x
installation of the newsprint software. Unfortunately, the
newsprint engine is so brain dead that it needs many
environment variables set, so it is fairly difficult to come up
with a clean script to start the engine. I made the following
changes to the file.</p>
<ol type="1">
<li>
<p>First, set the path in the script. You may also need to
change defaults to suit your preferences:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6303" id="AEN6303"></a>
<pre class="SCREEN">
PATH=/usr/ucb:/usr/bin:/etc:/usr/etc:\
/opt/NeWSprint/bin:/opt/NeWSprint/np/bin:
PATH=$PATH:$NPHOME/pl.$ARCH/bin:$NPHOME/np/bin; export PATH</pre>
</div>
</li>
<li>
<p>You will also need a <tt class=
"FILENAME">/etc/lp/printers/printername/.params</tt> file.
If you are using the same spooler directory as the
directory that the Solaris lp system uses, then the .param
file should appear there. If you are using a different
spooler directory, then you will need to copy the .param
file from elsewhere and edit it accordingly.</p>
</li>
<li>
<p>If you are going to move a license to a new printer, you
should probably save the .param file in the old printer
spooler directory. Run /opt/NeWSprint/bin/fp_install and
remove the license from the old printer and assign it to
the new printer. You could run
/opt/NeWSprint/bin/rm_np_printer and remove the printer,
but that will get rid of the .param file</p>
</li>
<li>
<p>FrameMaker under Solaris2.x uses the lp command. The fix
is to edit $FMHOME/fminit/FMlpr and comment out the lp line
and add an lpr line</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6312" id="AEN6312"></a>
<pre class="SCREEN">sunxm.s5.sparc)
lpr -P"$PRINTER" "$FILE"
#lp -c -d"$PRINTER" "$FILE"</pre>
</div>
</li>
</ol>
<div class="INFORMALEXAMPLE">
<a name="AEN6314" id="AEN6314"></a>
<pre class="SCREEN">
Christopher Hylands, Ptolemy Project Manager University of California
cxh@eecs.berkeley.edu US Mail: 558 Cory Hall #1770
ph: (510)643-9841 fax:(510)642-2739 Berkeley, CA 94720-1770
home: (510)526-4010 (if busy -4068) (Office: 493 Cory)</pre>
</div>
</div>
<div class="NAVFOOTER">
<hr align="left" width="100%">
<table summary="Footer navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href=
"x6254.htm" accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href=
"index.htm" accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href=
"spoolqueue.htm" accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">Duplex
Printing</td>
<td width="34%" align="center" valign="top"><a href=
"printcapref.htm" accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top">Spool Queues and
Files</td>
</tr>
</table>
</div>
<p align="center"></p>
</body>
</html>
|