Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 17:57:44 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Antonio Olivares <olivares14031@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: printing to a HP Deskjet 812C printer
Message-ID:  <20110728175744.3affff26.freebsd@edvax.de>
In-Reply-To: <CAJ5UdcMfwm8mSTBjr7JJ3K7fkUOKs5s2XhW2un7bCO6SvejH1g@mail.gmail.com>
References:  <CAJ5UdcM-BbvZHdMLsNH0xckFhgL8z-PfcyB_Q-eTnrfhjYHtUg@mail.gmail.com> <CANmv3=yz7TO-12zOVMj9MpjY91M18E4ePE=UzOtv8UxFUXJ=kg@mail.gmail.com> <CAJ5UdcM70MQh35hgzF8DG0r0iW7Vwd1s7y6r62VbFMpBd3_dDA@mail.gmail.com> <CANmv3=zSYQ1NXNW8QXi8HS3N_0NjWf0b5Xm6WE5vyubPQ-6cAg@mail.gmail.com> <CAJ5UdcNhFWRDpD1A0ADdmKUGUEB83s6hpgHUR8oew=LmFR12Eg@mail.gmail.com> <CANmv3=x5fakRvE8%2Bb8Xwa_yx6mCf_Uuhas7i73Pf2v=tXHB1Ew@mail.gmail.com> <CANmv3=wUmm=ZVmxGHtiX4M2tvAWeq0o5cwCE8A5Kxrd_Op9jYA@mail.gmail.com> <CAJ5UdcP%2BzgboZ27Y=Ehbg82DOR1xpptA9FgReXNeqzFTc8u3Pg@mail.gmail.com> <CAJ5UdcPejU0cmn5S_O2tFz=WrbwbG5fcVM9Xiq2V%2B_YMSFNF9Q@mail.gmail.com> <20110728151507.0c150f3c.freebsd@edvax.de> <CAJ5UdcO5AqZE6VWQykwN=LxcixKCHtkLXdSyNBWL-wqcNKw5gw@mail.gmail.com> <20110728171430.4b900bea.freebsd@edvax.de> <CAJ5UdcPMmaKQbV9TiQhnCfQNEyC7kgo6vDkhHfPcy64rU2uR7Q@mail.gmail.com> <CAJ5UdcMfwm8mSTBjr7JJ3K7fkUOKs5s2XhW2un7bCO6SvejH1g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Jul 2011 10:44:52 -0500, Antonio Olivares wrote:
> Made the changes with global /etc/csh.cshrc and it did not work :(

Requires re-login, but reboot should also be fine. :-)

On the root prompt which (I assume!) has the C shell
as the default dialog shell,

	% echo $PRINTER

or

	% printenv PRINTER

should show the correct name. The lp* tools will then
use it (if set).



> [olivares@quadcore ~]$ cat /etc/csh.cshrc
> # $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.6.1 2010/12/21 17:09:25 kensmith Exp $
> #
> # System-wide .cshrc file for csh(1).
> 
> setenv PRINTER Deskjet

I also have this in mine (although "Laserjet" is the
name for the standard printer, and "Laserjet-nodup" for
an "additional" printer without the duplexer). My login
shell is the C shell. When I start bash from a csh
prompt, I can also use the lp* commands, as $PRINTER
will be "inherited".



> But if I change lpr to lpr -P Deskjet, I can print.  Then I will need
> to play with it some more?

Make sure the settings are in effect. According to the
manpages and my experience (that it _does_ work this
way) show that if $PRINTER is present, it will be used
as the default -P parameter. It makes things easier.

For example, _all_ printing does to the default printer.
If a temporary change is needed, just set $PRINTER to a
different value as long as you need it. If it's a "one
time only" use, -P is definitely better.





-- 
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?20110728175744.3affff26.freebsd>