Baxter Shepperson
2002-Nov-19 04:17 UTC
[Samba] Should be easy-printing problem rest of Samba works
Hi list. I've just got Samba up and running as a fileserver just
fine. Now I'm trying to use it as a printserver using CUPS. I can see
said printer via Network Neighborhood on XP boxes and add it in Windows
but no print jobs complete. No errors in Windows yet no printing start
on the printer. Would this be a question of spool permissions? Right
now I'm using spool permissions of 1777 on /var/spool/cups. I am
posting my printers sections below in hopes of this being (probably) an
easy fix from one of my fellow list members. Thanks in advance!
[printers]
path = /var/spool/cups
use client driver = Yes
guest ok = Yes
comment = All Printers
printable = yes
create mask = 0700
[Laserjet]
path = /var/spool/cups
writable = yes
use client driver = Yes
guest ok = Yes
oplocks = No
printable = yes
printer name = Laserjet
create mask = 0700
mkraus@capitalholdings.com.au
2002-Nov-19 04:29 UTC
[Samba] Should be easy-printing problem rest of Samba works
Hi Baxter,
You don't have any print command listed in your smb.conf - so print jobs
are probably being spooled, but not printed.
Below is are the printer sections from our smb.conf
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side
printer drivers.
browseable = Yes
[print$]
path = /var/lib/samba/printers
write list = @adm root
[HPLJ2200]
comment = HP LaserJet 2200dn in print room
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side
printer drivers.
lppause command = /usr/bin/enable %p
lpresume command = /usr/bin/disable %p
queuepause command = /usr/bin/enable %p
queueresume command = /usr/bin/disable %p
printer name = HPLJ2200
oplocks = No
HTH
Mike
---
Michael S. E. Kraus
Administration
Capital Holdings Group (NSW) Pty Ltd
mkraus@capitalholdings.com.au
phone (02) 9955 8000 fax (02) 9955 8144
Baxter Shepperson <baxshep@cox.net>
Sent by: samba-admin@lists.samba.org
19/11/2002 03:14 PM
To: samba@lists.samba.org
cc:
Subject: [Samba] Should be easy-printing problem rest of Samba
works
Hi list. I've just got Samba up and running as a fileserver just
fine. Now I'm trying to use it as a printserver using CUPS. I can see
said printer via Network Neighborhood on XP boxes and add it in Windows
but no print jobs complete. No errors in Windows yet no printing start
on the printer. Would this be a question of spool permissions? Right
now I'm using spool permissions of 1777 on /var/spool/cups. I am
posting my printers sections below in hopes of this being (probably) an
easy fix from one of my fellow list members. Thanks in advance!
[printers]
path = /var/spool/cups
use client driver = Yes
guest ok = Yes
comment = All Printers
printable = yes
create mask = 0700
[Laserjet]
path = /var/spool/cups
writable = yes
use client driver = Yes
guest ok = Yes
oplocks = No
printable = yes
printer name = Laserjet
create mask = 0700
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Joel Hammer
2002-Nov-19 04:46 UTC
[Samba] Should be easy-printing problem rest of Samba works
I know nothing about cups or about how you have configured your system. Can you print from the server? Have you told your server which printing system you are using? Do you have the proper drivers for your printer installed on your clients? Why have the printers section if you specify the printer in Laserjet? As you trouble shoot this, keep these points in mind. The windows client will transfer the file to your server to the print spool /var/spool/cups. It must be filtered on the windows client. Once the transfer is complete, samba invokes the appropriate print command for that file. Samba knows the print command because you told it the printing system you are using, right? At that point, the server takes over, and prints it like any other file. A common mistake for a beginner is to send the filtered file to the wrong queue. Although your print filter may be magical, and will detect a data file and not attempt to filter it anymore, and thus mess it up, you can't be sure. So, just send it to a raw queue, that is, a queue that doesn't try to filter the job further. I leave nothing to chance, so, here is what one of my printer sections looks like: [Win4LinZ53] comment = Raw Printer for Z53 path = /tmp create mask = 0700 guest ok = yes hosts allow = 192.168. printable = Yes printing = lprng print command = /usr/bin/lpr -PWin4LinZ53 -J'%J' %s; rm %s lpq command = /usr/bin/lpq -PWin4LinZ53 lprm command = /usr/bin/lprm -PWin4LinZ53 %j lppause command = /usr/sbin/lpc hold -PWin4LinZ53 %j lpresume command = /usr/sbin/lpc release -PWin4LinZ53 %j printer name = lp share modes = No /etc/printcap Win4LinZ53:\ :sd=/var/spool/lpd/Win4LinZ53:\ :mx#0:\ :lp=/dev/lp0:\ :sh: Notice there is no filter required. Joel On Mon, Nov 18, 2002 at 08:14:34PM -0800, Baxter Shepperson wrote:> Hi list. I've just got Samba up and running as a fileserver just > fine. Now I'm trying to use it as a printserver using CUPS. I can see > said printer via Network Neighborhood on XP boxes and add it in Windows > but no print jobs complete. No errors in Windows yet no printing start > on the printer. Would this be a question of spool permissions? Right > now I'm using spool permissions of 1777 on /var/spool/cups. I am > posting my printers sections below in hopes of this being (probably) an > easy fix from one of my fellow list members. Thanks in advance! > > > [printers] > path = /var/spool/cups > use client driver = Yes > guest ok = Yes > comment = All Printers > printable = yes > create mask = 0700 > > [Laserjet] > path = /var/spool/cups > writable = yes > use client driver = Yes > guest ok = Yes > oplocks = No > printable = yes > printer name = Laserjet > create mask = 0700 > > > > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba