Dave Sheckells
2005-Oct-06 20:03 UTC
[Samba] Samba Cups Windows 98 Raw Printing - need help
Hello - I am trying to use Samba and Cups to serve a file share and a "raw" printer to a Windows 98 client. I am using Gentoo Linux, kernel 2.6.12, Samba 3.0.14a, and Cups 1.1.23. I can access the data share from the Samba server, but the printer share does not show up when I try to use it, even if I specifically type in the name of the share (\\data_dog\win98_photosmart) it still doesn't work. I had this working with this laptop and a "practice" file server I had, the hard drive died in that machine, so I've set up my new file server and I can't get this to work. Before I had either of the file servers I had installed the printer directly on this laptop. When I set up the "practice" file server I was able to make it work by changing the port the printer used from it's own usb to the printer share, \\data_dog\win98_photosmart (to change the printer port in Win 98 you go to the detail tab of the printer properties dialog box). I have been trying every different samba and cups option I could google for the last week. Please look over my smb.conf and cupsd.conf and tell me where I'm going wrong. data_dog ~ # cat /etc/samba/smb.conf [global] netbios name = data_dog workgroup = sheckellfield server string = samba %v on %L security = user encrypt passwords = yes wins support = yes local master = yes os level = 128 log level = 3 log file = /var/log/samba.log max log size = 50 hosts allow = 192.168.0. read only = no printing = cups printcap = cups load printers = yes [data] path = /srv/samba/data_share comment = %S on %L volume = data_share create mask = 0660 directory mask = 0770 force create mode = 0660 force directory mode = 0770 [win98_photosmart] comment = HP Photosmart 7150 printer = win98_photosmart path = /var/spool/samba/win98_photosmart browseable = yes guest ok = yes writable = no printable = yes printer admin = root, @wheel use client driver = yes Here are the parts of my cupsd.conf file that are not comments: DocumentRoot /usr/share/cups/docs LogLevel info User lp Group lp Port 631 SystemGroup lp <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.0.0/24 </Location> <Location /admin> AuthType Basic AuthClass System Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.0.0/24 </Location> The only thing I've added to the file are the two "Allow From 192.168.0.0/24" lines. Everything else is Gentoo default. I think that cups is working properly, at least as far as controlling the printer. Here is my /etc/cups/printers.conf: data_dog cups # cat printers.conf # Printer configuration file for CUPS v1.1.23 # Written by cupsd on Wed Oct 5 12:28:11 2005 <DefaultPrinter win98_photosmart> Info HP Photosmart 7150 Location Above meerkat DeviceURI usb://hp/photosmart%207150?serial=MY3445509G2F State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 </Printer> I set up the printer with the cups web interface. If I click on "Print Test Page" the printer prints a couple of lines that look like this: %!PS-Adobe-3.0 %%BoundingBox: 0 0 612 792 ... and then starts spitting out blank pages. The tail of the file /var/log/cups/error_log looks like this after a test page print: data_dog cups # tail error_log I [05/Oct/2005:12:28:27 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=8808) I [05/Oct/2005:12:28:28 -0700] Adding start banner page "none" to job 1. I [05/Oct/2005:12:28:28 -0700] Adding end banner page "none" to job 1. I [05/Oct/2005:12:28:28 -0700] Job 1 queued on 'win98_photosmart' by 'root'. I [05/Oct/2005:12:28:28 -0700] Started backend /usr/lib/cups/backend/usb (PID 8809) for job 1. I [05/Oct/2005:12:28:32 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=8810) I [05/Oct/2005:12:30:39 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=8823) I [05/Oct/2005:12:30:49 -0700] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=8824) I [05/Oct/2005:12:30:51 -0700] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=8825) I [05/Oct/2005:12:30:59 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=8826) The last five lines are generated by me clicking on other buttons in the web interface before typing in the tail command. This shows that cups can communicate with the printer, but it is trying to send a postscript file to a raw print queue, so I'm getting garbage output. I think this means the problem is at the cups/samba interface or just that samba is not serving the print share properly. I checked to see if cups support was compiled into Samba with ldd `which smbd` and it showed up properly. If anyone has any idea where I'm going wrong, please tell me, also, if more info about my system is needed, please post. Thanks, ds
On Thu, 2005-10-06 at 13:03 -0700, Dave Sheckells wrote:> Hello - > I am trying to use Samba and Cups to serve a file share and a "raw" > printer to a Windows 98 client. I am using Gentoo Linux, kernel > 2.6.12, Samba 3.0.14a, and Cups 1.1.23. I can access the data share > from the Samba server, but the printer share does not show up when I > try to use it, even if I specifically type in the name of the share > (\\data_dog\win98_photosmart) it still doesn't work. > > I had this working with this laptop and a "practice" file server I > had, the hard drive died in that machine, so I've set up my new file > server and I can't get this to work. > > Before I had either of the file servers I had installed the printer > directly on this laptop. When I set up the "practice" file server I > was able to make it work by changing the port the printer used from > it's own usb to the printer share, \\data_dog\win98_photosmart (to > change the printer port in Win 98 you go to the detail tab of the > printer properties dialog box). > > I have been trying every different samba and cups option I could > google for the last week. Please look over my smb.conf and cupsd.conf > and tell me where I'm going wrong. > > data_dog ~ # cat /etc/samba/smb.conf > [global] > netbios name = data_dog > workgroup = sheckellfield > server string = samba %v on %L > security = user > encrypt passwords = yes > wins support = yes > local master = yes > os level = 128 > log level = 3 > log file = /var/log/samba.log > max log size = 50 > hosts allow = 192.168.0. > read only = no > printing = cups > printcap = cups > load printers = yes > > [data] > path = /srv/samba/data_share > comment = %S on %L > volume = data_share > create mask = 0660 > directory mask = 0770 > force create mode = 0660 > force directory mode = 0770 > > [win98_photosmart] > comment = HP Photosmart 7150 > printer = win98_photosmart > path = /var/spool/samba/win98_photosmart > browseable = yes > guest ok = yes > writable = no > printable = yes > printer admin = root, @wheel > use client driver = yes---- maybe it's just me but I've had problems using the underscore in machine names and have resorted to only letters/numbers/hyphens Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
I have used both with and without '_' and I am still unable to get Samba CUPS printing to work... in either direction (linux <-> W2K). I can even get smbclient printing to work. Joe Craig White wrote:> On Thu, 2005-10-06 at 13:03 -0700, Dave Sheckells wrote: > > Hello - > > I am trying to use Samba and Cups to serve a file share and a "raw" > > printer to a Windows 98 client. I am using Gentoo Linux, kernel > > 2.6.12, Samba 3.0.14a, and Cups 1.1.23. I can access the data share > > from the Samba server, but the printer share does not show up when I > > try to use it, even if I specifically type in the name of the share > > (\\data_dog\win98_photosmart) it still doesn't work. > > > > I had this working with this laptop and a "practice" file server I > > had, the hard drive died in that machine, so I've set up my new file > > server and I can't get this to work. > > > > Before I had either of the file servers I had installed the printer > > directly on this laptop. When I set up the "practice" file server I > > was able to make it work by changing the port the printer used from > > it's own usb to the printer share, \\data_dog\win98_photosmart (to > > change the printer port in Win 98 you go to the detail tab of the > > printer propertiesdialog box).> > > > I have been trying every different samba and cups option I could > > google for the last week. Please look over my smb.conf and cupsd.conf > > and tell me where I'm going wrong. > > > > data_dog ~ # cat /etc/samba/smb.conf > > [global] > > netbios name = data_dog > > workgroup = sheckellfield > > server string = samba %v on %L > > security = user > > encrypt passwords = yes > > wins support = yes > > local master = yes > > os level = 128 > > log level = 3 > > log file = /var/log/samba.log > > max log size = 50 > > hosts allow = 192.168.0. > > read only = no > > printing = cups > > printcap = cups > > load printers = yes > > > > [data] > > path = /srv/samba/data_share > > comment = %S on %L > > volume = data_share > > create mask = 0660 > > directory mask = 0770 > > force create mode = 0660 > > force directory mode = 0770 > > > > [win98_photosmart] > > comment = HP Photosmart 7150 > > printer = win98_photosmart > > path = /var/spool/samba/win98_photosmart > > browseable = yes > > guest ok = yes > > writable = no > > printable = yes > > printer admin = root, @wheel > > use client driver = yes > ---- > maybe it's just me but I've had problems using the underscore in machine > names and have resorted to only letters/numbers/hyphens > > Craig > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba