Defining Printers on BSD UNIX Systems
Before using LPR to print files, you must define each printer on the host. The procedure for defining printers depends on the type of host.
Note: |
You must be a system administrator to perform this procedure. |
To define printers on generic BSD systems such as ULTRIX, Sun OS 4.x and BSDI, edit the printcap file in the host's /etc directory. You must have root access on the host to edit the printcap file. If you do not have root access, consult your system administrator.
To define a printer:
- Ensure your host is running the Inetd LPD daemon.
- Open the /etc/printcap file in a text editor.
- Define your printer using the syntax shown below. For more information, see the sample entries.
Note:
The “\” indicates line continuation. Do not include it in your printer definition.
-
- printername|local printer:\
-
- :lp=/dev/localdevicename:sd=/var/spool/spooldirectory:
- where:
- Save the changes to the /etc/printcap file.
- Create the spool directory with read, write, and execute permissions for the user id of the LPD process.
- Repeat the above steps for each printer you want to define.
Creating a Remote Printer -- Windows 98/Me
Creating a Remote Printer -- Windows NT/2000/XP/Server 2003
Creating a Remote Printer Using LPR
Printing Files on a Remote Printer