Suse 8.1,Samba,Cups print to Win2k printer
Hi I need a little help with Suse 8.1 Prof running Samba 2.2.5 and Cups 1.1.15.
I want to print to a Win2K PC with a connected printer Hp LaserJet 6L. I've spent some time on this ready various internet sites and doc's but still no closer to the answer. config Samba linked Cups to Smbspool via ln -s `which smbspool` /usr/lib/cups/backend/smb config the printer via Yast I pass the test echo -en "" | smbclient "//HOST/SHARE" "PASSWORD" -c 'print -' -N -U "USER" && echo "OK" || echo "ERROR" I can print using echo -en "\rHello\r\f" | smbclient "//HOST/SHARE" "PASSWORD" -c 'print -' -N -U "USER". But printer stalls when cat file | smbclient "//HOST/SHARE" "PASSWORD" -c 'print -' -N -U "USER" i.e. the printer lights come on but no pages come out. The cups web interface sees the printer and shows printer job queue when trying to print via lp command or from KDE programs, still no printing, not even the lights come on the printer. I can see and use the files shares. Some config files:- # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2003/03/12 08:37:01 # Global parameters [global] workgroup = HOME netbios name = THREE encrypt passwords = Yes log level = 1 syslog = 0 time server = Yes unix extensions = Yes socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY printcap name = CUPS os level = 2 printing = cups veto files = /*.eml/*.nws/riched20.dll/*.{*}/ [homes] comment = Home Directories valid users = %S read only = No create mask = 0640 directory mask = 0750 browseable = No [printers] comment = All Printers path = /var/tmp create mask = 0600 printable = Yes browseable = No # public = Yes # print command = lpr -P %p -o raw %s # printer name = lphp6 [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 [pub] path = /srv/pub valid users = gerry admin administrator read only = No create mask = 0757 directory mask = 0757 [pub1] path = /srv/publ valid users = gerry admin administrator read only = No create mask = 0757 directory mask = 0757 lpinfo -v network socket network http network ipp network lpd direct canon:/dev/lp0 direct epson:/dev/lp0 direct parallel:/dev/lp0 serial serial:/dev/ttyS0?baud=115200 serial serial:/dev/ttyS1?baud=115200 serial serial:/dev/ttyS2?baud=115200 serial serial:/dev/ttyS3?baud=115200 serial serial:/dev/ttyS4?baud=115200 serial serial:/dev/ttyS5?baud=115200 serial serial:/dev/ttyS6?baud=115200 serial serial:/dev/ttyS7?baud=115200 serial serial:/dev/ttyS8?baud=115200 serial serial:/dev/ttyS9?baud=115200 serial serial:/dev/ttyS10?baud=115200 serial serial:/dev/ttyS11?baud=115200 serial serial:/dev/ttyS12?baud=115200 serial serial:/dev/ttyS13?baud=115200 serial serial:/dev/ttyS14?baud=115200 serial serial:/dev/ttyS15?baud=115200 serial serial:/dev/ttyS16?baud=115200 serial serial:/dev/ttyS17?baud=115200 serial serial:/dev/ttyS18?baud=115200 serial serial:/dev/ttyS19?baud=115200 serial serial:/dev/ttyS20?baud=115200 serial serial:/dev/ttyS21?baud=115200 serial serial:/dev/ttyS22?baud=115200 serial serial:/dev/ttyS23?baud=115200 network smb direct usb:/dev/usb/lp0 direct usb:/dev/usb/lp1 direct usb:/dev/usb/lp2 direct usb:/dev/usb/lp3 direct usb:/dev/usb/lp4 direct usb:/dev/usb/lp5 direct usb:/dev/usb/lp6 direct usb:/dev/usb/lp7 |
I’ve found the answer to my printing problem.
Using this web site as a guide http://homepage.mac.com/william_whit...o_windows.html Relinked /usr/lib/cups/backend/smb to /var/lib/samba/bin/smbspool Deleted the printer created by Yast. Configured the printer using Cups web interface. Now my printer on the Win2k works from the Linux via Samba. |
All times are GMT -5. The time now is 06:20 AM. |