11.3. Printing to a NetWare Printer
11.3. Printing to a NetWare Printer
The ncpfs suite includes a utility called nprint which provides the same functionality
as smbprint but for NetWare. You
can get ncpfs from Metalab. From the LSM entry for version 0.16:
"With ncpfs you can mount volumes of your NetWare server under
Linux. You can also print to NetWare print queues and spool
NetWare print queues to the Un*x print spooler. You need
kernel 1.2.x or 1.3.54 and above. ncpfs does NOT work with any
1.3.x kernel below 1.3.54."
11.3.1. From LPD
To make nprint work via lpd, you
write a little shell script to print stdin on the NetWare
printer, and install that as the if for an
lpd print queue. You'll get something like:
sub2|remote-NWprinter:\
:sh:\
:lp=/dev/null:\
:sd=/var/spool/lpd/sub2:\
:if=/var/spool/lpd/nprint-script:
|
The
nprint-script might look
approximately like:
#! /bin/sh
# You should try the guest account with no password first!
/usr/local/bin/nprint -S net -U name -P passwd -q printq-name -
|