Networking :: Problems using samba to share printers



I'm not sure whether this topic should be in printers or networking but here goes...

After finally getting printing set up in dsl with cups and hplip, I'd like to use samba to share a printer/fax/scanner with other dsl and windows machines on the same small local network. I can manage to mount a windows share on dsl, but so far I didn't make much progress with sharing a printer.

The idea is that cups/samba will make the printer drivers available to the windows machines, but I don't seem to be getting very far:
Code Sample
$ sudo /opt/hplip/sbin/cupsaddsmb -U root -v -a
Password for root required to access /opt/hplip/var/run/cups/cups.sock via SAMBA:
Running command: smbclient ///opt/hplip/var/run/cups/cups.sock/print$ -N -A /opt/hplip/var/spool/cups/tmp/46b2849c180f2 -c 'mkdir W32X86;put /opt/hplip/var/spool/cups/tmp/46b28497f1946 W32X86/OfficeJetG85.ppd;put /opt/hplip/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /opt/hplip/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /opt/hplip/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /opt/hplip/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
creating lame upcase table
creating lame lowcase table
Connection to  failed


Here's the smb/conf file I'm using:
Code Sample
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/08/02 20:40:04

[global]
workgroup = JUANITO
printcap name = /opt/printcap
valid users = dsl
printing = cups
print command =
lpq command = %p
lprm command =

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /etc/samba-3/drivers
write list = root
Can anybody see any obvious mistakes?

I am trying to share printers on a home network and have been looking at cups use in windows.  I want to raise two points relevant to the principles for setting this up, rather than technically analyzing your code.  Hopefully, this will be useful to both of us<g>.

(1) I understand that Samba may not be necessary when setting up a CUPS printer in windows.  Apparently, this can be done based on the windows IPP support which is CUPS compatible.  I haven't completely digested the various memos I have read, but there is a type of printer that can be set up with the "http" version of IPP.  

(2) I believe that printer drivers are OS specific, you have to load a windows driver for the windows machine and a linux driver for the linux machine.  For linux, many of these are available from gimp-print and of course there are specific windows drivers for most printer models.    

Steve

Quote
I believe that printer drivers are OS specific, you have to load a windows driver for the windows machine and a linux driver for the linux machine
The files I am trying upload to samba are the cups and adobe ps drivers for windows. These would be passed to the windows machine the first time it tries to connect to the cups/samba shared printer.

Here's a sample one: http://lists.samba.org/archive/samba/2002-July/048018.html where it shows "use client driver" ... so maybe you can do it both ways.

Quote
print command =
lpq command = %p
lprm command =
Just wondering why these aren't filled in...?  And I think printcap name is just a name...

Quote
Running command: smbclient ///opt/hplip/var/run/cups/cups.sock/print$ -N -A /opt/hplip/var/spool/cups/tmp/46b2849c180f2 -c 'mkdir W32X86;put /opt/hplip/var/spool/cups/tmp/46b28497f1946 W32X86/OfficeJetG85.ppd;put /opt/hplip/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /opt/hplip/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /opt/hplip/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /opt/hplip/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
I don't think there's a "put" command included in dsl... unless it's in one of your hplip extensions?

Some more info here: http://www.samba.org/samba....ng.html

Quote
I don't think there's a "put" command included in dsl... unless it's in one of your hplip extensions?


Aah - that might explain something... I take it that "put" is the one from ftp?

Next Page...
original here.