piuser14
Posts: 6
Joined: Thu Jan 29, 2015 10:35 pm

Samba Auto Install Printer Driver woes

Tue May 10, 2016 3:49 am

It's been a while since I was on this site, and now, I'm working on a print server in my house with one printer per Raspberry Pi box.

This is the list of services, including Google Cloud Print Service, that I have installed and/or configured:

- CUPS
- Samba*
- AirPrint (for the iDevices and Windows 10)

Services not configured:
- Google Cloud Print Service

*having issues with this setup.

The issue I'm facing is making an automatic installation of the printer drivers using the PostScript file (PPD). I had this working in Ubuntu a long time ago, and now, I cannot seem to get this to work in Raspbian Jessie.

Here's my smb.conf file:

Code: Select all

[global]
workgroup = WORKGROUP
security = user
printing = cups
printcap name = cups
load printers = yes

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = yes
public = yes
read only = yes
writable = no
printing = CUPS

[print$]
comment = Printer Drivers
path = /usr/share/cups/drivers
browseable = yes
read  only = yes
guest ok = no
writable = no
write list = root, @lpadmin, pi

[PSC-750]
printer name = PSC-750
comment = HP PSC 750
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
As soon as I run this command:

Code: Select all

cupsaddsmb -a -v -H localhost -U root
I get the following errors:

Code: Select all

Password for pi required to access localhost via SAMBA:  *********
Running command: smbclient //localhost/print$ -N -A /tmp/01f19573c0d06 -c 'mkdir   W32X86;put /tmp/01f19573bfc1b W32X86/PDF.ppd;put /usr/share/cups/drivers/ps5ui.  dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;  put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/d  rivers/pscript5.dll W32X86/pscript5.dll'

Unable to copy Windows 2000 printer driver files (2).
Running command: smbclient //localhost/print$ -N -A /tmp/01f19573c64bb -c 'mkdir   W32X86;put /tmp/01f19573bfc1b W32X86/PDF.ppd;put /usr/share/cups/drivers/ps5ui.  dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;  put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/d  rivers/pscript5.dll W32X86/pscript5.dll'

Unable to copy Windows 2000 printer driver files (2).
Running command: smbclient //localhost/print$ -N -A /tmp/01f19573c8b41 -c 'mkdir   W32X86;put /tmp/01f19573bfc1b W32X86/PDF.ppd;put /usr/share/cups/drivers/ps5ui.  dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;  put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/d  rivers/pscript5.dll W32X86/pscript5.dll'

Unable to copy Windows 2000 printer driver files (2).
Am I missing a step, or did I forget to install a specific program, like smbclient?

Edit: it was that error. Apparently, it helps if the idiot installed smbclient and ran the cupsaddsmb command again... Problem solved.

Return to “Networking and servers”