Linux LPR printing using Perle serial servers.

Issue:
How to configure Linux LPR printing when using a Perle terminal server.

Solution:

Assuming that you are using the Linux print configuration tool to add a remote printer, here is an example of a   /etc/printcap   entry.  I have highlighted the entries that the Linux print configuration tool will ask you before it generates a  printcap  file.  Note: At time of writing, the printcap file existed in RedHat Linux 8 and may or may not apply to future RedHat Linux releases.

jsport1:\  
:sd=/var/spool/lpd/jetstream:\  
:mx#0:\
:sh:\
:rm=jetstream:\
:rp=raw_p1


where; 
jsport1 is the print queue name. 
jetstream is the host table entry for the terminal server
raw_p1 is the queue type whereby p1 refers to port 1.  ie.,  raw_p  

The LPD queue name for Jetstream serial port is made up of 2 components, the queue type and port number (e.g. ascii_p2).
There are 2 queue types: ascii which filters out non-ascii characters (text printing in the unix environment) and raw which has no filter.
The port number is the Jetstream port number.
The queue name for the parallel port is the same except the p is removed (e.g. ascii_9).

The LPD queue name for the IOLAN+ serial port is defined on the Port configuration -> Name parameter.

Sending a printjob would require a command similar to the following example: 

lpr  -P  jsport1     

Note that you are specifying the print queue name of "jsport1" to direct the printfile.

 

Related Links:
1.)  http://www.perle.com/support/cabling/documents/RJ45%20Standard%20Shielded%20Port%20pinout.pdf
Includes RJ45 serial pin specifications for printing.


Article ID:
343
Published:
5/23/2003 1:14:41 PM
Last Modified:
10/7/2004 8:49:52 AM
Issue Type:
Configuration