From owner-freebsd-questions@freebsd.org Sun Sep 13 12:35:04 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 05579A02D1A for ; Sun, 13 Sep 2015 12:35:04 +0000 (UTC) (envelope-from stoa@gmx.us) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B67F11B99 for ; Sun, 13 Sep 2015 12:35:03 +0000 (UTC) (envelope-from stoa@gmx.us) Received: from arch ([24.116.197.15]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M4nM5-1Ygnwu2Mpx-00yxwj; Sun, 13 Sep 2015 14:34:45 +0200 Date: Sun, 13 Sep 2015 07:34:33 -0500 From: Dutch Ingraham To: reg@dwf.com Cc: freebsd-questions@freebsd.org Subject: Re: Still having network/Postscript Printer problem Message-ID: <20150913123433.GA2102@arch> References: <201509130653.t8D6rLr8006399@deneb.dwf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201509130653.t8D6rLr8006399@deneb.dwf.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Provags-ID: V03:K0:+WVpIcJT5P1DVWTe+3QIIdYdxmLEWrTTU4ZZ8Cci4UKx8cXwlcQ OouMaeM1nCi3MVVK6wW89Sny6SAt8c++yv0SNtyseUGbXib3CoRGnBhOG5V7WvIYjQctt8U 5o5uC92xuJ9bPh+7mMA7I7owCqx9upLcbgzV7i0CTgUQ23mNqBjXyAvWs4wCX8Z6L1N4oHb PpnaYDVxyYhCXAT9opz0A== X-UI-Out-Filterresults: notjunk:1;V01:K0:kWsSGLySszM=:HeHXPDuF7E/IhDajCGPWRY z2as68Kb/HqIodpRtXCBS1Gqez9Jen1otzLIj3v0ipjb59TNVr1VN5qeKWC00sfmix0Cx50BF 8pfR+UFQWnH17+M/OtSgNfXyH78k1VRqXqkMdAMvqWTl4RN0uqo0RJJSI3m49D2zBs6WIHIQ+ IGlHtFj+BBlDN/Cz5yFfAwe9o+MjmxVlIOIV9x6bDytLy7lJRTmXLDSASc+uNQjKiWQyxzb+/ BSo66ToD7k8bODukFtUaSqWk/SDSxJvbyW5UwlkHpcwBUKQdQA9oZ0IjgYvYyZdzWReRodvdh fNNaoIklEar/PmeZbEF/lz3PDYZtOs91G+ImnEMCWk10f3PXKiw0LUXvl1mhB59acc3B1NLwx r5K8YzXyY7crMW3i7CYwao8BJVobtYNZ3tLoAORRlY9pq+s82ZsCLUonXFCTdRZOg94ZujHyM 2Eg3Ib/7UNDcRH8KotavUSj8PavFg3lh0gaHL7vXC10Cm/LkQPl3EbIRZiaJEwBt+n+T/j+UZ 8D9BnMLGgMsvkUY2MgGy/y48l6rqFA7YYQHIk77WA2FbKsjCqF1kIHBMDQJZyJQNIT5wLQwIa Io6PKtcpylUwO5MReCltRiCd2ap2S79iUngKagshQ73MGUk5kyk4KjY6POYlrez/YbYjcO037 zKCUlAnpS8mivpmely/GFjzqxUmS8OUCx1e+uAB8EHKeAtyRB/TARncyk82Iv+LQrnEmwY6r5 G5bGWqa02ScbJWd/ 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:35:04 -0000 On Sun, Sep 13, 2015 at 12:53:21AM -0600, reg@dwf.com wrote: > I am having nothing but trouble in trying to get printing to work under > FreeBSD with my HPLJ4100. The printer works find from linux, and I might > just give up and use the 'cups' implemenetation under FreeBSD if I can't > get lpd to work. > > Here is where I stand. > > I have the environment variabalee > > setenv PRINTER=HPLJ4100 > > dns sees the printer > > % nslookup HPLJ4100 > Server: 127.0.0.1 > Address: 127.0.0.1#53 > > Non-authoritative answer: > Name: HPLJ4100.dwf.com > Address: 192.168.64.30 > > I have > > lpd_enable="YES" > > in /etc/rc.conf > > I have set > > service lpd start > > numerous times, and lpd is running. > > my printcap keeps changing, but currently reads > > HP-DP:\ > :rm=9100@HPLJ4100:\ > :rp=raw:\ > :sd=/var/spool/lpd/HP-DP:\ > :lf=/var/spool/lpd/HP-DP/log:\ > :af=/var/spool/lpd/HP-DP/acct:\ > :mx#0:\ > :sh: > > when I do a > > lpr sum.ps > > of a postscript file, I see > > root@FreeBSD:/home/reg # lpr sum.ps > lpr: HPLJ4100: unknown printer > > if I take the 9100@ out of the printcap file, viz > > HP-DP:\ > :rm=HPLJ4100:\ > :rp=raw:\ > :sd=/var/spool/lpd/HP-DP:\ > :lf=/var/spool/lpd/HP-DP/log:\ > :af=/var/spool/lpd/HP-DP/acct:\ > :mx#0:\ > :sh: > > I see for the lpr > > root@FreeBSD:/home/reg # lpr sum.ps > lpr: HPLJ4100: unknown printer > > so thats the same. > > I have tried about a thousand vaiations, anc always see > > root@FreeBSD:/home/reg # lpq > lpq: printer not found > > I must be doing something basic that is wrong, but I dont see ir. > Someone tell me what Im doing wrong, this can't be this hard. > > Reg Clemens > clemens@dwf.com 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? 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. 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:\