The content of line 224 in HP-LaserJet_6L-lj4dith.ppd
224 *FoomaticRIPOption Copies: int JCL A
Main Topics
Browse All TopicsHi,
A few days ago I installed Samba 3.3.8 (file server + PDC) and print server (CUPS 1.3.10) on a FreeBSD 7.2 machine.
File service and PDC works ok.
I can print from CUPS web inteface directly.
I successfully added the printer to one of my Windows workstations but I had to supply the driver manually.
At the moment I wish to create a printer driver share but the cupsaddsmb refuses to:
myserver# cupsaddsmb -U root -a -v
cupsaddsmb: No PPD file for printer "hplj6l" - Missing double quote on line 224!
Now, hplj6l is how I named my HP LaserJet 6L printer in CUPS. I installed it using a ppd file from linuxprinting.org (HP-LaserJet_6L-lj4dith.pp
Tried to add the two files and hplj6p_4.ppd (a file from Windows driver cab) to /usr/local/share/cups/mode
I made sure I have the following lines in /usr/local/etc/smb.conf (as suggested in cupsaddsmb man page):
[globals]
(...)
load printers = yes
printing = cups
printcap name = cups
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = Yes
public = Yes
[print$]
comment = Printer Drivers
path = /usr/local/share/cups/driv
write list = root, alnis
guest ok = Yes
browseable = Yes
write list = root
read only = yes
And I have these files in /usr/local/share/cups/driv
cups6.inf hplj__31.ppd
cups6.ini hpljps1.ini
cupsps6.dll hpprn02.dll
cupsui6.dll lj456ps.inf
hp-laserjet_6l-lj4dith.ppd
hplj4mv1.ppd pcl5eres.dll
hplj5m_4.ppd pcl5ures.dll
hplj5p_1.ppd pcleures.dll
hplj5si1.ppd pclxl.dll
hplj5sim.ppd ps5ui.dll
hplj6p_4.ppd pscript.hlp
hplj_3d1.ppd pscript.ntf
hplj_3p1.ppd pscript5.dll
What causes the strange error or how can I work around it?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok I found the ppd file. First about cupssmbadd...:
All lines between "*JCLOpenUI" and "*JCLCloseUI "
should either be an ("*Orderdependency", starting with "*End", "*Default" ) OR contain a : and a " type of line.
After a " a multiline copy is made until the closing ".
Now,
a Postscript job is expected, and a Postscript job DOESN't contain JCL (@PCL options!!).
So you effectively need to remove the JCLOpenUI .. JCPCloseUI lines to be able to use this as Postscript jobs file.
(BTW, JCL ui options cause lines like then next to be inserted (f.e. when selecting 7 Copies.) at the top of a job.
@PJL SET COPIES=7
Cups postscript cannot handle this correctly.
Did you also check the PPD's files from HPLIP (HP's linux driver project)? http://hplip.sf.net
I noticed that there's difference between the permissions CUPS itself has made for its drivers in
/usr/local/share/cups/driv
cups:wheel 644, and now cupsaddsmb executes ok, at last. The errorr message about double quotes was misleading.
But there's another issue I can't still figure out: I can only add that printer on Win workstations when
I log in there with local administrator's priviledges. If not, an error message pops up:
"A policy is in effect on your computer which prevents you from connecting to this print queue. Please
contact your system administrator."
I set /var/spool/samba permissions to 777 but this didn't change anything.
By default, no restrictions are set for regular users to add shared network printers. Those printers then appear only in the users profile. I have had some other installations with printers shared on samba/cups, and this has never been an issue. AFAIK, iIt's also never restricted in an Active Directory domain by default. So, to edit each computer's local group policy would be quite an inconvenient workaround.
How about:
http://support.microsoft.c
and another workaround:
http://members.shaw.ca/bsa
From http://support.microsoft.c
"By default, this policy setting is not configured. If you do not configure this policy setting, users cannot download Point and Print drivers from computers that are not in their Active Directory forest."
But my print server is in the domain, only it's not an Active Directory domain. But ok, editting local GP "Point and Print Restriction" solves the issue.
Business Accounts
Answer for Membership
by: nociPosted on 2009-11-09 at 04:47:43ID: 25775370
If you open the PPD file, what is on it's line 224?
Appearantly a " is expected on that line, it would indicate a problem with the ppd, or with the
code in 1.3.10 in cups adminutils.c source.