Re: [Samba] HP Deskjet drivers, Samba and Cups

2003-02-12 Thread Nick Gale
Thanks John - it works!

I actually did not have etc/cups/mime.conf. I had two files
etc/cups/mine.types and etc/cups/mime.convs but I did the same to both files
(uncomment the lines) and this worked fine!

The line was already uncommented in etc/mime.types.

Thanks once again!

Nick

- Original Message -
From: John H Terpstra [EMAIL PROTECTED]
To: Nick Gale [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 8:54 AM
Subject: Re: [Samba] HP Deskjet drivers, Samba and Cups


 On Tue, 11 Feb 2003, Nick Gale wrote:

  Thanks for this, unfortunately I've tried this and it makes no
difference.
 
  Below is from Cups error log, message is the same whether printer is RAW
or
  set up as a Deskjet. Please note that the same problem occurs when I
  configure the printers via LPRng or Webmin. Again it doesn't matter
whether
  its RAW or not.
 
  Any other clues?

 Yep! Read the CUPS Printing HOWTO! I have attached it for your reference.

 From it you will find the need to change two files:

 /etc/cups/mime.types and /etc/cups/mime.convs. In both you need to
 uncomment the lines that have:

 application/octet-stream

 in them.

 In the case of my system:

 In /etc/mime.types:

 
 #
 # Raw print file support...
 #
 # Uncomment the following type and the application/octet-stream
 # filter line in mime.convs to allow raw file printing without the
 # -oraw option.
 #

 application/octet-stream



 And in /etc/cups/mime.conv:

 
 #
 # Raw filter...
 #
 # Uncomment the following filter and the application/octet-stream type
 # in mime.types to allow printing of arbitrary files without the -oraw
 # option.
 #

 application/octet-streamapplication/vnd.cups-raw0   -


 That should do it for you.

 - John T.



 
  Thanks
 
  Nick Gale
 
  I [11/Feb/2003:08:50:02 +] Started
/usr/lib/cups/cgi-bin/printers.cgi
  (pid=1778)
  I [11/Feb/2003:08:50:07 +] Started
/usr/lib/cups/cgi-bin/printers.cgi
  (pid=1784)
  E [11/Feb/2003:08:50:13 +] print_job: Unsupported format
  'application/octet-stream'!
  I [11/Feb/2003:08:50:13 +] Hint: Do you have the raw file printing
rules
  enabled?
 
 
  - Original Message -
  From: John H Terpstra [EMAIL PROTECTED]
  To: Nick Gale [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Tuesday, February 11, 2003 12:00 AM
  Subject: Re: [Samba] HP Deskjet drivers, Samba and Cups
 
 
   On Mon, 10 Feb 2003, Nick Gale wrote:
  
I have Samba 2.2.7 running on Redhat 8 (fully updated). I have two
  printers
set up - a laser and a Deskjet 920C both connected to the Redhat
server
  via
USB cables. Printing is managed using CUPS although I get the same
  problem
with LPR and Webmin configured printers. The laser works fine, the
  deskjet
doesn't. The deskjet works with a generic windows HP Deskjet or HP
  Deskjet
plus driver in black and white but if I use the actual 920C driver
(Or
  any
other DJ ***C driver for that matter) the print jobs appear to spool
but
never arrive at the printer. You see a file being generated in the
Samba
  and
Cups spool directory but in the Cups spool directory thay appear
briefly
  and
then vanish, for jobs that do make it to the printer the file is
present
  for
longer as the printer loads the file.
   
I can only assume this is a problem with Samba or Cups with HP
desklet
drivers? Has anyone else seen this? Any Idea?
  
   Configure a RAW CUPS printer for the HP9x0C if you install the HP9x0C
   driver on Windows.
  
   If you want to install the printer in CUPS with the CUPS driver for
the
   HP9xC, then install you Windows printers as Postscript printers and
let
   CUPS convert from postscript to HP DJ format.
  
   Both the above work for me. I have set up several sites with HP940C
   printers and my own network has HP PhotoSmart P1000. All work find
from
   both Linux and Windows. For Windows I prefer to print to a RAW CUPS
   printer and use the HP940C driver on each MS Windwos machine. Your
mileage
   may bary!
  
   Best advice is to read the CUPS Printing HOWTO that will be in
   Samba-3.0.0.
  
   - John T.
   --
   John H Terpstra
   Email: [EMAIL PROTECTED]
 

 --
 John H Terpstra
 Email: [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] HP Deskjet drivers, Samba and Cups

2003-02-11 Thread Nick Gale
Thanks for this, unfortunately I've tried this and it makes no difference.

Below is from Cups error log, message is the same whether printer is RAW or
set up as a Deskjet. Please note that the same problem occurs when I
configure the printers via LPRng or Webmin. Again it doesn't matter whether
its RAW or not.

Any other clues?

Thanks

Nick Gale

I [11/Feb/2003:08:50:02 +] Started /usr/lib/cups/cgi-bin/printers.cgi
(pid=1778)
I [11/Feb/2003:08:50:07 +] Started /usr/lib/cups/cgi-bin/printers.cgi
(pid=1784)
E [11/Feb/2003:08:50:13 +] print_job: Unsupported format
'application/octet-stream'!
I [11/Feb/2003:08:50:13 +] Hint: Do you have the raw file printing rules
enabled?


- Original Message -
From: John H Terpstra [EMAIL PROTECTED]
To: Nick Gale [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 12:00 AM
Subject: Re: [Samba] HP Deskjet drivers, Samba and Cups


 On Mon, 10 Feb 2003, Nick Gale wrote:

  I have Samba 2.2.7 running on Redhat 8 (fully updated). I have two
printers
  set up - a laser and a Deskjet 920C both connected to the Redhat server
via
  USB cables. Printing is managed using CUPS although I get the same
problem
  with LPR and Webmin configured printers. The laser works fine, the
deskjet
  doesn't. The deskjet works with a generic windows HP Deskjet or HP
Deskjet
  plus driver in black and white but if I use the actual 920C driver (Or
any
  other DJ ***C driver for that matter) the print jobs appear to spool but
  never arrive at the printer. You see a file being generated in the Samba
and
  Cups spool directory but in the Cups spool directory thay appear briefly
and
  then vanish, for jobs that do make it to the printer the file is present
for
  longer as the printer loads the file.
 
  I can only assume this is a problem with Samba or Cups with HP desklet
  drivers? Has anyone else seen this? Any Idea?

 Configure a RAW CUPS printer for the HP9x0C if you install the HP9x0C
 driver on Windows.

 If you want to install the printer in CUPS with the CUPS driver for the
 HP9xC, then install you Windows printers as Postscript printers and let
 CUPS convert from postscript to HP DJ format.

 Both the above work for me. I have set up several sites with HP940C
 printers and my own network has HP PhotoSmart P1000. All work find from
 both Linux and Windows. For Windows I prefer to print to a RAW CUPS
 printer and use the HP940C driver on each MS Windwos machine. Your mileage
 may bary!

 Best advice is to read the CUPS Printing HOWTO that will be in
 Samba-3.0.0.

 - John T.
 --
 John H Terpstra
 Email: [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] HP Deskjet drivers, Samba and Cups

2003-02-11 Thread Sandro Hannemann
I had similar problems using HP Deskjet 970CXi

I also tried to setup a printing server using Samba 2.2.7a and Cups 1.1.18.
From linux clients I had no problems using the foomatic driver.
In order to be able to access the printer from a W2K-client I added to 
smb.conf: 

use client driver = yes

( that driver download thing, seamed to be kind of overkill for one Windows 
client)
I did that raw-printer setup thing under cups, and got the same result:
something like format-not-supported appeared in the log.smbd
Then I tried to setup the printing command by adding

print command = lpr -P %p %s -oraw -s

to the smb.conf.
Still the same
Then I read the manualpages of smb.conf
there it is written, that using printcap = cups disables any manually set 
printing commands, so I set

printing = BSD
printcap file = /etc/samba/printcap

in the smb.conf,
while /etc/samba/printcap
contains the manually edited line

hp|HP DeskJet 970CXi via Samba

finally the cups-system has now the printer queue hp using that foomatic 
driver (which is useful for all linux clients). The printing option is set to 
BSD, but still it prints to the hp-queue of cups, so it's finally working 
properly, but its not that straight forward, as the guys suggest in the 
documentation, I'd say.

Sandro

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] HP Deskjet drivers, Samba and Cups

2003-02-11 Thread John H Terpstra
On Tue, 11 Feb 2003, Nick Gale wrote:

 Thanks for this, unfortunately I've tried this and it makes no difference.

 Below is from Cups error log, message is the same whether printer is RAW or
 set up as a Deskjet. Please note that the same problem occurs when I
 configure the printers via LPRng or Webmin. Again it doesn't matter whether
 its RAW or not.

 Any other clues?

Yep! Read the CUPS Printing HOWTO! I have attached it for your reference.

From it you will find the need to change two files:

/etc/cups/mime.types and /etc/cups/mime.convs. In both you need to
uncomment the lines that have:

application/octet-stream

in them.

In the case of my system:

In /etc/mime.types:


#
# Raw print file support...
#
# Uncomment the following type and the application/octet-stream
# filter line in mime.convs to allow raw file printing without the
# -oraw option.
#

application/octet-stream



And in /etc/cups/mime.conv:


#
# Raw filter...
#
# Uncomment the following filter and the application/octet-stream type
# in mime.types to allow printing of arbitrary files without the -oraw
# option.
#

application/octet-streamapplication/vnd.cups-raw0   -


That should do it for you.

- John T.




 Thanks

 Nick Gale

 I [11/Feb/2003:08:50:02 +] Started /usr/lib/cups/cgi-bin/printers.cgi
 (pid=1778)
 I [11/Feb/2003:08:50:07 +] Started /usr/lib/cups/cgi-bin/printers.cgi
 (pid=1784)
 E [11/Feb/2003:08:50:13 +] print_job: Unsupported format
 'application/octet-stream'!
 I [11/Feb/2003:08:50:13 +] Hint: Do you have the raw file printing rules
 enabled?


 - Original Message -
 From: John H Terpstra [EMAIL PROTECTED]
 To: Nick Gale [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, February 11, 2003 12:00 AM
 Subject: Re: [Samba] HP Deskjet drivers, Samba and Cups


  On Mon, 10 Feb 2003, Nick Gale wrote:
 
   I have Samba 2.2.7 running on Redhat 8 (fully updated). I have two
 printers
   set up - a laser and a Deskjet 920C both connected to the Redhat server
 via
   USB cables. Printing is managed using CUPS although I get the same
 problem
   with LPR and Webmin configured printers. The laser works fine, the
 deskjet
   doesn't. The deskjet works with a generic windows HP Deskjet or HP
 Deskjet
   plus driver in black and white but if I use the actual 920C driver (Or
 any
   other DJ ***C driver for that matter) the print jobs appear to spool but
   never arrive at the printer. You see a file being generated in the Samba
 and
   Cups spool directory but in the Cups spool directory thay appear briefly
 and
   then vanish, for jobs that do make it to the printer the file is present
 for
   longer as the printer loads the file.
  
   I can only assume this is a problem with Samba or Cups with HP desklet
   drivers? Has anyone else seen this? Any Idea?
 
  Configure a RAW CUPS printer for the HP9x0C if you install the HP9x0C
  driver on Windows.
 
  If you want to install the printer in CUPS with the CUPS driver for the
  HP9xC, then install you Windows printers as Postscript printers and let
  CUPS convert from postscript to HP DJ format.
 
  Both the above work for me. I have set up several sites with HP940C
  printers and my own network has HP PhotoSmart P1000. All work find from
  both Linux and Windows. For Windows I prefer to print to a RAW CUPS
  printer and use the HP940C driver on each MS Windwos machine. Your mileage
  may bary!
 
  Best advice is to read the CUPS Printing HOWTO that will be in
  Samba-3.0.0.
 
  - John T.
  --
  John H Terpstra
  Email: [EMAIL PROTECTED]


-- 
John H Terpstra
Email: [EMAIL PROTECTED]
There are Six (6) Extracts here from mail in the Samba Mailing List.
The key contribution here is from Kurt Pfeifle.

I added them to this repository in the hope that someone would find the information 
helpful.

John T. [EMAIL PROTECTED]

==
 EXTANT 1 
==
Subject: Print Filtering Mechanism Explained


Date: Sun, 22 Sep 2002 15:38:02 +0200
From: Kurt Pfeifle [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Organization: Danka Deutschland GmbH
To: [EMAIL PROTECTED]
Subject: CUPS filtering mechanism explained, was: [cups raw mode, was Re: [Samba] 
unlink data file in cups_job_submit]

Paul Janzen wrote on Samba digest:

  Message: 7
  To: Gerald Carter [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  From: Paul Janzen [EMAIL PROTECTED]
  Subject: cups raw mode, was Re: [Samba] unlink data file in cups_job_submit
  Date: 21 Sep 2002 12:09:23 -0700
 
 
  Gerald Carter [EMAIL PROTECTED] writes:
 
Looks right to me  [:-)] Applying it now.  Thanks.  I've been meaning to
track this one

Re: [Samba] HP Deskjet drivers, Samba and Cups

2003-02-10 Thread John H Terpstra
On Mon, 10 Feb 2003, Nick Gale wrote:

 I have Samba 2.2.7 running on Redhat 8 (fully updated). I have two printers
 set up - a laser and a Deskjet 920C both connected to the Redhat server via
 USB cables. Printing is managed using CUPS although I get the same problem
 with LPR and Webmin configured printers. The laser works fine, the deskjet
 doesn't. The deskjet works with a generic windows HP Deskjet or HP Deskjet
 plus driver in black and white but if I use the actual 920C driver (Or any
 other DJ ***C driver for that matter) the print jobs appear to spool but
 never arrive at the printer. You see a file being generated in the Samba and
 Cups spool directory but in the Cups spool directory thay appear briefly and
 then vanish, for jobs that do make it to the printer the file is present for
 longer as the printer loads the file.

 I can only assume this is a problem with Samba or Cups with HP desklet
 drivers? Has anyone else seen this? Any Idea?

Configure a RAW CUPS printer for the HP9x0C if you install the HP9x0C
driver on Windows.

If you want to install the printer in CUPS with the CUPS driver for the
HP9xC, then install you Windows printers as Postscript printers and let
CUPS convert from postscript to HP DJ format.

Both the above work for me. I have set up several sites with HP940C
printers and my own network has HP PhotoSmart P1000. All work find from
both Linux and Windows. For Windows I prefer to print to a RAW CUPS
printer and use the HP940C driver on each MS Windwos machine. Your mileage
may bary!

Best advice is to read the CUPS Printing HOWTO that will be in
Samba-3.0.0.

- John T.
-- 
John H Terpstra
Email: [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba