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

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 13 Sep 2015 07:37:27 -0600 (MDT), Warren Block wrote:
> 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.

It's being used by lpr, lpq, lprm - which I consider part
of lpd. :-)



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




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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