[Samba] Print to JetDirect

Bob Crandell bob at assuredcomp.com
Mon Sep 2 12:31:01 GMT 2002


Hi,

We just picked up a new client that didn't want to pay the Micr$oft tax so we
installed Samba.  There are a variety of issues we need to work through, the first
of which is printing to a JetDirect 500X 3 port print server.  They have 2 other
models that we have working.

pcguest belongs to the lp group.
The permissions on all spool directories are the same.

Here is the relatevant section of smb.conf:
This works.
[HP1220C]
	available = yes
	comment = Our HP DeskJet 1220C Printer
	path = /var/spool/lpd/HP1220c
	print command = /usr/bin/lpr -P%p -r %s
        queuepause command = /usr/sbin/lpc -P%p stop
        queueresume command = /usr/sbin/lpc -P%p start
	public = yes
	writable = no
	printable = yes
	browsable = yes
	force user = pcguest
	create mask = 0777

This doesn't work.
[HP4100]
	available = yes
	comment = Our HP 4100 Printer
	path = /var/spool/lpd/HP4100
	print command = /usr/bin/lpr -P%p -r %s
        queuepause command = /usr/sbin/lpc -P%p stop
        queueresume command = /usr/sbin/lpc -P%p start
	public = yes
	writable = no
	printable = yes
	browsable = yes
	force user = pcguest
	create mask = 0777

This is Printcap:
This Works.
# HP DeskJet 1220c printer:
HP1220c:sd=/var/spool/lpd/HP1220c:rw:sh:rm=hp1220c:rp=raw:

This doesn't work.
# HP OfficeJet K80:
HPK80:sd=/var/spool/lpd/HPK80:rw:sh:rm=jd500x:rp=raw1:
# HP DesignJet 750c Color Plotter:
HP750c:sd=/var/spool/lpd/HP750c:rw:sh:rm=jd500x:rp=raw2:
# HP LaserJet 4100 Printer:
HP4100:sd=/var/spool/lpd/HP4100:rw:sh:rm=jd500x:rp=raw3:

I suspect "rp=raw1, rp=raw2, rp=raw3" is the problem.

Thanks
--
Bob Crandell
Assured Computing
When you need to be sure.
Voice 541-689-9159
FAX   240-371-7237
bob at assuredcomp.com
www.assuredcomp.com
Eugene, Or. 97402





More information about the samba mailing list