/
Remote printer configuration: General Setup

Remote printer configuration: General Setup

Register PC's IP address

  • Add the IP address and hostname of PC on the /etc/hosts file of the UNIX system.Β 
    192.168.1.119 Β Β Β Β  lpd_pc_name
    # A space or tab is needed between IP address and hostname.


Terminology

  • Printer NameΒ 
    Printer Name is used to specify a printer when you register or send print jobs to it. In some UNIX systems, Queue Name is used instead.

  • Printer ServerΒ 
    Printer Server means an IP address or hostname of the PC runningΒ Xlpd. Depending on systems, it may only require the hostname.

  • Queue NameΒ 
    Queue Name defines the queue name ofΒ XlpdΒ (Printer Server).Β XlpdΒ receives the print job from the client machines. Each print job has its assigned queue name. WhenΒ XlpdΒ receives the print job, it then finds a queue that has a matching queue name and processes it accordingly. If the queue name does not exist,Β XlpdΒ can create a new queue that has the name specified in the print job or use the default queue instead.


General guide to register a printer

  • Select [Berkeley] or [BSD] from Print type.Β XlpdΒ supports LPD protocol, and generally it is known as Berkeley remote printing protocol.

  • In Berkeley UNIX system, refer to theΒ printcapΒ manual page to register a printer.Β 
    $ man printcap

  • To print a file, you can runΒ lprΒ command or select print menu in some text GUI editor. For detailedΒ lprΒ command line options, refer to theΒ lprΒ manual page.Β 
    $ lpr -PPrinter_name filename
    or
    $ lpr -dPrinter_name filename


Related content