On Thu, Jul 28, 2011 at 10:57 AM, Polytropon <free...@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,
>
>        % echo $PRINTER
>
> or
>
>        % 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 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.

> --

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 got :)

Regards,

Antonio
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to