انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: rpcclient adddriver problem  (دفعات بازدید: 1703 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین hosseinyounesi

  • Newbie
  • *
  • ارسال: 13
rpcclient adddriver problem
« : 19 تیر 1389، 11:43 ق‌ظ »
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:
[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:
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:
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  :(
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)!

I know that people in Gentoo have done this before and here is the tutorial.

Thanks for your consideration