Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Problems using samba to share printers, cups and samba< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 02 2007,17:42 QUOTE

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?
Back to top
Profile PM 
stevesr0 Offline





Group: Members
Posts: 32
Joined: July 2007
Posted: Aug. 06 2007,23:47 QUOTE

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
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 07 2007,12:09 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Aug. 07 2007,14:48 QUOTE

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
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 08 2007,18:13 QUOTE

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?
Back to top
Profile PM 
9 replies since Aug. 02 2007,17:42 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Problems using samba to share printers

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code