Guide to Gateways for LAN Servers
Chapter 4, Administering and using LAN Manager Client

Adding printers

Adding printers

The remote printer must be mounted on a local mount point. For example, if the directory /lmc/printers/printer1 existed on the local machine, then the remote printer lpt1 on server jupiter (user level security) would require mounting using the following command:

mount -f LMCFS, printer jupiter/lpt1 /lmc/printers/printer1

Before you could do this, you must configure the printer. To access a shared printer:

  1. Log in as root on the client.

  2. Create a file called /usr/spool/lp/remote containing a line with the following format for each remote printer:

    printer:<Tab>/usr/spool/lp/bin/rlcmlp -D remote -S svr [ -P pass ]

    printer is the name by which the client knows the remote printer. The rlcmlp command is provided to transfer file(s) to the print server. rlcmlp takes the following options:

    -D remote
    Specifies the name of the printer on the print server.

    -P pass
    Specifies the plain-text password for access to the printer. This option is only needed for share-level servers that require a password to access the printer.

    -S svr
    Specifies the name of the print server.

    For example, if you want to give the name printer1 to the remote printer lpt1 on the share-level server jupiter with password ``clydenw'', the entry should read:

    printer1:       /usr/spool/lp/bin/rlmclp -D lpt1 -S jupiter -P clydenw
    

  3. Change the owner and group of /usr/spool/lp/remote to lp:

    chown lp:lp /usr/spool/lp/remote

  4. Make /usr/spool/lp/remote publicly readable:

    chmod 444 /usr/spool/lp/remote

  5. Define the printer to the print service, start accepting requests for it, and enable printing on it:

    /usr/lib/lpadmin -p printer -v /dev/null -m network
    accept printer
    enable printer

  6. Test by printing a short ASCII file such as /etc/default/issue:

    lp -c -d printer /etc/default/issue