From owner-freebsd-questions@freebsd.org Sun Sep 13 12:49:11 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74BBAA032FB for ; Sun, 13 Sep 2015 12:49:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3913C1FB0 for ; Sun, 13 Sep 2015 12:49:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 339A43CE90; Sun, 13 Sep 2015 14:49:09 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t8DCn8sF004018; Sun, 13 Sep 2015 14:49:08 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 13 Sep 2015 14:49:08 +0200 From: Polytropon To: Dutch Ingraham Cc: reg@dwf.com, freebsd-questions@freebsd.org Subject: Re: Still having network/Postscript Printer problem Message-Id: <20150913144908.63bf0638.freebsd@edvax.de> In-Reply-To: <20150913123433.GA2102@arch> References: <201509130653.t8D6rLr8006399@deneb.dwf.com> <20150913123433.GA2102@arch> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2015 12:49:11 -0000 On Sun, 13 Sep 2015 07:34:33 -0500, Dutch Ingraham wrote: > A few observations/questions: > > For all of the following, I'm assuming you are using DHCP to access a > network printer, correct? > > 1. What does your printer say its hostname is? I.e., when you print your > printer's configuration pages from your printer, under the TCP/IP section, > what is the Host Name? This part is only relevant if you're accessing the ptiner by a name not directly resolved by the "host computer" (the one you print from). For example, you can have the resolving part done in /etc/hosts - of course only as long as this matches the _actual_ network reality. > 2. I would set the default name of the printer to "lp." See bullet > point number 1 in section 9.5.1 of the Handbook. You need to use the -P > switch to print with a different printer name. THat's true. Multiple names usually refer to multiple printers, or different configurations of the same printer (via printcap: different output filters). Going with "lp" is fine. > 3. It appears as though you are missing the printer name in the second > line of your printcap, viz: > > lp:\ #printer name > :lp=:rm=printer HOSTname or ip or port:\ > etc. > > See bullet point number 2, Network section, of the same section of the Handbook. > I have a 4050, which is very close to the 4100, and use the > following first two lines right now, with a fixed IP: > > lp:\ > :lp=:rm=192.168.0.240:\ > > I've also used, with this same printer, with DHCP and the HOSTNAME as > indicated in the printer's configuration pages: > > lp:\ > :lp=:rm=LaserJet:\ My home network also uses DHCP, but the printer address is fixed, so I could enter 192.168.100.it in /etc/hosts. :-) As you pointed out, it's important to see the difference between the printer hostname (networking term) and the printer identification (printcap term). They _may_ be set to the same value, but it's not neccessary. Example here: the printer's hostname is "laserjet" and resolves to the IP 192.168.100.100 (even though I have set that manually in printcap), and "Laserjet" is the printer name, made default per $PRINTER setting in /etc/csh.cshrc - there are others like "Laserjet-nodup" or "Laserjet-tray3" or "Laserjet-manual", all with the same settings except for the output filter that reflects the different options. And as I said, I've set rm= to the IP (no port), and lp= to the empty value. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...