|

How to set up lpd/lpr printing in a system V-based system
Note: You need super user (root) access to your UNIX system for this procedure.
The System V spool (printer) system is used by HP-UX, SCO UNIX, Solaris and IRIX. SCO, FreeBSD, NetBSD and Linux systems.
The commands used in System V spool systems are:
- lp, a user command which initiates print requests
- cancel, a user command which cancels print requests
- lpstat, a user command lists queue contents
- accept, reject, enable, disable, lpadmin, lpmove, lpusers, lpsystem, are all administrative commands
- lpsched, a system daemon program which is responsible for sending jobs to the printer
To install a printer:
- Ensure that the lpsched is running.
- Enter the PrintServer host name in the /etc/hosts file.
For example, if your IP address for the PrintServer is 172.16.100.10 and the host name is PrintServer01, The settings in your host file must be:
172.16.100.10 PrintServer01
- Tell the print system that the PrintServer exists as a remote printing host
# lpsystem -p bsd PrintServer01
- Set up a queue
# lpadmin -p myqueue -s 'PrintServer01!LPDPRT1'
- Print a test job
# lp -Pmyqueue test.prn
|