Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 2015 07:37:27 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        reg@dwf.com
Cc:        freebsd-questions@freebsd.org, Polytropon <freebsd@edvax.de>
Subject:   Re: Still having network/Postscript Printer problem
Message-ID:  <alpine.BSF.2.20.1509130731000.26613@wonkity.com>
In-Reply-To: <201509130653.t8D6rLr8006399@deneb.dwf.com>
References:  <201509130653.t8D6rLr8006399@deneb.dwf.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 13 Sep 2015, 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

This is not used by lpd at all, as far as I know.

> 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

That is because the printcap shown above gives the printer the name of 
HP-DP.  To use that, the printer name must be given to lpr:

   lpr -PHP-DP sum.ps

However, I recommend giving the default printer the name "lp".  That is 
the default so that lpr can be used without specifying the printer name. 
Printers can be given multiple names, if desired.

> 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.

In an earlier post, we showed what was wrong with that earlier broken 
printcap.  Did you not see that?

lp:\
 	:lp=9100@HPLJ4100:\
 	:sh:\
 	:mx#0:\
 	:sd=/var/spool/lpd/lp:\
 	:lf=/var/log/lpd-errs:

This is shown in the Handbook printing section:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html



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