Yes, I ran cupstestppd against the file I downloaded from here:<br><br><a href="http://openprinting.org/ppd-o-matic.cgi?driver=lj4dith&printer=HP-LaserJet_6L&show=0">http://openprinting.org/ppd-o-matic.cgi?driver=lj4dith&printer=HP-LaserJet_6L&show=0</a><br>
<br>and also against the file cups itself seems to have put into /usr/local/etc/cups/ppd/hplj6l.ppd. The above file is the one I installed my printer with, and both files pass the test ok.<br><br><div class="gmail_quote">
On Fri, Nov 6, 2009 at 4:16 PM, Helge Blischke <span dir="ltr"><<a href="mailto:h.blischke@acm.org">h.blischke@acm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alnis Morics wrote:<br>
<div class="im"><br>
> Alnis Morics wrote:<br>
>> Hi,<br>
>><br>
>> I just installed a CUPS 1.3.10 and Samba (3.3.8) PDC server on FreeBSD<br>
>> 7.2. File share works ok, printing works from CUPS web interface ok,<br>
>> and at least from one of the Win workstations but now I wish to share<br>
>> the printer drivers, too.<br>
>><br>
>> So I installed the cups-samba port, made sure my [Printers] and<br>
>> [$print] sections as suggested in the cupsaddsmb man page, copied the<br>
>> Win drivers for my printer to /usr/local/share/cups/drivers, added the<br>
>> root account to samba and tried to export the drivers to the samba<br>
>> share, but cupsaddsmb refuses to:<br>
>><br>
>> myserver# cupsaddsmb -U root -a -v<br>
>> cupsaddsmb: No PPD file for printer "hplj6l" - Missing double quote on<br>
>> line 224!<br>
>><br>
>> Now, hplj6l is how I named my HP LaserJet 6L printer in CUPS. I<br>
>> installed it using a ppd file from <a href="http://linuxprinting..org" target="_blank">linuxprinting.org</a><br>
</div>>> <<a href="http://linuxprinting.org" target="_blank">http://linuxprinting.org</a>> (HP-LaserJet_6L-lj4dith.ppd). CUPS also<br>
<div class="im">>> seems to have put a file named hplj6l.ppd in<br>
>> /usr/local/etc/cups/ppd/hplj6l.ppd. I tried to run cupstestppd against<br>
>> the two files but they pass ok.<br>
>> Tried to add the two files and hplj6p_4.ppd (a file from Windows<br>
>> driver cab) to /usr/local/share/cups/model, but no effect.<br>
>><br>
>> Now, where does cupsaddsmb look for the PPD file, and where does it<br>
>> get the funny "Missing double quote on line 224"? Any ideas of what's<br>
>> wrong here?<br>
>><br>
>> Thanks in advance.<br>
>><br>
>> Alnis<br>
</div><div><div></div><div class="h5">> Hi,<br>
><br>
> 2 days ago I wrote a mail here about problems with exporting drivers<br>
> from CUPS to Samba, and nobody answered. I'm still struggling with this<br>
> problem and trying whatever comes to my mind.<br>
><br>
> I also looked at the source trying to at least understand at which point<br>
> the strange message comes up, and on my FreeBSD ports system it is here:<br>
><br>
> /usr/ports/print/cups-base/work/cups-1.3.10/systemv/cupsaddsmb.c:<br>
><br>
> ...<br>
> 229  /*<br>
> 230   * Get the Windows PPD file for the printer...<br>
> 231   */<br>
> 232<br>
> 233   if (!cupsAdminCreateWindowsPPD(http, dest, ppdfile,<br>
> sizeof(ppdfile)))<br>
> 234   {<br>
> 235     _cupsLangPrintf(stderr,<br>
> 236                     _("cupsaddsmb: No PPD file for printer \"%s\" - "<br>
> 237                       "%s\n"),<br>
> 238                     dest, cupsLastErrorString());<br>
> 239     return (1);<br>
> 240   }<br>
> ...<br>
><br>
> Aparrently cupsaddsmb fails at the moment it tries to create a Windows<br>
> PPD file for my printer (function cupsAdminCreateWindowsPPD(http, dest,<br>
> ppdfile, sizeof(ppdfile)), and I just found this is already filed as a<br>
> bug on the CUPS site:<br>
> <a href="http://cups.org/str.php?L3314+Qversion:1.4" target="_blank">http://cups.org/str.php?L3314+Qversion:1.4</a><br>
> And it's not even going to be solved in 1.4.1...<br>
><br>
> Now, I don't quite understand all information there. So, it's related to<br>
> Gutenprint drivers, right? And that's exactly what I installed. Does it<br>
> mean I could solve the problem if I use hplip instead? (I didn't try to<br>
> because hplip had problems with python headers while compiling) Is there<br>
> a way to work around this problem (I mean, the cupsAdminCreateWindowsPPD<br>
> issue) and still export Windows drivers to Samba? Or can I share my<br>
> printer in any other way so that Windows users can add it to their<br>
> profiles themselves?<br>
><br>
> Thanks,<br>
><br>
> Alnis<br>
</div></div>Please post (an URL to) the PPD you have trouble with. I suspect that the<br>
PPD has a bug the function cupsAdminCreateWindowsPPD complains on.<br>
BTW, did you feed the PPD through cupstestppd?<br>
<br>
Helge<br>
<br>
_______________________________________________<br>
cups mailing list<br>
<a href="mailto:cups@easysw.com">cups@easysw.com</a><br>
<a href="http://lists.easysw.com/mailman/listinfo/cups" target="_blank">http://lists.easysw.com/mailman/listinfo/cups</a><br>
</blockquote></div><br>