Setting up for
In the following steps, substitute the name that your printer with the interface card will be known by for HOSTNAME, and the name by which you want your printer to be known for Rprinter.
1.Add the IP address and host name to the /etc/hosts file.
For example:
22.33.44.55 HOSTNAME
2.Terminate the printer service.
For example: lpshut
3.Create a printer.
For example:
lpadmin
4.Restart the print service.
For example: lpshed
5.Enable the printer for use.
For example: accept Rprinter enable Rprinter
Use the lp command to print.
For example:
lp