Printing from Thunderbird

2010-08-20 Thread Rem P Roberti
 I have Thunderbird installed on my new 8.1 box, and although I am able 
to print from within the program, the only way I can do it is to type 
the whole print command from within the print window.  In my case that 
means typing:


lpr  -PPhotoshop7760

I have tried to figure a way of configuring the printer to load 
automatically by modifying the advanced options, but so far, no luck.  
The printer is installed via CUPS, and seems to be functioning 
perfectly.  If anyone has been able to modify the options configuration 
setup to make printing easier I would love to see how you did it.


Cheers...

Rem


___
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


Re: Printing from Thunderbird

2010-08-20 Thread Polytropon
On Fri, 20 Aug 2010 18:23:46 -0700, Rem P Roberti remeg...@comcast.net wrote:
   I have Thunderbird installed on my new 8.1 box, and although I am able 
 to print from within the program, the only way I can do it is to type 
 the whole print command from within the print window.  In my case that 
 means typing:
 
  lpr  -PPhotoshop7760
 
 I have tried to figure a way of configuring the printer to load 
 automatically by modifying the advanced options, but so far, no luck.  
 The printer is installed via CUPS, and seems to be functioning 
 perfectly.  If anyone has been able to modify the options configuration 
 setup to make printing easier I would love to see how you did it.

You can set the environmental variable $PRINTER according to the
name of the default printer. In my case, I have

setenv PRINTER Laserjet

in my /etc/csh.cshrc (for system-wide use). Now all lp* commands
will default to that printer, and printing from within applications
that use lpr's stdin will also work.

PS: I'm not using CUPS, but apsfilter, which is the little brother
of CUPS, to translate printing data to PCL and have duplex settings
for my HP Laserjet 4000 duplex.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Re: Printing from Thunderbird

2010-08-20 Thread Rem P Roberti



On Fri, 20 Aug 2010 18:23:46 -0700, Rem P Robertiremeg...@comcast.net  wrote:

   I have Thunderbird installed on my new 8.1 box, and although I am able
to print from within the program, the only way I can do it is to type
the whole print command from within the print window.  In my case that
means typing:

  lpr  -PPhotoshop7760

I have tried to figure a way of configuring the printer to load
automatically by modifying the advanced options, but so far, no luck.
The printer is installed via CUPS, and seems to be functioning
perfectly.  If anyone has been able to modify the options configuration
setup to make printing easier I would love to see how you did it.

You can set the environmental variable $PRINTER according to the
name of the default printer. In my case, I have

setenv PRINTER Laserjet

in my /etc/csh.cshrc (for system-wide use). Now all lp* commands
will default to that printer, and printing from within applications
that use lpr's stdin will also work.

PS: I'm not using CUPS, but apsfilter, which is the little brother
 of CUPS, to translate printing data to PCL and have duplex settings
 for my HP Laserjet 4000 duplex.



Ah-ha!  In my case I am using the bash shell, and I believe the syntax 
that is needed for the .bashrc is different than what is used in your 
csh.cshrc.  Any idea where I can find the appropriate syntax for 
variables stored within .bashrc?



___
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


Re: Printing from Thunderbird

2010-08-20 Thread CyberLeo Kitsana
On 08/20/2010 11:29 PM, Rem P Roberti wrote:
 Ah-ha!  In my case I am using the bash shell, and I believe the syntax
 that is needed for the .bashrc is different than what is used in your
 csh.cshrc.  Any idea where I can find the appropriate syntax for
 variables stored within .bashrc?

export PRINTER=Photoshop7760

bash(1) has extensive documentation; as bash is a superset of the bourne
shell included in base, sh(1) is likewise useful for reference.

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
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


Re: Printing from Thunderbird

2010-08-20 Thread Rem P Roberti

 On 08/20/10 21:35, CyberLeo Kitsana wrote:

On 08/20/2010 11:29 PM, Rem P Roberti wrote:

Ah-ha!  In my case I am using the bash shell, and I believe the syntax
that is needed for the .bashrc is different than what is used in your
csh.cshrc.  Any idea where I can find the appropriate syntax for
variables stored within .bashrc?

export PRINTER=Photoshop7760

bash(1) has extensive documentation; as bash is a superset of the bourne
shell included in base, sh(1) is likewise useful for reference.


Well...I kind of thought that the export variable was the correct
one to use, and I entered :

export PRINTER=Photosmart7760

into both my .bashrc and .bash_profile, but no dice.  The printer
neither shows up in Thunderbird or Firefox


___
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


Re: Printing from Thunderbird

2010-08-20 Thread Polytropon
On Fri, 20 Aug 2010 21:44:37 -0700, Rem P Roberti remeg...@comcast.net wrote:
   On 08/20/10 21:35, CyberLeo Kitsana wrote:
  On 08/20/2010 11:29 PM, Rem P Roberti wrote:
  Ah-ha!  In my case I am using the bash shell, and I believe the syntax
  that is needed for the .bashrc is different than what is used in your
  csh.cshrc.  Any idea where I can find the appropriate syntax for
  variables stored within .bashrc?
  export PRINTER=Photoshop7760
 
  bash(1) has extensive documentation; as bash is a superset of the bourne
  shell included in base, sh(1) is likewise useful for reference.
 
 Well...I kind of thought that the export variable was the correct
 one to use, and I entered :
 
  export PRINTER=Photosmart7760
 
 into both my .bashrc and .bash_profile, [...]

This is correct, but keep in mind that this setting will be
a per-user only setting, allthough it should be sufficient.
With

$ echo $PRINTER

you can always check for it.



 [...] but no dice.  The printer
 neither shows up in Thunderbird or Firefox

I checked in my Firefox (version 2): The printer's name is just
PostScript/Default, and when I click Properties, the following
print command is listed:

lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

In my case, this strangely works, as I don't have $MOZ_PRINTER_NAME
defined anywhere. You can try to simplify the setting to just be

lpr

which should then default to $PRINTER. You can also test the
intended behaviour with an example like

lpr /etc/rc.conf

which should then - without any trouble - output /etc/rc.conf to
the printer.

From my understanding: When Firefox prints, it sends the data
to lpr per pipe. Checking the printer queue right after ^P will
lead to something like this:

% lpq
Laserjet is ready and printing
Rank   Owner  Job  Files  Total Size
1stpoly   982  (standard input)   484630 bytes

Now as $PRINTER is defined, you don't need -P anymore for all
the lp* tools - only if you want to override the default (e. g.
as I use -PLaserjet-nodup if I intendedly want to force non-duplex
single-sided printing).




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Re: Printing from Thunderbird

2010-08-20 Thread Rem P Roberti

 On 08/20/10 22:01, Polytropon wrote:

On Fri, 20 Aug 2010 21:44:37 -0700, Rem P Robertiremeg...@comcast.net  wrote:

   On 08/20/10 21:35, CyberLeo Kitsana wrote:

On 08/20/2010 11:29 PM, Rem P Roberti wrote:

Ah-ha!  In my case I am using the bash shell, and I believe the syntax
that is needed for the .bashrc is different than what is used in your
csh.cshrc.  Any idea where I can find the appropriate syntax for
variables stored within .bashrc?

export PRINTER=Photoshop7760

bash(1) has extensive documentation; as bash is a superset of the bourne
shell included in base, sh(1) is likewise useful for reference.


Well...I kind of thought that the export variable was the correct
one to use, and I entered :

  export PRINTER=Photosmart7760

into both my .bashrc and .bash_profile, [...]

This is correct, but keep in mind that this setting will be
a per-user only setting, allthough it should be sufficient.
With

$ echo $PRINTER

you can always check for it.




[...] but no dice.  The printer
neither shows up in Thunderbird or Firefox

I checked in my Firefox (version 2): The printer's name is just
PostScript/Default, and when I click Properties, the following
print command is listed:

lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

In my case, this strangely works, as I don't have $MOZ_PRINTER_NAME
defined anywhere. You can try to simplify the setting to just be

lpr

which should then default to $PRINTER. You can also test the
intended behaviour with an example like

lpr /etc/rc.conf

which should then - without any trouble - output /etc/rc.conf to
the printer.

 From my understanding: When Firefox prints, it sends the data
to lpr per pipe. Checking the printer queue right after ^P will
lead to something like this:

% lpq
Laserjet is ready and printing
Rank   Owner  Job  Files  Total Size
1stpoly   982  (standard input)   484630 bytes

Now as $PRINTER is defined, you don't need -P anymore for all
the lp* tools - only if you want to override the default (e. g.
as I use -PLaserjet-nodup if I intendedly want to force non-duplex
single-sided printing).




My bad.  Adding the above variable to .bashrc does indeed result in the 
desired effect.  For some reason I thought that the printer as named was 
actually going to shop up in the print menu.  Thunderbird and Firefox 
are now printing fine, and I can print any text file simply by using the 
lpr command.


Thank you all.

Cheers...

Rem
___
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


Re: Printing from Thunderbird

2010-08-20 Thread Polytropon
On Fri, 20 Aug 2010 22:15:08 -0700, Rem P Roberti remeg...@comcast.net wrote:
 [...] I can print any text file simply by using the 
 lpr command.

There is more (at least when using apsfilter, but CUPS should be
capable of this, too): You can print ANY file using the lpr command,
e. g. 

lpr somepicture.jpg

or even

lpr myprogram.c

in which the printout may have been added pretty printing with
different styles for keywords, strings, preprocessor directives
and so on.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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