Still having network/Postscript Printer problem
freebsd at edvax.de
Sun Sep 13 16:59:49 UTC 2015
On Sun, 13 Sep 2015 07:37:27 -0600 (MDT), Warren Block wrote:
> On Sun, 13 Sep 2015, reg at 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.
It's being used by lpr, lpq, lprm - which I consider part
of lpd. :-)
> > HP-DP:\
> > :rm=9100 at 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 at 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
And _this_ is what $PRINTER can be used for.
> 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.
And it makes dealing with the _one_ printer easier.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions