Technical article 117651

How to configure an LPD printer entirely from the command line in OpenServer 5.

OpenServer 5.0.5OpenServer 5.0.6

Written

Problem

I would like to configure an lpd printer for remote access using only
command-line utilities.  How do I carry this out on both the remote
print server and on LPD client systems, if both of these systems are
OpenServer 5 systems?

Solution

Use the following commands as the root user on the print server and
each client system as instructed below.  As an example, we will
consider a printer configured locally as "printer1" on /dev/lp0, and
remotely as the same name; printer1 resides on "foo.bar.com", and is
an HP LaserJet printer.
On the lpd print server
-----------------------
1. mkdir -p /usr/spool/lpd/printer1
2. mkdev rlp -in
3. lpadmin -p print1 -m HPLaserJet -v /dev/lp0
4. echo  "print1:lp=/dev/lp0:rm=:rp=:sd=/usr/spool/lpd/print1:" >> /
   etc/printcap
5. /usr/lib/lpd  (it will start automatically when TCP is restarted)
6. enable print1; accept print1
On each OpenServer lpd client
-----------------------------
1. mkdir -p /usr/spool/lpd/printer1
2. mkdev rlp -in
3. lpadmin -p print1 -v /dev/null
4. echo "print1:lp=:rm=foo.bar.com:rp=printer1:sd=/usr/spool/lpd/
   print1:" >> /etc/printcap
5. /usr/lib/lpd  (it will start automatically when TCP is restarted)
6. enable print1; accept print1

You should now be able to print to printer1 on foo.bar.com from your OpenServer LPD client.

From the Xinuos technical article database, record 117651. Reproduced with permission. The original is at www.sco.com/ta/117651, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.