Netcomm np3680 Guía Del Usuario

Descargar
Página de 85
NP3680 User Guide
YML838 Rev
5.3  Using the Server on BSD UNIX/Linux
1.   Log in to the BSD Unix machine through “root”. 
# login root
2.   Register the Server into /etc/printcap file. Example: To register the printer of USB1 port by the printer 
name “Printer1”. 
Printer1 :\ ---(A)
   
:lp=:rm=NP3680:rp=USB1_LQ:\ ---(B)
   :sd=/var/spool/lpd/Printer1:\ ---(C) 
   :lf=/var/spool/lpd/Printer1/Printer1_errs: ---(D)  
where 
(A)   Describes the printer name. 
(B)  lp: Device file name to connect printer. No name designation required on the network. rm: 
Host Name for the remote printer. Enter the Host Name registered to /etc/hosts file.  rp: 
Remote printer name. Please input the remote printer queue name. 
(C)   sd: Spool directory name. It must be the absolute path. 
(D)   lf: Error log file name. It must be the absolute path.
3.   Create the spool directory and error log file registered to /etc/printcap file. Example: To create the spool 
directory “Printer1” and error log file “Printer1_errs”. 
 
# mkdir /var/spool/lpd/Printer1 Create the spool directory 
 
# touch /var/spool/lpd/Printer1/Printer1_errs Create the error log file 
 
# chown -R daemon /var/spool/lpd/Printer1 Change the owner to daemon 
 
# chgrp -R daemon /var/spool/lpd/Printer1 Change the group to daemon
4.   Start Printing. 
A.   Use the “lp” command. 
- # lp -d Printer1 <Print file name> 
- # lp -d Printer2 <Print file name> 
B. Use the “lpr” command.  
- # lpr -P Printer1 <Print file name> 
- # lpr -P Printer2 <Print file name>