[Samba] Sharing a Windows SMB shared printer via Samba

Gareth Davies gdavies at willowbrook.co.uk
Thu Jul 10 14:04:57 GMT 2003


I know this may sound like an odd thing to do, but I have a printer on a
Win98 machine that Win2k machines can't see

And I got to thinking surely Linux can print from an SMB printer and I've
read all sorts of things but found nothing really conclusive on how to set
this up.

I've added the printer various different ways in /etc/printcap, including
attempting to use smbprint from the SAMBA packages.

I've got a LJ4500N with a jet direct card working fine from SAMBA but I
can't for the life of me get this 1100 to work.

Some config files:

#LJ1100:\
# :sd=/var/spool/lpd/lj1100:\
# :mx#0:\
# :rm=smb://administrator:password@machinename/LASERJET1100
# :done_jobs=0:\
# :rp=:\
# :sh:

#lj1100:\
#     :ml#0:\
#     :mx#0:\
#     :sd=/var/spool/lpd/lj1100:\
#     :af=/var/spool/lpd/lj1100/lj1100.acct:\
#     :sh:\
#     :lp=|/usr/share/printconf/util/smbprint:\
#     :lpd_bounce=true:\
#     :if=/usr/share/printconf/util/mf_wrapper:

lj1100:\
        :cm=Development LJ1100:\
        :lp=/dev/lp1100:\
        :sd=/var/spool/lpd/lj1100:\
        :af=/var/spool/lpd/lj1100/acct:\
        :mx#0:\
        :if=/usr/local/samba/newer-smbprint.sh:


I've tried the commented out ones aswell.

# HP Laserjet 1100 Share.
[lj1100]
        comment = HP LaserJet 1100
        path = /var/spool/samba
        read only = No
        guest ok = Yes
        printable = Yes
        print command = lpr -P lj1100 -r %s -h; rm %s
        printer name = lj1100
        oplocks = No
        share modes = No
        valid users = @"Domain+Domain Users"
        printer admin = root, @Domain+IT, @lpd
        lprm command = /usr/bin/lprm -P %p %j
        lppause command = /usr/sbin/lpc hold %p %j
        lpresume command = /usr/sbin/lpc release %p %j
        queuepause command = /usr/sbin/lpc stop %p
        queueresume command = /usr/sbin/lpc start %p
        lpq command = /usr/bin/lpq -P %p

I can see the printer and add it ok, but can't get the bugger to print!

Any help appreciated.

Gareth Davies
Willowbrook I.T.
Ext. 235



*****************************************************************
This email has been checked by the altohiway e-Sweeper Service
*****************************************************************




More information about the samba mailing list