LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2003, 07:11 PM   #1
mithrin
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Rep: Reputation: 0
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
 
Old 03-14-2003, 04:42 PM   #2
mithrin
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant print using samba and cups to a windows printer araldit Linux - Networking 5 11-27-2007 09:21 PM
Users can't manage print jobs on CUPS/Samba printer tisource Linux - Networking 8 04-21-2005 12:52 PM
Help getting SUSE to print to Fedora Cups printer kkempter Linux - Hardware 1 04-15-2004 07:25 PM
Can't print from win2k to Fedora w/Samba + CUPS WarrenWright Linux - Newbie 6 02-02-2004 09:36 PM
Cannot print to Win2K shared printer from RH8 mjamil Linux - Networking 0 11-05-2002 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration