Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 11:06:47 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: printing to a HP Deskjet 812C printer
Message-ID:  <CAJ5UdcNCJTaj=-dag3yPV-ebY%2BEjHTvxcFD0k3=NUYkLrkqbnA@mail.gmail.com>
In-Reply-To: <20110728175744.3affff26.freebsd@edvax.de>
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> <20110728175744.3affff26.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 28, 2011 at 10:57 AM, Polytropon <freebsd@edvax.de> wrote:
> 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. :-)

Rebooted and firefox did not print :(

>
> On the root prompt which (I assume!) has the C shell
> as the default dialog shell,
>
> =A0 =A0 =A0 =A0% echo $PRINTER
>
> or
>
> =A0 =A0 =A0 =A0% printenv PRINTER

Did not try these, as I reverted to .bashrc export PRINTER option.

>
> 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 kensmit=
h 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. =A0Then 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.

> --

However, in the other message:

>******************************************************

You can always check

       $ echo $PRINTER

which should give you the correct printer name, as
you did correctly show. Make sure upper/lowercase
matches exactly.

When you now use any lp* command, they should
refer to $PRINTER.

       $ lpq
       no entries

And as well:

       $ lpr /etc/rc.conf

should print the specified file and place its entry
into the correct printer's queue.


*******************************************************<

This did work, the
$ lpr /etc/rc.conf

[olivares@quadcore ~]$ echo $PRINTER
Deskjet
[olivares@quadcore ~]$ lpq
no entries
[olivares@quadcore ~]$ lpr /etc/rc.conf
[olivares@quadcore ~]$ lpq
Deskjet is ready and printing
Rank   Owner      Job  Files                                 Total Size
1st    olivares   6    /etc/rc.conf                          512 bytes
[olivares@quadcore ~]$


Firefox 5 does not have the properties option :( you mentioned.  It
has File -> Page Setup, File -> Print Preview, File -> Print [General
-> Page Settings -> Options],  but no properties to change printer
options :(

Thank you for the help, I am almost there, in fact I can live with what I g=
ot :)

Regards,

Antonio



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcNCJTaj=-dag3yPV-ebY%2BEjHTvxcFD0k3=NUYkLrkqbnA>