From owner-freebsd-questions@FreeBSD.ORG Wed Oct 15 11:17:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A60B616A4B3 for ; Wed, 15 Oct 2003 11:17:04 -0700 (PDT) Received: from ms-smtp-01.nyroc.rr.com (ms-smtp-01.nyroc.rr.com [24.92.226.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC43343FE3 for ; Wed, 15 Oct 2003 11:17:03 -0700 (PDT) (envelope-from tparquet@twcny.rr.com) Received: from twcny.rr.com (syr-24-59-143-77.twcny.rr.com [24.59.143.77]) h9FIH29s001048 for ; Wed, 15 Oct 2003 14:17:03 -0400 (EDT) Message-ID: <3F8D8F1D.80703@twcny.rr.com> Date: Wed, 15 Oct 2003 14:17:01 -0400 From: Tom Parquette User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: lpd setup for remote printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 18:17:04 -0000 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...