LinuxQuestions.org
Help answer threads with 0 replies.
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 07-03-2003, 01:51 PM   #1
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Rep: Reputation: 15
samba printing


I'm sure this is a common enough problem, I just can't seem to figure it out. I've got file sharing working with samba but the printing is giving me a fit. I can see the printers from Windows in network neighborhood, put when I send a print job, nothing happens. Linux printing works fine so I know thats not the issue. I've tried changing the path multiple times, but the only files that get modified are those in the directory specified in Linux as the spool directory for the printer. Anyway, here's the smb.conf. Other details:
Distro: SuSE 8.2
Samba: 2.2.7a-78
[global]
workgroup = MINE
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = Yes
map to guest = Bad User
log level = 1
syslog = 0
printing = lprng
printcap name=/etc/printcap
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[printers]
path = /var/spool/lpd/lexmarkz22-z32
guest ok = yes
printable = yes
print command = lpr -P%p -r %s
lpq command = lpq -P%p
lppause commmand = lpc hold %p %j
lpresume command = lpc release %p %j
queuepause command = lpc stop %p
queueresume command = lpc start %p
browseable = no


Any suggestions greatly appreciated.

Regards,
Brad
 
Old 07-03-2003, 02:24 PM   #2
bobr
Member
 
Registered: Jun 2003
Distribution: MANDRAKE-REDHAT
Posts: 70

Rep: Reputation: 15
something is not clear.... are you trying to print from windos to a linux or from a linux box to windos?
 
Old 07-03-2003, 09:22 PM   #3
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Try changing your path in your printers section to /tmp and make sure to restart Samba w/ /etc/init.d/samba restart
 
Old 07-04-2003, 02:40 PM   #4
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Original Poster
Rep: Reputation: 15
Sorry to have left this out. I'm trying to print from Windows 2000 to Samba.

Regards,
Brad
 
Old 07-05-2003, 10:22 AM   #5
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Did you try changing yor path to /tmp in Printers? Check the entries in /var/log/samba and check for error entries
 
Old 07-06-2003, 06:55 PM   #6
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Original Poster
Rep: Reputation: 15
I changed the path to /tmp and restarted samba. Here is a log.smbd that contains only entries starting with the last restart and pertains to my one printing attempt from Win2K:
[2003/07/06 19:51:15, 0] smbd/server.c:main(707)
smbd version 2.2.7a-SuSE started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/07/06 19:51:15, 1] lib/debug.c:debug_message(258)
INFO: Debug class all level = 1 (pid 3427 from pid 3427)
[2003/07/06 19:51:15, 0] param/loadparm.c:map_parameter(2090)
Unknown parameter encountered: "lppause commmand"
[2003/07/06 19:51:15, 0] param/loadparm.c:lp_do_parameter(2779)
Ignoring unknown parameter "lppause commmand"
[2003/07/06 19:51:15, 0] smbd/server.c:main(751)
standard input is not a socket, assuming -D option
[2003/07/06 19:52:12, 1] smbd/reply.c:reply_sesssetup_and_X(1025)
Rejecting user 'root': bad password
[2003/07/06 19:52:15, 1] smbd/service.c:make_connection(636)
ibmz4em01lfoc6 (192.168.1.11) connect to service lexmarkz22-z32 as user root (uid=0, gid=0) (pid 3431)
[2003/07/06 19:52:30, 1] smbd/service.c:make_connection(636)
ibmz4em01lfoc6 (192.168.1.11) connect to service lexmarkz22-z32 as user nobody (uid=65534, gid=65533) (pid 3431)
[2003/07/06 19:53:31, 1] smbd/service.c:close_cnum(684)
ibmz4em01lfoc6 (192.168.1.11) closed connection to service lexmarkz22-z32
[2003/07/06 19:53:55, 1] smbd/service.c:close_cnum(684)
ibmz4em01lfoc6 (192.168.1.11) closed connection to service lexmarkz22-z32

I established my connection to the printer using this command:
net use lpt2 \\linux\lexmarkz22-z32 /user:root


Does anything obvious show up?

Regards,
Brad
 
Old 07-06-2003, 07:07 PM   #7
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Hmmm, could be a problem w/ your permissions. Try changing your printcap permissions to 1777. When I setup my printers initially in Linux/BSD, I use CUPS and make sure in CUPS that all users are allowed access. If you get really frustrated, try CUPS. Use the new KDE printing manager to configure it. Sorry I can't help further.
 
Old 07-07-2003, 09:37 AM   #8
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Original Poster
Rep: Reputation: 15
Unfortunately when I tried to set up CUPS (using the foomatic database of drivers since the SuSE set of drivers doesn't support the Lexmark Z22) the driver seemed to leave the printer in an unusable state until you pressed the form feed button. I switched back to lprng using the lexmark driver and it was OK. Stil no luck with samba printing. Can you refer me to another possible source of assistance?

Regards,
Brad
 
Old 07-07-2003, 09:52 AM   #9
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Post your printers section of smb.conf
 
Old 07-07-2003, 10:22 AM   #10
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Original Poster
Rep: Reputation: 15
[printers]
path = /var/spool/lpd/lexmarkz22-z32
guest ok = yes
printable = yes
print command = lpr -P%p -r %s
lpq command = lpq -P%p
lppause commmand = lpc hold %p %j
lpresume command = lpc release %p %j
queuepause command = lpc stop %p
queueresume command = lpc start %p
browseable = no

Here's the global section again, in case it helps:[global]
workgroup = MINE
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = Yes
map to guest = Bad User
log level = 1
syslog = 0
printing = lprng
printcap name=/etc/printcap
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
 
Old 07-07-2003, 12:38 PM   #11
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Original Poster
Rep: Reputation: 15
One question. Does samba have a problem with a hyphen (-) in a printer name? The lexmark driver I'm using creates a print queue called lexmarkz22-z32. I tried to create a raw print queue as an SMB connection and when I selected that printer, the test connection reported a problem. I used webmin and if I was correct, I created a share called z22 that should have referneced lexmarkz22-z32, but that didn't work either.

Thanks,
Brad
 
Old 07-07-2003, 06:32 PM   #12
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
I have no idea. Try it w/out.
 
Old 07-07-2003, 08:27 PM   #13
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Original Poster
Rep: Reputation: 15
Figured it out. It was the whole Lexmark thing. I brought my HP laserjet 5 out of retirement. Installed it using lprng and with no samba changes was able to print from Win2K. I guess now I know why Lexmark printers are so cheap. I found a web site call fixyourownprinter.com that I can buy the part and a video on how to make my laserjet good as new. Guess the Lexmark goes in the closet for emergency purposes. Sorry to be such a problem. Thanks for all of you help.

Regards,
Brad
 
Old 07-07-2003, 08:37 PM   #14
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Good on ya I still recommend CUPS though. Laserjets are the schizznit. I have a Lexmark monstrosity that I just use for color printing and my Laserjet is my workhorse. >pats Laserjet affectionately< Laserjets last forever.
 
Old 07-20-2003, 07:07 AM   #15
bmcneely0
Member
 
Registered: Jul 2003
Posts: 74

Original Poster
Rep: Reputation: 15
Just had to add one last comment. I took your advice and switched from LPRNG to CUPS printing and the formfeed I was getting at the end of a samba print job that just spit out a blank page went away. Thanks again for all of the help.

Regards,
Brad
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba printing berniec Linux - Networking 3 02-23-2004 09:18 AM
Samba Printing garr0323 Linux - Newbie 1 10-24-2003 06:38 AM
Samba printing leonardox Linux - Networking 1 08-30-2003 11:49 PM
samba printing haydn Linux - Networking 2 07-29-2003 09:18 AM
printing + samba? aeshley Linux - Newbie 1 06-22-2002 10:52 PM

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

All times are GMT -5. The time now is 08:54 PM.

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