Introduction to UNIX Settings
lpr filters
Setting Up Different UNIX Systems Using the lpr Command
Using the ftp Command
Introduction to UNIX Settings
This chapter explains how to set up the printer for different UNIX systems using the lpr command.
Your printer supports many standard UNIX commands and can be configured from a host computer without using a special setup utility.
Your printer is able to function as a remote printer on systems using TCP/IP Ethernet transfer with lpr remote printing protocol, or standard ftp (file transfer protocol).
|
Note: |
|
Because this printer does not convert data into the printer control language, a printer driver and filter are necessary for each system.
|
|
Filters for lpr are controlled by the name given to the remote printer. When setting up an lpr printer entry, a name is entered for:
Many different remote printer names may be set up, all directed to the same Ethernet remote host, and each is given a different local printer name to be redirected. Different types of print jobs may be sent to different printer names, which will then all print out on the same printer, through the same Ethernet interface, but using different filters.
The remote printer name options used to invoke the different filters are as follows:
lpb
|
Binary files (no filters)
|
lpa
|
ASCII files (carriage returns at line ends)
|
lpbf
|
Binary file with form feed at file end
|
lpaf
|
ASCII file with form feed at file end
|
All other remote printer name options will be treated the same as lpb.
The following is an example of sending a text file, "txtfile", via lpr with a form feed appended:
Setting Up Different UNIX Systems Using the lpr Command
The following UNIX systems can print using the standard lpr command.
Setting up for SunSoft Solaris 2.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.
|
Add the IP address and printer host name to the \etc\hosts file.
|
|
Define the host name as a print server.
|
|
Create the printer.
|
|
Enable the printer for use.
|
|
To print, use the lp command.
|
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.
|
Add the IP address and printer host name to the \etc\hosts file.
|
|
Create a spool directory.
|
|
Add the printer entry to the \etc\printcap file.
|
|
To print, use the lpr command.
|
|
Caution: |
|
Files that exceed 1 MB may not be printed unless the -s option is used.
|
|
Setting up for IBM AIX 3.2.5 or later and 4.1.3 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.
|
Add the IP address and printer host name to the /etc/hosts file.
|
|
Run smit.
|
|
Set the printer name (for example: Rprinter) in:
|
|
To print, use the lpr command.
|
Setting up for HP-UX 9.05 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.
|
Add the IP address and host name to the /etc/hosts file.
|
|
Terminate the printer service.
|
|
Create a printer.
|
|
Restart the print service.
|
|
Enable the printer for use.
|
|
To print, use the lp command.
|
Setting up for SCO UNIX 4.2 or later (Open Server)
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.
|
Add the IP address and host name to the /etc/hosts file.
|
|
Execute rlpconf to register the printer.
|
|
Enter the name of the printer.
|
|
Specify the remote printer as the printer type.
|
|
Enter the name of the remote printer’s host.
|
For example:
Please enter the name of the remote host that Rprinter is attached to: HOSTNAME Printer RPrinter is connected to host HOSTNAME
|
Confirm that the entries are correct.
|
|
Specify that the RLP extended function (valid when the print server is SCO-UNIX) will not be used.
|
For example:
If HOSTNAME currently runs SCO OpenServer Release 5 or above, it can support the extended remote line printer protocol. Do you want to turn on the "extended RLP protocol" support flag? If you are not sure, answer "n"? (y/n)[n]n
|
Specify whether the created printer is to become the default printer.
|
|
To print, use the lpr command.
|
ftp commands are common to all UNIX systems.
ftp programs use interfaces that are common for all unix systems.
The following is an example of printing using the ftp command (the entry operations are underlined).
220 PR-Ifx(22.33.44.55) ftp server ready.
331 Password Required for (No Name).
200 PORT command successful.
150 Opening data connection for binary_file
|