Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 2015 00:53:21 -0600
From:      reg@dwf.com
To:        freebsd-questions@freebsd.org
Cc:        Polytropon <freebsd@edvax.de>
Subject:   Still having network/Postscript Printer problem
Message-ID:  <201509130653.t8D6rLr8006399@deneb.dwf.com>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509130653.t8D6rLr8006399>