Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Ubuntu] adddriver problem (WERR_UNKNOWN_PRINTER_DRIVER)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
hosseinyounesi
n00b
n00b


Joined: 09 Jul 2010
Posts: 2

PostPosted: Fri Jul 09, 2010 6:44 pm    Post subject: adddriver problem [WERR_UNKNOWN_PRINTER_DRIVER] Reply with quote

Hi everyone,
I'm trying to add my printer driver via adddriver. My distro is Ubuntu 10.04, cups 1.4.3 and samba 3.4.7.
this is my smb.conf:
Code:

[global]
   load printers = yes
   printing = cups
   printcap name = cups

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   public = yes
   guest ok = yes
   writable = no
   printable = yes
   printer admin = root

[print$]
   comment = Printer Drivers
   path = /etc/samba/drivers
   browseable = yes
   guest ok = no
   read only = yes
   write list = root

[mysmbtstprn]
   printable = yes
   path = /var/spool/samba
   guest ok = yes
   printer admin = root
   browseable = yes
   public = yes


I've done these:
Code:

lpadmin -p mysmbtstprn -v parallel:/dev/lp0 -E -P /etc/samba/drivers/HP_LaserJet_2420.ppd
rpcclient -Uroot%123456 -c 'enumprinters' localhost | grep -C2 mysmbtstprn
rpcclient -Uroot%123456 -c 'getprinter mysmbtstprn 2' localhost | grep driver
rpcclient -Uroot%123456 -c 'getprinter mysmbtstprn 2' localhost | grep -C4 driv
rpcclient -U root%123456 -c 'getdriver mysmbtstprn' localhost

smbclient //localhost/print\$ -U 'root%123456' -c 'cd W32X86; put /etc/cups/ppd/mysmbtstprn.ppd mysmbtstprn.ppd; put /usr/share/cups/drivers/cups6.ini cups6.ini; put /usr/share/cups/drivers/cupsui6.dll cupsui6.dll; put /usr/share/cups/drivers/ps5ui.dll ps5ui.dll; put /usr/share/cups/drivers/cupsps6.dll cupsps6.dll; put /usr/share/cups/drivers/pscript.ntf pscript.ntf; put /usr/share/cups/drivers/pscript5.dll pscript5.dll'

smbclient //localhost/print\$ -U 'root%123456' -c 'cd W32X86/3; put /etc/cups/ppd/mysmbtstprn.ppd mysmbtstprn.ppd; put /usr/share/cups/drivers/cups6.ini cups6.ini; put /usr/share/cups/drivers/cupsui6.dll cupsui6.dll; put /usr/share/cups/drivers/ps5ui.dll ps5ui.dll; put /usr/share/cups/drivers/cupsps6.dll cupsps6.dll; put /usr/share/cups/drivers/pscript.ntf pscript.ntf; put /usr/share/cups/drivers/pscript5.dll pscript5.dll'

and when I enter this command:
Code:

rpcclient -U'root%123456' -c 'adddriver "Windows NT x86" "mysmbtstprn:pscript5.dll:mysmbtstprn.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,mysmbtstprn.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' localhost


I get this error :
result was WERR_UNKNOWN_PRINTER_DRIVER

I don't know what's wrong and it's really disturbing me :cry: :cry:

I'm following these instructions:
http://www.linuxtopia.org/online_books/network_administration_guides/samba_reference_guide/29_CUPS-printing_105.html
and I'm now in step 6.

cupsaddsmb with '-v' option shows me the same problem as shown below and never ends :(
Code:

Running command: rpcclient localhost -N -A /tmp/064734c45013b -c 'adddriver "Windows NT x86" "mysmbtstprn:pscript5.dll:mysmbtstprn.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,mysmbtstprn.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
result was WERR_UNKNOWN_PRINTER_DRIVER

Unable to install Windows 2000 printer driver files (1)!


Thanks for your consideration[post=]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum