Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-11-19 Thread Kurt Pfeifle
There was this message on samba-digest:

> Message: 3
> Date: Fri, 25 Oct 2002 05:13:00 + (GMT)
> From: John H Terpstra <[EMAIL PROTECTED]>
> To: "Frank =?iso-8859-1?q?K=FCster?= geb.  =?iso-8859-1?q?F=FCrst?=" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Subject: Re: [Samba] Printing probleme Samba 2.2.3.a  with CUPS
>
> On 22 Oct 2002, Frank [iso-8859-1] Küster geb.  [iso-8859-1] Fürst wrote:
>
>
>>Let me step in on this topic...
>>
>>"Gerald (Jerry) Carter" <[EMAIL PROTECTED]> wrote:
>>
>>
>>>On Sat, 21 Sep 2002, linux power wrote:
>>>
>>>
>>>>There is a bug in samba printing cups at least for
>>>>version 2.2.3 and up. It cant resolve -P %p in the
>>>>print command line.

It *won't* even *try* to resolve it -- see below. The continued advices
on this list to use an "absolute path to the printer" by one pseudonym
"linux power" makes me curious to ask what is meant with that new term?
I never encountered an "absolute path to a printing device" either.

"lpstat -v" gives something that is named a "device URI" in all relevant
documentation. If it is the "parallel:/dev/lp0" device-URI, one *could*
assume to take the "/dev/lp0" part as a "path", even an "absolute" path.
But what about device-URIs like

   "lpd://10.160.51.131/PORT1"
   "socket://hp-printer:9100"
   "ipp://kde-cups-server/printers/infotec4105"


To create a new term of "absolute path" only creates confusion and urban
legends...

Please explain to me (and anybody else) what you mean by your advices in
detail (and give one or two examples) because I didn't understand a thing
so far...

>>>> Fix it by replacing -P %p with the
>>>>absolute path to the printing device found in lpstat
>>>>-v
>>>>
>
> FYI: I do not have any problem with this on Caldera OpenLinux, nor on SuSE
> Linux, both of which use CUPS.
>
> FWIW: You might like to check the CUPS documentation in samba-2.2.6. You
> can find it in: ~samba/docs/textdocs/CUPS-PrintingInfo.txt - might be
> helpful.

There is also a hint in the smb.conf man page:

  ...*if* the setting is "printing = cups" and "printcap = cups" and
  ...*if* Samba is compiled against libcups,
  ...and *if* there is an entry in "cupsd.conf" to make CUPS create a
 printcap file ["Printcap /etc/printcap"],

then *any* print command setting in smb.conf will be *ignored*, as samba is
then using a direct access to the CUPS API for printing

>>You mean this is still a problem in 2.2.5 and 2.2.6? And what can I do
>>if I don't have a share for each printer, but just a general [printers]
>>share?
>>
>>
>>>So I've been thinking about this and was just about to dig into
>>>fixing it, but am confused.  Did you compile Samba to include
>>>the cups libraries?  If so then setting
>>>
>>>[global]
>>>	printing = cups
>>>	printcap name = cups
>>>
>>>is all you need.  You don't need the "print command" in this
>>>case as smbd will send directly through the cups API.

Not just "don't need" the print command -- it is not used at all, it is
useless to try and use it...

Cheers,
Kurt

>>I have problems to: In my setting, the samba spool files aren't deleted
>>after succesful printing. I have compiled Samba 2.2.5 from a Debian
>>source package, and I assumed that its prepared to compile with
>>libcups2. I admit I didn't check (and cannot do this right now). Could
>>this be the reason?
>>
>>TIA, Frank
>>
>>
>
> - John T.
>




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



Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-11-19 Thread Kurt Pfeifle

There was this message on samba-digest:


Message: 3
Date: Fri, 25 Oct 2002 05:13:00 + (GMT)
From: John H Terpstra <[EMAIL PROTECTED]>
To: "Frank =?iso-8859-1?q?K=FCster?= geb.  =?iso-8859-1?q?F=FCrst?=" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Subject: Re: [Samba] Printing probleme Samba 2.2.3.a  with CUPS

On 22 Oct 2002, Frank [iso-8859-1] Küster geb.  [iso-8859-1] Fürst wrote:



Let me step in on this topic...

"Gerald (Jerry) Carter" <[EMAIL PROTECTED]> wrote:



On Sat, 21 Sep 2002, linux power wrote:



There is a bug in samba printing cups at least for
version 2.2.3 and up. It cant resolve -P %p in the
print command line.


It *won't* even *try* to resolve it -- see below. The continued advices
on this list to use an "absolute path to the printer" by one pseudonym
"linux power" makes me curious to ask what is meant with that new term?
I never encountered an "absolute path to a printing device" either.

"lpstat -v" gives something that is named a "device URI" in all relevant
documentation. If it is the "parallel:/dev/lp0" device-URI, one *could*
assume to take the "/dev/lp0" part as a "path", even an "absolute" path.
But what about device-URIs like

  "lpd://10.160.51.131/PORT1"
  "socket://hp-printer:9100"
  "ipp://kde-cups-server/printers/infotec4105"


To create a new term of "absolute path" only creates confusion and urban
legends...

Please explain to me (and anybody else) what you mean by your advices in
detail (and give one or two examples) because I didn't understand a thing
so far...


Fix it by replacing -P %p with the
absolute path to the printing device found in lpstat
-v



FYI: I do not have any problem with this on Caldera OpenLinux, nor on SuSE
Linux, both of which use CUPS.

FWIW: You might like to check the CUPS documentation in samba-2.2.6. You
can find it in: ~samba/docs/textdocs/CUPS-PrintingInfo.txt - might be
helpful.


There is also a hint in the smb.conf man page:

 ...*if* the setting is "printing = cups" and "printcap = cups" and
 ...*if* Samba is compiled against libcups,
 ...and *if* there is an entry in "cupsd.conf" to make CUPS create a
printcap file ["Printcap /etc/printcap"],

then *any* print command setting in smb.conf will be *ignored*, as samba is
then using a direct access to the CUPS API for printing


You mean this is still a problem in 2.2.5 and 2.2.6? And what can I do
if I don't have a share for each printer, but just a general [printers]
share?



So I've been thinking about this and was just about to dig into
fixing it, but am confused.  Did you compile Samba to include
the cups libraries?  If so then setting

[global]
	printing = cups
	printcap name = cups

is all you need.  You don't need the "print command" in this
case as smbd will send directly through the cups API.


Not just "don't need" the print command -- it is not used at all, it is
useless to try and use it...

Cheers,
Kurt


I have problems to: In my setting, the samba spool files aren't deleted
after succesful printing. I have compiled Samba 2.2.5 from a Debian
source package, and I assumed that its prepared to compile with
libcups2. I admit I didn't check (and cannot do this right now). Could
this be the reason?

TIA, Frank




- John T.





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



Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-11-01 Thread Frank Küster geb. Fürst
"Gerald (Jerry) Carter" <[EMAIL PROTECTED]> schrieb:

> On 22 Oct 2002, Frank Küster geb.  Fürst wrote:
> 
> > I have problems to: In my setting, the samba spool files aren't deleted
> > after succesful printing. I have compiled Samba 2.2.5 from a Debian
> > source package, and I assumed that its prepared to compile with
> > libcups2. I admit I didn't check (and cannot do this right now). Could
> > this be the reason?
> 
> This is fixed in 2.2.6.

So this _is_ a reason to upgrade soon. 


Thanks, Frank
-- 
Ich habe z.Z. nur einmal pro Tag Netzzugang. Daher kommen meine Antworten 
langsamer als üblich

Frank Küster geb. Fürst

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



Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-11-01 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 22 Oct 2002, Frank Küster geb.  Fürst wrote:

> I have problems to: In my setting, the samba spool files aren't deleted
> after succesful printing. I have compiled Samba 2.2.5 from a Debian
> source package, and I assumed that its prepared to compile with
> libcups2. I admit I didn't check (and cannot do this right now). Could
> this be the reason?

This is fixed in 2.2.6.  I'm still not convinced of any bug of 
substituting %p when using CUPS.  No one has given me evidence to
help locate a bug or prove that it exists.  Just urban legend
at this point.




cheers, jerry
 -
 Hewlett-Packard   - http://www.hp.com
 SAMBA Team-- http://www.samba.org
 GnuPG Key  http://www.plainjoe.org/gpg_public.asc
 ISBN 0-672-32269-2"SAMS Teach Yourself Samba in 24 Hours" 2ed
 "I never saved anything for the swim back." Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE9uVh5IR7qMdg1EfYRAhOzAJ0eV1d977WLsRboRPpb2sScLp6IQwCfUVK5
iIIXCmG/3ZsXPKtKMQ9ZkBM=
=VU7y
-END PGP SIGNATURE-

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



Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-11-01 Thread linux power
 
 "Frank Küster geb. Fürst" <[EMAIL PROTECTED]> wrote:

Let me step in on this topic..."Gerald (Jerry) Carter" <[EMAIL PROTECTED]>wrote:> On Sat, 21 Sep 2002, linux power wrote:> > > There is a bug in samba printing cups at least for> > version 2.2.3 and up. It cant resolve -P %p in the> > print command line. Fix it by replacing -P %p with the> > absolute path to the printing device found in lpstat> > -vYou mean this is still a problem in 2.2.5 and 2.2.6? And what can I doif I don't have a share for each printer, but just a general [printers]share?
At least it is a bug from 2.2.3.
I dont think you could have a common share to solve this problem.
 > So I've been thinking about this and was just about to dig into > fixing it, but am confused. Did you compile Samba to include > the cups libraries? If so then setting
Yes I compiled with Cups.
But Used printcap name = lpstat
 
 
> > [global]> printing = cups> printcap name = cups> > is all you need. You don't need the "print command" in this > case as smbd will send directly through the cups API.
I used the print command and replaced -P %p with the absolute path to the printer.I have problems to: In my setting, the samba spool files aren't deletedafter succesful printing. I have compiled Samba 2.2.5 from a Debiansource package, and I assumed that its prepared to compile withlibcups2. I admit I didn't check (and cannot do this right now). Couldthis be the reason?No. I think the leak of absolute path is the reason.
This command remove the files. Check the syntaks.Here is an examlpe of my command.I have USB printer
print command = lpr /dev/usb/tp0 -o raw %s,rm %s -r
TIA, Frank-- Ich habe z.Z. nur einmal pro Tag Netzzugang. Daher kommen meine Antworten langsamer als üblichFrank Küster geb. Fürst--To unsubscribe from this list go to the following URL and read theinstructions: http://lists.samba.org/mailman/listinfo/sambahttp://home.no.net/~knutove/knut_ove_hauge_kuren.htmPrøv betaversjonen av den nye Yahoo! Mail 
Nytt design, enklere å bruke, alltid tilgang til Adressebok, Kalender og Notisbok

Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-11-01 Thread John H Terpstra
On 22 Oct 2002, Frank [iso-8859-1] Küster geb.  [iso-8859-1] Fürst wrote:

> Let me step in on this topic...
>
> "Gerald (Jerry) Carter" <[EMAIL PROTECTED]> wrote:
>
> > On Sat, 21 Sep 2002, linux power wrote:
> >
> > > There is a bug in samba printing cups at least for
> > > version 2.2.3 and up. It cant resolve -P %p in the
> > > print command line. Fix it by replacing -P %p with the
> > > absolute path to the printing device found in lpstat
> > > -v

FYI: I do not have any problem with this on Caldera OpenLinux, nor on SuSE
Linux, both of which use CUPS.

FWIW: You might like to check the CUPS documentation in samba-2.2.6. You
can find it in: ~samba/docs/textdocs/CUPS-PrintingInfo.txt - might be
helpful.


>
> You mean this is still a problem in 2.2.5 and 2.2.6? And what can I do
> if I don't have a share for each printer, but just a general [printers]
> share?
>
> > So I've been thinking about this and was just about to dig into
> > fixing it, but am confused.  Did you compile Samba to include
> > the cups libraries?  If so then setting
> >
> > [global]
> > printing = cups
> > printcap name = cups
> >
> > is all you need.  You don't need the "print command" in this
> > case as smbd will send directly through the cups API.
>
> I have problems to: In my setting, the samba spool files aren't deleted
> after succesful printing. I have compiled Samba 2.2.5 from a Debian
> source package, and I assumed that its prepared to compile with
> libcups2. I admit I didn't check (and cannot do this right now). Could
> this be the reason?
>
> TIA, Frank
>

- 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] Printing probleme Samba 2.2.3.a with CUPS

2002-10-24 Thread Frank Küster geb. Fürst
Let me step in on this topic...

"Gerald (Jerry) Carter" <[EMAIL PROTECTED]> wrote:

> On Sat, 21 Sep 2002, linux power wrote:
> 
> > There is a bug in samba printing cups at least for
> > version 2.2.3 and up. It cant resolve -P %p in the
> > print command line. Fix it by replacing -P %p with the
> > absolute path to the printing device found in lpstat
> > -v

You mean this is still a problem in 2.2.5 and 2.2.6? And what can I do
if I don't have a share for each printer, but just a general [printers]
share? 

> So I've been thinking about this and was just about to dig into 
> fixing it, but am confused.  Did you compile Samba to include 
> the cups libraries?  If so then setting
> 
> [global]
>   printing = cups
>   printcap name = cups
> 
> is all you need.  You don't need the "print command" in this 
> case as smbd will send directly through the cups API.

I have problems to: In my setting, the samba spool files aren't deleted
after succesful printing. I have compiled Samba 2.2.5 from a Debian
source package, and I assumed that its prepared to compile with
libcups2. I admit I didn't check (and cannot do this right now). Could
this be the reason?

TIA, Frank
-- 
Ich habe z.Z. nur einmal pro Tag Netzzugang. Daher kommen meine Antworten 
langsamer als üblich

Frank Küster geb. Fürst

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



Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-10-21 Thread Gerald (Jerry) Carter
On Sat, 21 Sep 2002, linux power wrote:

> There is a bug in samba printing cups at least for
> version 2.2.3 and up. It cant resolve -P %p in the
> print command line. Fix it by replacing -P %p with the
> absolute path to the printing device found in lpstat
> -v
> IE.for my usb printer.
> [global]
> printcap name = lpstat

why lpstat if you are using CUPS?  See comments below.

> [printers]
>   path = /var/spool/samba
>   print command = lpr /dev/usb/lp0 -o raw %s;rm %s -r
>   printable = yes
>   printing = cups
> Try this and add the rest of the commands to the
> printer section.

So I've been thinking about this and was just about to dig into 
fixing it, but am confused.  Did you compile Samba to include 
the cups libraries?  If so then setting

[global]
printing = cups
printcap name = cups

is all you need.  You don't need the "print command" in this 
case as smbd will send directly through the cups API.

If smbd is not linked with the cups library, then I'm curious
why configure did not pick them up for you.





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 "SAMS Teach Yourself Samba in 24 Hours" 2ed.   ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--


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



Re: [Samba] Printing probleme Samba 2.2.3.a with CUPS

2002-09-22 Thread linux power

There is a bug in samba printing cups at least for
version 2.2.3 and up. It cant resolve -P %p in the
print command line. Fix it by replacing -P %p with the
absolute path to the printing device found in lpstat
-v
IE.for my usb printer.
[global]
printcap name = lpstat
[printers]
  path = /var/spool/samba
  print command = lpr /dev/usb/lp0 -o raw %s;rm %s -r
  printable = yes
  printing = cups
Try this and add the rest of the commands to the
printer section.



--- Henry Stuemer <[EMAIL PROTECTED]> skrev: >  
> 
> Dear All,
> 
> after changing my Linux box to Samba 2.2.3a and CUPS
> I'm struggling with
> some probleme :
> 
> From XPpro Client : The printer works without any
> problems.
> 
> From 98SE and Me Clients : The Wizard shows that the
> printer is offline
> and cannot print.
> 
> Can anybody give me a hint where to search ?
> 
> Regards
> 
> Henry
> 
> 

__
Se den nye Yahoo! Mail på http://no.yahoo.com/
Nytt design, enklere å bruke, alltid tilgang til Adressebok, Kalender og Notisbok
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba