
How To
94
Network Guide
3. Create the printer.
For example:
lpadmin -p Rprinter -s HOSTNAME\aux-T unknown-1 any
4. Enable the printer for use.
For example:
accept Rprinter
enable Rprinter
5. To print, use the lp command.
For example:
lp -d RPrinter Print-File-Name
Setting up for SunOS 4.1.4 or later
In the following steps, substitute the name that your printer will be known by for
HOSTNAME, and the name by which you want your printer to be known for Rprinter.
1. Add the IP address and printer host name to the \etc\hosts file.
For example:
22.33.44.55 HOSTNAME
2. Create a spool directory.
For example:
mkdir\var\spool\lpd\PRIFx
3. Add the printer entry to the \etc\printcap file.
For example:
Rprinter |
ALCXXXX:lp=:rm=HOSTNAME:rp=aux:sd=/var/spool/lpd/PRIFx
4. To print, use the lpr command.
For example:
lpt -s -PRPrinter Print-File-Name
c
Caution:
Files that exceed 1 MB may not be printed unless the -s option is used.