Re: printing to a HP Deskjet 812C printer

2011-07-28 Thread Polytropon
On Wed, 27 Jul 2011 20:05:12 -0500, Antonio Olivares wrote:
 @ all,
 
 I restarted machine and I can print from command line :)
 
 [olivares@quadcore ~/Documents]$ cat Document1.txt |  lpr -P Deskjet
 [olivares@quadcore ~/Documents]$ lpq -a
 Deskjet:
 Deskjet is ready and printing
 Rank   Owner  Job  Files Total Size
 active olivares   2(standard input)  10405 bytes
 
 [olivares@quadcore ~/Documents]$
 
 Now how do I configure apps like Firefox, evince, LibreOffice to print?

No need to do that. Basically, the default options
should be fine. However, _some_ programs require you
to set paper format or margins.

For actual _printing_, there is no need for any
configuration. Programs will address the default
printing queue (lp, or whatever $PRINTER says).

If your printer is Deskjet, add

setenv PRINTER Deskjet

to /etc/csh.cshrc for systemwide use (all users),
or whatever your default shell is. You can also
use login.conf to set this environmental variable.

I suggest to do so because if _not_ done, you'd
have to add -P Deskjet in too many places. :-)



-- 
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 to a HP Deskjet 812C printer

2011-07-28 Thread Antonio Olivares
On Thu, Jul 28, 2011 at 8:15 AM, Polytropon free...@edvax.de wrote:
 On Wed, 27 Jul 2011 20:05:12 -0500, Antonio Olivares wrote:
 @ all,

 I restarted machine and I can print from command line :)

 [olivares@quadcore ~/Documents]$ cat Document1.txt |  lpr -P Deskjet
 [olivares@quadcore ~/Documents]$ lpq -a
 Deskjet:
 Deskjet is ready and printing
 Rank   Owner      Job  Files                                 Total Size
 active olivares   2    (standard input)                      10405 bytes

 [olivares@quadcore ~/Documents]$

 Now how do I configure apps like Firefox, evince, LibreOffice to print?

 No need to do that. Basically, the default options
 should be fine. However, _some_ programs require you
 to set paper format or margins.

 For actual _printing_, there is no need for any
 configuration. Programs will address the default
 printing queue (lp, or whatever $PRINTER says).

 If your printer is Deskjet, add

        setenv PRINTER Deskjet

 to /etc/csh.cshrc for systemwide use (all users),
 or whatever your default shell is. You can also
 use login.conf to set this environmental variable.

 I suggest to do so because if _not_ done, you'd
 have to add -P Deskjet in too many places. :-)



 --

Polytropon,

Thank you for the suggestion.  I am using bash as my shell.  I have a
file ~/.bashrc with command in there and I get:


bash: setenv: command not found



Contents of ~/.bashrc are as follows:
/

[olivares@quadcore /usr/home/olivares]$ cat .bashrc
# User specific environment and startup programs
setxkbmap -option compose:ralt 
setenv PRINTER Deskjet 


*/


Thanks for the suggestion  hope to get it working :)

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


Re: printing to a HP Deskjet 812C printer

2011-07-28 Thread Polytropon
On Thu, 28 Jul 2011 09:57:08 -0500, Antonio Olivares wrote:
 Polytropon,
 
 Thank you for the suggestion.  I am using bash as my shell.  I have a
 file ~/.bashrc with command in there and I get:
 
 
 bash: setenv: command not found
 
 

Of course. :-) The setenv command is specific to the
C shell (FreeBSD's default dialog shell). In bash (and
in sh too), you set an environmental vairable like this:

export PRINTER=Deskjet

This is short for

PRINTER=Deskjet
export PRINTER

See man bash for details: The supplied names are marked
for automatic export to the  environment  of subsequently
executed commands. - and so on.



 Contents of ~/.bashrc are as follows:
 /
 
 [olivares@quadcore /usr/home/olivares]$ cat .bashrc
 # User specific environment and startup programs
 setxkbmap -option compose:ralt 
 setenv PRINTER Deskjet 

I don't think you need to send any of them into
background (), as they should be processed right
away.

For example, your ~/.bashrc could look like this:

setxkbmap -option compose:ralt
export PRINTER=Deskjet

Keep in mind that in _this_ case, $PRINTER is set for
_your_ account only (which should be fine on a single-
user system).

However, if you set it up in /etc/csh.cshrc for system-
wide use, user shells like bash should incorporate the
setting.




-- 
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 to a HP Deskjet 812C printer

2011-07-28 Thread Antonio Olivares
 For example, your ~/.bashrc could look like this:

        setxkbmap -option compose:ralt
        export PRINTER=Deskjet

 Keep in mind that in _this_ case, $PRINTER is set for
 _your_ account only (which should be fine on a single-
 user system).

 However, if you set it up in /etc/csh.cshrc for system-
 wide use, user shells like bash should incorporate the
 setting.




 --

Polytropon,

I have made the changes, but the printer does not print :( from firefox.
I might ``try the /etc/csh.cshrc for system-
wide use'' option :) and get back

/
[olivares@quadcore ~]$ cat .bashrc
# User specific environment and startup programs
setxkbmap -option compose:ralt
export PRINTER=Deskjet

[olivares@quadcore ~]$ echo $PRINTER
Deskjet
/
___
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 to a HP Deskjet 812C printer

2011-07-28 Thread Antonio Olivares
 However, if you set it up in /etc/csh.cshrc for system-
 wide use, user shells like bash should incorporate the
 setting.




 --

 Polytropon,

 I have made the changes, but the printer does not print :( from firefox.
 I might ``try the /etc/csh.cshrc for system-
 wide use'' option :) and get back

 /
 [olivares@quadcore ~]$ cat .bashrc
 # User specific environment and startup programs
 setxkbmap -option compose:ralt
 export PRINTER=Deskjet

 [olivares@quadcore ~]$ echo $PRINTER
 Deskjet
 /


Made the changes with global /etc/csh.cshrc and it did not work :(

[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


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

Thanks for your help  valuable time.

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


Re: printing to a HP Deskjet 812C printer

2011-07-28 Thread Polytropon
On Thu, 28 Jul 2011 10:34:46 -0500, Antonio Olivares wrote:
 I have made the changes, but the printer does not print :(

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.



 from firefox.
 I might ``try the /etc/csh.cshrc for system-
 wide use'' option :) and get back

In Firefox (at least here in the old 2.0.0.20_9,1 versio
as I _hardly_ use it), the printing dialog contains a
way to specify the printer directly (as some other
programs also do, but setting a printer name _for each
application_ just sounds wrong).

Go: File - Print..., then Properties, where you'll
find Print Coommand:

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

So you _could_ do some customization here - but it
sounds no good to do that. :-)


-- 
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 to a HP Deskjet 812C printer

2011-07-28 Thread Polytropon
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, ...
___
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 to a HP Deskjet 812C printer

2011-07-28 Thread Antonio Olivares
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
1stolivares   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


Re: printing to a HP Deskjet 812C printer

2011-07-28 Thread Polytropon
On Thu, 28 Jul 2011 11:06:47 -0500, Antonio Olivares wrote:
 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 :(

Does it have some _overriding_ settings in its
printer dialog?



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

You said that bash's echo $PRINTER would show the
correct name, so things should be fine.



 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
 1stolivares   6/etc/rc.conf  512 bytes
 [olivares@quadcore ~]$

As it should be. The processing from plain text to
whatever you need for the printer is done by the
printer filter (e. g. ghostscript-based, apsfilter,
CUPS, or something custom).



 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 :(

Very strange. But then, Firefox should address the
DEFAULT printer queue, which is the one $PRINTER
points to.

Maybe you can try to print from a different web
browser, e. g. Opera, just for testing?



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

There is a workaround for this, and the emphasize
is on work: You can have Firefox printing to a file
instead to the $PRINTER. This file will be a postscript
file. You can _then_ send this PS file (per lpr file)
to the printer. :-)

But I would really suggest to look into Firefox's 
settings. There must be something strange inside.



-- 
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 to a HP Deskjet 812C printer

2011-07-28 Thread Warren Block

On Wed, 27 Jul 2011, Antonio Olivares wrote:


On Wed, Jul 27, 2011 at 8:05 PM, Antonio Olivares
olivares14...@gmail.com wrote:

@ all,

I restarted machine and I can print from command line :)

[olivares@quadcore ~/Documents]$ cat Document1.txt |  lpr -P Deskjet
[olivares@quadcore ~/Documents]$ lpq -a
Deskjet:
Deskjet is ready and printing
Rank   Owner      Job  Files                                 Total Size
active olivares   2    (standard input)                      10405 bytes

[olivares@quadcore ~/Documents]$

Now how do I configure apps like Firefox, evince, LibreOffice to print?



Ok I have figured it out :)

I need to change `lpr` to `lpr -P Deskjet` and it will print.


lpr uses the lp queue by default.  If that queue is capable of 
accepting PostScript (with a filter, in this case), all that's needed is 
for the application to use lpr.___
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

printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
Dear folks,

I have a working installation 8.2 Release AMD64 and I am trying to
follow a printing howto :

http://www.wonkity.com/~wblock/docs/html/lpdprinting.html

I am copying the settings and I can't print.

quadcore# lpq -a
lp:
Warning: no daemon present
Rank   Owner  Job  Files Total Size
1stroot   0(standard input)  17 bytes
2ndroot   1(standard input)  89 bytes

quadcore# lpd
chkprintcap: Warning: blanks after trailing '\', at line 62 (entry lp)
chkprintcap: Warning: values-line after line with NO trailing '\', at line 63
chkprintcap:2 warnings from skimming /etc/printcap

quadcore# cat /etc/printcap
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14.30.1.6.1 2010/12/21 17:09:25 kensmith Exp $

#
# This enables a simple local raw printer, hooked up to the first
# parallel port.  No kind of filtering is done, so everything you pass
# to the lpr command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have
# to choose different spool directories (the sd capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the apsfilter package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format.  For more information about apsfilter visit
#
#http://www.apsfilter.org/
#
# If you don't have a PostScript(tm) printer, don't panic, but do
# also install the latest ghostscript package for best printer support.
#
# Do also refer to the printing section of the handbook.
#
#   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html
#
# A local copy can be found under
#
#   /usr/share/doc/handbook/handbook.{html,latin1}.
#
# Banner pages are now suppressed by default.  Remove the :sh: capability
# to turn them back on.
#
#lp|local line printer:\
#   :sh:\
#   :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
#
# Sample remote printer.  The physical printer is on machine lphost.
# You can perform any kind of local filtering directly.  If you need
# local filters (e.g. LF - CR-LF conversion for HP printers), create
# a filter script that sends the proper escape sequence to the printer
# and then concatenates stdin to stdout.
#
#remote|sample remote printer:\
#   :sh:\
#   :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
#   :if=/usr/local/libexec/if-script:
#
# Simple Russian printer with hardware CP866 character set, output filter
# used for KOI8-R - CP866 conversion
#
#lp|Russian local line printer:\
#   :sh:of=/usr/libexec/lpr/ru/koi2alt:\
#   :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:

# add for HP Deskjet 812C
lp:\
:lp=/dev/ulpt0:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/lp:\
:if=/usr/local/libexec/psif:\
:lf=/var/log/lpd-errs:

quadcore# cat /usr/local/libexec/ps2pcl
#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=deskjet -sOUTFILE=- -

quadcore# ls -l /usr/local/libexec/ps2pcl
-rwxr-xr-x  1 root  wheel  81 Jul 27 14:18 /usr/local/libexec/ps2pcl
quadcore# cat /usr/local/libexec/psif
#!/bin/sh
IFS= read -r first_line
first_two_chars=`expr $first_line : '\(..\)'`

case first_two_chars in
%!|\033%%)
# %! or ESC% : Postscript job, print it.
echo $first_line  cat  printf \004  exit 0
exit 2
;;
*)
# otherwise, format with enscript
( echo $first_line; cat ) \
 | /usr/local/bin/enscript -o -  printf \004  exit 0
exit 2
;;
esac

quadcore# ls -l /usr/local/libexec/psif
-rwxr-xr-x  1 root  wheel  378 Jul 27 14:26 /usr/local/libexec/psif

I modified the -sDEVICE to  -sDEVICE=deskjet  since the machine is an
Desjet.  The printer is on a USB and it is connected.  I have tried to
change

/dev/ulpt0 and /dev/unlpt0 and still get the same thing.  Any
pointers/advice/hints?

Thanks in Advance,

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 2:51 PM, Antonio Olivares
olivares14...@gmail.com wrote:
 Dear folks,

 I have a working installation 8.2 Release AMD64 and I am trying to
 follow a printing howto :

 http://www.wonkity.com/~wblock/docs/html/lpdprinting.html

 I am copying the settings and I can't print.

 quadcore# lpq -a
 lp:
 Warning: no daemon present
 Rank   Owner      Job  Files                                 Total Size
 1st    root       0    (standard input)                      17 bytes
 2nd    root       1    (standard input)                      89 bytes

 quadcore# lpd
 chkprintcap: Warning: blanks after trailing '\', at line 62 (entry lp)
 chkprintcap: Warning: values-line after line with NO trailing '\', at line 63
 chkprintcap:    2 warnings from skimming /etc/printcap

 quadcore# cat /etc/printcap
 #       @(#)printcap    5.3 (Berkeley) 6/30/90
 # $FreeBSD: src/etc/printcap,v 1.14.30.1.6.1 2010/12/21 17:09:25 kensmith Exp 
 $

 #
 # This enables a simple local raw printer, hooked up to the first
 # parallel port.  No kind of filtering is done, so everything you pass
 # to the lpr command will be printed unmodified.
 #
 # Remember, for further print queues you're going to add, you have
 # to choose different spool directories (the sd capability below),
 # otherwise you will greatly confuse lpd.
 #
 # For some advanced printing, have a look at the apsfilter package.
 # It plugs into the lpd system, allowing you to print a variety of
 # different file types by converting everything to PostScript(tm)
 # format.  For more information about apsfilter visit
 #
 #            http://www.apsfilter.org/
 #
 # If you don't have a PostScript(tm) printer, don't panic, but do
 # also install the latest ghostscript package for best printer support.
 #
 # Do also refer to the printing section of the handbook.
 #
 #       
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html
 #
 # A local copy can be found under
 #
 #       /usr/share/doc/handbook/handbook.{html,latin1}.
 #
 # Banner pages are now suppressed by default.  Remove the :sh: capability
 # to turn them back on.
 #
 #lp|local line printer:\
 #       :sh:\
 #       :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
 #
 # Sample remote printer.  The physical printer is on machine lphost.
 # You can perform any kind of local filtering directly.  If you need
 # local filters (e.g. LF - CR-LF conversion for HP printers), create
 # a filter script that sends the proper escape sequence to the printer
 # and then concatenates stdin to stdout.
 #
 #remote|sample remote printer:\
 #       :sh:\
 #       :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
 #       :if=/usr/local/libexec/if-script:
 #
 # Simple Russian printer with hardware CP866 character set, output filter
 # used for KOI8-R - CP866 conversion
 #
 #lp|Russian local line printer:\
 #       :sh:of=/usr/libexec/lpr/ru/koi2alt:\
 #       :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:

 # add for HP Deskjet 812C
 lp:\
        :lp=/dev/ulpt0:\
        :sh:\
        :mx#0:\
        :sd=/var/spool/lpd/lp:\
        :if=/usr/local/libexec/psif:\
        :lf=/var/log/lpd-errs:

 quadcore# cat /usr/local/libexec/ps2pcl
 #!/bin/sh
 /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=deskjet -sOUTFILE=- -

 quadcore# ls -l /usr/local/libexec/ps2pcl
 -rwxr-xr-x  1 root  wheel  81 Jul 27 14:18 /usr/local/libexec/ps2pcl
 quadcore# cat /usr/local/libexec/psif
 #!/bin/sh
 IFS= read -r first_line
 first_two_chars=`expr $first_line : '\(..\)'`

 case first_two_chars in
 %!|\033%%)
        # %! or ESC% : Postscript job, print it.
        echo $first_line  cat  printf \004  exit 0
        exit 2
        ;;
 *)
        # otherwise, format with enscript
        ( echo $first_line; cat ) \
         | /usr/local/bin/enscript -o -  printf \004  exit 0
        exit 2
        ;;
 esac

 quadcore# ls -l /usr/local/libexec/psif
 -rwxr-xr-x  1 root  wheel  378 Jul 27 14:26 /usr/local/libexec/psif

 I modified the -sDEVICE to  -sDEVICE=deskjet  since the machine is an
 Desjet.  The printer is on a USB and it is connected.  I have tried to
 change

 /dev/ulpt0 and /dev/unlpt0 and still get the same thing.  Any
 pointers/advice/hints?

 Thanks in Advance,

 Antonio


I have found a page in OpenPrinting:

http://www.openprinting.org/printer/HP/HP-DeskJet_812C

But the device /dev/ulpt0 and/or /dev/unlpt0 are not found :(

quadcore# ls /dev/ulpt0
ls: /dev/ulpt0: No such file or directory
quadcore# ls /dev/unlpt0
ls: /dev/unlpt0: No such file or directory

I need to add them somewhere in /etc/rc.conf, or in /boot/loader.conf ?

Thanks,

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Warren Block

On Wed, 27 Jul 2011, Antonio Olivares wrote:


chkprintcap: Warning: blanks after trailing '\', at line 62 (entry lp)
chkprintcap: Warning: values-line after line with NO trailing '\', at line 63
chkprintcap:2 warnings from skimming /etc/printcap


This needs to be fixed.  The entry is broken or at least incomplete. 
Line 62 has spaces or tabs after the backslash at the end.


A Deskjet 812C should be a parallel printer, with device /dev/lpt0.  Are 
you using a USB to parallel adapter?

___
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 to a HP Deskjet 812C printer

2011-07-27 Thread Warren Block

On Wed, 27 Jul 2011, Warren Block wrote:

A Deskjet 812C should be a parallel printer, with device /dev/lpt0.  Are you 
using a USB to parallel adapter?


Cancel that, an 812C has both parallel and USB.  Make sure only the USB 
cable is connected, I suspect those printers don't have auto port 
switching.  When the printer is connected and powered on, /dev/ulpt0 and 
/dev/unlpt0 should appear.

___
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 to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 4:23 PM, Warren Block wbl...@wonkity.com wrote:
 On Wed, 27 Jul 2011, Warren Block wrote:

 A Deskjet 812C should be a parallel printer, with device /dev/lpt0.  Are
 you using a USB to parallel adapter?

 Cancel that, an 812C has both parallel and USB.  Make sure only the USB
 cable is connected, I suspect those printers don't have auto port switching.
  When the printer is connected and powered on, /dev/ulpt0 and /dev/unlpt0
 should appear.


I disconnected the usb cable and reconnected it and now they appear:

quadcore# lpq -a
lp:
Warning: no daemon present
Rank   Owner  Job  Files Total Size
1stroot   0(standard input)  17 bytes
2ndroot   1(standard input)  89 bytes

quadcore# ls /dev/unlpt0
ls: /dev/unlpt0: No such file or directory
quadcore# ls /dev/ulpt0
ls: /dev/ulpt0: No such file or directory

reconnected it :

quadcore# ls /dev/ulpt0
/dev/ulpt0
quadcore# ls -l /dev/ulpt0
crw-r--r--  1 root  operator0, 148 Jul 27 16:27 /dev/ulpt0


quadcore# ls -l /dev/unlpt0
crw-r--r--  1 root  operator0, 149 Jul 27 16:27 /dev/unlpt0

I changed /etc/printcap, and two blank pages came out but blank :(

Thanks,

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Warren Block

On Wed, 27 Jul 2011, Antonio Olivares wrote:


I changed /etc/printcap, and two blank pages came out but blank :(


Okay, it's progress.  And good news, that printer understands plain 
ASCII and PCL3.


Make certain lpd is running (pgrep lpd), then try the test shown in the 
article:


  % printf “This is a test\r\n\f” | lpr___
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 to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 5:11 PM, Warren Block wbl...@wonkity.com wrote:
 On Wed, 27 Jul 2011, Antonio Olivares wrote:

 I changed /etc/printcap, and two blank pages came out but blank :(

 Okay, it's progress.  And good news, that printer understands plain ASCII
 and PCL3.

 Make certain lpd is running (pgrep lpd), then try the test shown in the
 article:

  % printf “This is a test\r\n\f” | lpr

Warren,

quadcore# ls -l /dev/ulpt0
crw-r--r--  1 root  operator0, 148 Jul 27 16:29 /dev/ulpt0
quadcore# ls -l /dev/unlpt0
crw-r--r--  1 root  operator0, 149 Jul 27 16:27 /dev/unlpt0
quadcore# pgrep lpd
43017
quadcore# printf This is a test\r\n\f | lpr

The printer has not printed :(

Thanks,

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Ross
It requires CUPS and replaces system lpr. Here's an example on setting
up HPLIP: http://daemon-notes.com/articles/install/hplip

On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:07 PM, Ross basarev...@gmail.com wrote:
 Why you do not use HPLIP? Your printer is supported.

 Does lpd/lpr use this? or it requires CUPS?

 Thanks,

 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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 5:43 PM, Ross basarev...@gmail.com wrote:
 It requires CUPS and replaces system lpr. Here's an example on setting
 up HPLIP: http://daemon-notes.com/articles/install/hplip

 On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:07 PM, Ross basarev...@gmail.com wrote:
 Why you do not use HPLIP? Your printer is supported.

 Does lpd/lpr use this? or it requires CUPS?

 Thanks,

 Antonio



Thanks Ross,

But I have to compile/recompile kernel just to get it working?

I'll think about it :?
Howto you have provided is detailed and I cannot complain :(

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Ross
On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:43 PM, Ross basarev...@gmail.com wrote:
 It requires CUPS and replaces system lpr. Here's an example on setting
 up HPLIP: http://daemon-notes.com/articles/install/hplip

 On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:07 PM, Ross basarev...@gmail.com wrote:
 Why you do not use HPLIP? Your printer is supported.

 Does lpd/lpr use this? or it requires CUPS?

 Thanks,

 Antonio



 Thanks Ross,

 But I have to compile/recompile kernel just to get it working?

 I'll think about it :?
 Howto you have provided is detailed and I cannot complain :(

 Regards,

 Antonio


Well, you had problems with ulpt so maybe removing it which is
required for HPLIP is a solution. Sorry if recompiling the kernel is
not an option for you. Otherwise it just works.
___
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 to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 6:03 PM, Ross basarev...@gmail.com wrote:
 On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:43 PM, Ross basarev...@gmail.com wrote:
 It requires CUPS and replaces system lpr. Here's an example on setting
 up HPLIP: http://daemon-notes.com/articles/install/hplip

 On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:07 PM, Ross basarev...@gmail.com wrote:
 Why you do not use HPLIP? Your printer is supported.

 Does lpd/lpr use this? or it requires CUPS?

 Thanks,

 Antonio



 Thanks Ross,

 But I have to compile/recompile kernel just to get it working?

 I'll think about it :?
 Howto you have provided is detailed and I cannot complain :(

 Regards,

 Antonio


 Well, you had problems with ulpt so maybe removing it which is
 required for HPLIP is a solution. Sorry if recompiling the kernel is
 not an option for you. Otherwise it just works.


Ross,

I am afraid to screw up and for the first time, I can say that I have
updated FreeBSD successfully without hiccups and I have not compiled
the kernel on FreeBSD :(, I have done it on linux systems many times,
but have not here, and I would hate to lose all the work just to get
the printer working.

I will be patient and try some things out then report back.  I
appreciate the help and if I can't find a solution, I will take the
plunge :) and hopefully not fail.

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Ross
On Thu, Jul 28, 2011 at 2:12 AM, Antonio Olivares
olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 6:03 PM, Ross basarev...@gmail.com wrote:
 On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:43 PM, Ross basarev...@gmail.com wrote:
 It requires CUPS and replaces system lpr. Here's an example on setting
 up HPLIP: http://daemon-notes.com/articles/install/hplip

 On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:07 PM, Ross basarev...@gmail.com wrote:
 Why you do not use HPLIP? Your printer is supported.

 Does lpd/lpr use this? or it requires CUPS?

 Thanks,

 Antonio



 Thanks Ross,

 But I have to compile/recompile kernel just to get it working?

 I'll think about it :?
 Howto you have provided is detailed and I cannot complain :(

 Regards,

 Antonio


 Well, you had problems with ulpt so maybe removing it which is
 required for HPLIP is a solution. Sorry if recompiling the kernel is
 not an option for you. Otherwise it just works.


 Ross,

 I am afraid to screw up and for the first time, I can say that I have
 updated FreeBSD successfully without hiccups and I have not compiled
 the kernel on FreeBSD :(, I have done it on linux systems many times,
 but have not here, and I would hate to lose all the work just to get
 the printer working.

 I will be patient and try some things out then report back.  I
 appreciate the help and if I can't find a solution, I will take the
 plunge :) and hopefully not fail.

 Regards,

 Antonio


If you do decide to take this route, it's not that hard to recompile a kernel.

# csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile

Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
The file could be just the following (just the GENERIC kernel,
slightly modified):
--- cut ---
include GENERIC

ident   COFFIN

# Remove legacy support
nocpu   I486_CPU
nocpu   I586_CPU

# HPLIP can't work whithout this
nodeviceulpt
--- cut ---

# cd /usr/src
# make buildkernel KERNCONF=COFFIN
# make installkernel KERNCONF=COFFIN
# reboot

That's it.
___
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 to a HP Deskjet 812C printer

2011-07-27 Thread Ross
On Thu, Jul 28, 2011 at 2:29 AM, Ross basarev...@gmail.com wrote:
 On Thu, Jul 28, 2011 at 2:12 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 6:03 PM, Ross basarev...@gmail.com wrote:
 On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:43 PM, Ross basarev...@gmail.com wrote:
 It requires CUPS and replaces system lpr. Here's an example on setting
 up HPLIP: http://daemon-notes.com/articles/install/hplip

 On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
 olivares14...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 5:07 PM, Ross basarev...@gmail.com wrote:
 Why you do not use HPLIP? Your printer is supported.

 Does lpd/lpr use this? or it requires CUPS?

 Thanks,

 Antonio



 Thanks Ross,

 But I have to compile/recompile kernel just to get it working?

 I'll think about it :?
 Howto you have provided is detailed and I cannot complain :(

 Regards,

 Antonio


 Well, you had problems with ulpt so maybe removing it which is
 required for HPLIP is a solution. Sorry if recompiling the kernel is
 not an option for you. Otherwise it just works.


 Ross,

 I am afraid to screw up and for the first time, I can say that I have
 updated FreeBSD successfully without hiccups and I have not compiled
 the kernel on FreeBSD :(, I have done it on linux systems many times,
 but have not here, and I would hate to lose all the work just to get
 the printer working.

 I will be patient and try some things out then report back.  I
 appreciate the help and if I can't find a solution, I will take the
 plunge :) and hopefully not fail.

 Regards,

 Antonio


 If you do decide to take this route, it's not that hard to recompile a kernel.

 # csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile

 Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
 on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
 The file could be just the following (just the GENERIC kernel,
 slightly modified):
 --- cut ---
 include         GENERIC

 ident           COFFIN

 # Remove legacy support
 nocpu           I486_CPU
 nocpu           I586_CPU

 # HPLIP can't work whithout this
 nodevice        ulpt
 --- cut ---

 # cd /usr/src
 # make buildkernel KERNCONF=COFFIN
 # make installkernel KERNCONF=COFFIN
 # reboot

 That's it.


Although I should add that you probably will need to also rebuild the
world if you update your sources with csup. Well, don't run csup, use
the sources you already have in /usr/src.
___
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


SOLVED! Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
 I will be patient and try some things out then report back.  I
 appreciate the help and if I can't find a solution, I will take the
 plunge :) and hopefully not fail.

 Regards,

 Antonio


 If you do decide to take this route, it's not that hard to recompile a kernel.

 # csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile

 Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
 on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
 The file could be just the following (just the GENERIC kernel,
 slightly modified):
 --- cut ---
 include         GENERIC

 ident           COFFIN

 # Remove legacy support
 nocpu           I486_CPU
 nocpu           I586_CPU

 # HPLIP can't work whithout this
 nodevice        ulpt
 --- cut ---

 # cd /usr/src
 # make buildkernel KERNCONF=COFFIN
 # make installkernel KERNCONF=COFFIN
 # reboot

 That's it.


Thank you very much Ross  Warren.  You guided me in the right
direction.  To solve the printing issue I installed apsfilter and
chose the hpij drivers, the printer appeared and I selected it.  I
then configured it and voila it worked :)

I found the following page

http://www.freebsdfoo.com/bsd-print-foo.txt

and it helped me.  I is an old printer my mom got for me in a yard
sale three years ago and thankfully to you guys, with your
suggestions/advice I got it to work with FreeBSD amd64 8.2!

Regards,

Antonio

@Ross,
I might take the advice of compiling the kernel as I am heavily
looking to create a livecd/livedvd of FreeBSD.  I liked freesbie,
installed it port, but don't know how to use it/create it.  I like
Frenzy but can't find the SDK, I will create a new thread on this
later.  Thanks again.
___
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 to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
 If you do decide to take this route, it's not that hard to recompile a 
 kernel.

 # csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile

 Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
 on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
 The file could be just the following (just the GENERIC kernel,
 slightly modified):
 --- cut ---
 include         GENERIC

 ident           COFFIN

 # Remove legacy support
 nocpu           I486_CPU
 nocpu           I586_CPU

 # HPLIP can't work whithout this
 nodevice        ulpt
 --- cut ---

 # cd /usr/src
 # make buildkernel KERNCONF=COFFIN
 # make installkernel KERNCONF=COFFIN
 # reboot

 That's it.


 Although I should add that you probably will need to also rebuild the
 world if you update your sources with csup. Well, don't run csup, use
 the sources you already have in /usr/src.


I guess I got overly excited and when I try to print from firefox,
nothing happens :(

I tried to print from command line and I get:

[olivares@quadcore ~/Documents]$ lpr -P ijs/DESKJET_812 freebsd-printing1.txt
[olivares@quadcore ~/Documents]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
/var/mail/olivares: 1 message 1 new
N  1 dae...@quadcore.home  Wed Jul 27 19:20  25/884   apsfilter: can't find

Message 1:
From dae...@quadcore.home Wed Jul 27 19:20:47 2011
Date: Wed, 27 Jul 2011 19:20:46 -0500 (CDT)
From: Owner of many system processes dae...@quadcore.home
To: r...@quadcore.home
Cc: oliva...@quadcore.home
Subject: apsfilter: can't find configuration

apsfilter fatal error: can't find configuration

The configuration file /usr/local/etc/apsfilter/DESKJET_812/apsfilterrc
is missing. Please run SETUP.


-- apsfilter, your lpd input filter


At EOF
 q
Saved 1 message in mbox


I did not name the printer, went back to run ./SETUP and named it, I
also checked
===

*Ok, now that THAT is over, lets check the perms on the lpd dir:

---
ptah# ls -ald /var/spool/lpd
drwxr-xr-x  2 root  daemon  512 Jan 28 05:10 /var/spool/lpd
ptah# chmod 777 /var/spool/lpd
ptah# ls -ald /var/spool/lpd
drwxrwxrwx  2 root  daemon  512 Jan 28 05:10 /var/spool/lpd
---

*...now everyone can write to it.

*So I went into /usr/local/etc/rc.d and created a printer.sh
 file with the following contents:

---
#!/bin/sh

[ -x /usr/sbin/lpd]  /usr/sbin/lpd  echo -n  lpd
---

*I started it with just a:

---
/usr/sbin/lpd  echo -n  lpd
---

*...real quick and then checked to see if it was running, and
 it was!

*lpc status all - shows if the printer is recognized and up:

---
freak:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
---

*So yay!  He's up and going.  Now to print to him I can just do:

---
lpr -P freak whatever.txt
---

*And it should print just fine.

*I added the following lines in /usr/local/etc/smb.conf

---

==

I have not done this:
---
#!/bin/sh

[ -x /usr/sbin/lpd]  /usr/sbin/lpd  echo -n  lpd
---

does having lpd_enable=YES in /etc/rc.conf do the same?

I modified permissions, but printer is not printing via firefox or
command line :(


Here's some output of what I got when I ran ./SETUP

Please enter a printer queue name for printer 'ijs/DESKJET_812'.
The default name is 'aps1'.

Your choice: ijs/DESKJET_812
** creating printcap entry for printer ijs/DESKJET_812...
   creating spooldir ...
   remember SETUP settings in printers apsfilterrc file...
** done.

[ press RETURN to continue ]











==
  A P S F I L T E R   S E T U P   -- MAIN MENUE --
==

(D) Available Device Drivers in your gs binary
(R) Read Ghostscript driver documentation(devices.txt)

(1) Printer Driver Selection[ijs/DESKJET_812]
(2) Interface Setup [parallel]
(3) Paper Format[letter]
(4) Printing Quality[draft]
(5) Color Mode  [full]
(6) Print Resolution in dots per inch [300x300]
(7) Default Printing Method [auto]

(T) Print Test Page
(V) View performance log (times of print attempts)

(A) Abort installation (don't do anything)
(I) == Install printer with values shown above - repeat this
step for installing multiple printers
(Q) == Finish installation

Your choice? q


Finished creating/updating /etc/printcap and /usr/local/etc/apsfilter/ ...


To let the printer scheduler know of the new printers, it has to be
restarted. Be sure that no print 

Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
@ all,

I restarted machine and I can print from command line :)

[olivares@quadcore ~/Documents]$ cat Document1.txt |  lpr -P Deskjet
[olivares@quadcore ~/Documents]$ lpq -a
Deskjet:
Deskjet is ready and printing
Rank   Owner  Job  Files Total Size
active olivares   2(standard input)  10405 bytes

[olivares@quadcore ~/Documents]$

Now how do I configure apps like Firefox, evince, LibreOffice to print?

Thanks,

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 8:05 PM, Antonio Olivares
olivares14...@gmail.com wrote:
 @ all,

 I restarted machine and I can print from command line :)

 [olivares@quadcore ~/Documents]$ cat Document1.txt |  lpr -P Deskjet
 [olivares@quadcore ~/Documents]$ lpq -a
 Deskjet:
 Deskjet is ready and printing
 Rank   Owner      Job  Files                                 Total Size
 active olivares   2    (standard input)                      10405 bytes

 [olivares@quadcore ~/Documents]$

 Now how do I configure apps like Firefox, evince, LibreOffice to print?

 Thanks,

 Antonio


Ok I have figured it out :)

I need to change `lpr` to `lpr -P Deskjet` and it will print.

Thanks to all who have advised/helped me with this issue.

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