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/printer12. mkdev rlp -in3. lpadmin -p print1 -m HPLaserJet -v /dev/lp04. echo "print1:lp=/dev/lp0:rm=:rp=:sd=/usr/spool/lpd/print1:" >> /
etc/printcap5. /usr/lib/lpd (it will start automatically when TCP is restarted)6. enable print1; accept print1On each OpenServer lpd client
-----------------------------1. mkdir -p /usr/spool/lpd/printer12. mkdev rlp -in3. lpadmin -p print1 -v /dev/null4. echo "print1:lp=:rm=foo.bar.com:rp=printer1:sd=/usr/spool/lpd/
print1:" >> /etc/printcap5. /usr/lib/lpd (it will start automatically when TCP is restarted)6. enable print1; accept print1You should now be able to print to printer1 on foo.bar.com from your OpenServer LPD client.