lpd setup for remote printer
Hi. I subscribe to the digest flavor of questions. Please CC me on any repliees. I'm trying to set up remote printing for the first time. These are both FreeBSD 5.1-CURRENT machines. I have an HP2000 USB connected to the remote host. It is lp on P3R-272. I'm using apsfilter on P3R-272 as the print filter. I am able to print to the printer when I'm on that machine. The printer is called lp and this is what apsfilter setup created: lp|PS;r=1200x1200;q=photo;c=full;p=letter;m=auto:\ :lp=/dev/ulpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :tr=\004:\ :sh: I'm trying to configure printing on the local machine (Stargate) to point to lp on P3R-272. I have NO printer directly connected to Stargate. I've looked at the printcap sample remote printer and the man page. I've tried a number of different combinations and I cannot convince lpd on Stargate that lp is a remote printer. It keeps looking for /dev/lp. This is what I currently have coded in Stargate's printcap file: lp|HP2000 on P3R-272:\ :sh:\ :sd=/var/spool/lpd/lp:lf=/var/log/lpd-errs:\ :rm=P3R-272.Tom.Parquette.name: The error messages I'm getting are: Oct 15 14:01:41 Stargate lpd[1015]: unable to get official name for local machine Stargate.Tom.Parquette.name: No address associated with hostname Oct 15 14:01:41 Stargate lpd[1015]: /dev/lp: No such file or directory Oct 15 14:01:41 Stargate kernel: Oct 15 14:01:41 Stargate lpd[1015]: /dev/lp: No such file or directory The official name message is explainable. I use DDNS, I had to boot the DHCP/DNS server today. If I shutdown Stargate for a few hours, everything will disappear from the leases file and the name will resolve again. The second and third error messages are the ones I cannot find an answer to. TIA for any help. Cheers... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: lpd setup for remote printer
At 2:17 PM -0400 10/15/03, Tom Parquette wrote: I'm trying to configure printing on the local machine (Stargate) to point to lp on P3R-272. This is what I currently have coded in Stargate's printcap file: lp|HP2000 on P3R-272:\ :sh:\ :sd=/var/spool/lpd/lp:lf=/var/log/lpd-errs:\ :rm=P3R-272.Tom.Parquette.name: If you do not have 'rp=' specified, then (iirc) lpd will assume you mean a local printer. Try addingrp=lp: to the above printcap entry. -- Garance Alistair Drosehn= [EMAIL PROTECTED] Senior Systems Programmer or [EMAIL PROTECTED] Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: lpd setup for remote printer
Garance, rp=lp fixed that problem but something else showed up... On Stargate I get the following: Stargate# lpc status all lp: queuing is enabled printing is enabled 3 entries in spool area waiting for queue to be enabled on P3R-272.Tom.Parquette.name Stargate# But on P3R-272 I get: (aps1 is a Lexmark definition I never finished) P3R-272# lpc status all lp: queuing is enabled printing is enabled no entries in spool area printer idle aps1: queuing is enabled printing is enabled no entries in spool area printer idle P3R-272# Taking the messages at face value, it appears lp is enabled on P3R-272. The searches I did not the message in the archives did not turn up anything. Any ideas? Thanks... Garance A Drosihn wrote: At 2:17 PM -0400 10/15/03, Tom Parquette wrote: I'm trying to configure printing on the local machine (Stargate) to point to lp on P3R-272. This is what I currently have coded in Stargate's printcap file: lp|HP2000 on P3R-272:\ :sh:\ :sd=/var/spool/lpd/lp:lf=/var/log/lpd-errs:\ :rm=P3R-272.Tom.Parquette.name: If you do not have 'rp=' specified, then (iirc) lpd will assume you mean a local printer. Try addingrp=lp: to the above printcap entry. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]