Establish the Printer on the Host Computer
You can print documents to the Silentwriter with either the lpr or ftp command. Once the /etc/hosts file contains the IP address and name of your Silentwriter, you may use ftp to print documents. If you wish to use the lpr command you must
1.Add the Silentwriter to the /etc/printcap files
2.Set up remote printing
Add the Silentwriter to the /etc/printcap File
The printcap file entry has the following form
<host name>:\
:lp=:rm=<host name>:rp=<filter>: sd=<spool dir>:
<host name> is the name defined in the /etc/hosts file.
<filter> is one of the following filters:
lpb: No filtering. Use for binary files.
lpa: Change LF to CR+LF. Converts the LF
lpbf: lpb+FF. Adds the FF code (0C) to the end of the file.
lpaf: lpa+FF. Converts the LF into CR+LF and adds the FF code (0C) to the end of the file.
The default filter is lpb but for most print requests you should use lpa or lpaf to ensure correct formatting for the output.
An example printcap file entry is shown below.
NP015626:\
:lp=:rm=11.22.33.26:rp=lpaf:sd=/usr/
spool/lpd/NP015626:
Everything after the “\” appears on the same line with no spaces.
Set Up Remote Printing
Execute the following commands to make a directory for the spooler and enable remote printing.
mkdir /usr/spool/lpd/<printer> lpsystem
enable <printer>
The host name can be the same as the printer name.
For example,
mkdir /usr/spool/lpd/NP015626 lpsystem
enable NP015626