For the HP (or any other IP node) to print to a LaserWriter connected to the A/UX box, you have to edit the /etc/printcap file of the remote system to reflect the A/UX system. It should have an entry like this:
remote:\\
:lp=:\\
:rm=a/ux.hostname:\\
:rp=lp:\\
:sd=/usr/spool/remote:
The above entry brakes down as:
Line 1: Name by which the HP calls the A/UX system's printer
Line 2: Local printer designation
Line 3: Remote host name. This must also be in the host config file (/etc/hosts or equiv)
Line 4: Name of printer on the A/UX system. By default, this will be lp for a Chooser selected printer.
Line 5: Spool directory. This is a directory where remote print jobs will be spooled. Instructions on how to set this up follow.
To create the spool directory, do this:
(1) mkdir /usr/spool/remote
chmod 755 /usr/spool/remote
chgrp daemon /usr/spool/remote
chown daemon /usr/spool/remote
CD /usr/spool/remote
mknod pipe p
chmod 660 pipe
(2) Next, verify the /etc/hosts file on the HP that contains an entry which allows access to the A/UX system. It should look like:
134.66.20.45 aux_hostname aux_hostname.domain.com
The first entry is the IP address of the A/UX system. The second entry is the hostname of the A/UX system, and the final entry is the hostname and domainname of the A/UX system (optional if domain name servers are not being used).
(3) Finally, you must tell the A/UX system that it can accept print requests from the HP system. To do so, edit the /etc/hosts file on the A/UX system so that there is an entry for the HP. The format will be as shown above.
Next, add the HP's hostname to the /etc/hosts.lpd file on the A/UX system. If the A/UX box has not yet been set up for remote printing access, the /etc/hosts.lpd file will not yet exist. Create it and enter the HP hostname.
Now to invoke remote printing on the LaserWriter from the HP, use the lpr command as follows:
lpr -Premote filename_to_be_printed
Also, the newly created pipe in /usr/spool/remote MUST be owned and grouped by "daemon", otherwise, it won't be opened by the spooler.
chown daemon pipe; chgrp daemon pipe
Article Change History:
23 Aug 1994 - Reviewed and updated.
30 Aug 1992 - REVIEWED for technical accuracy.
Support Information Services