LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2003, 03:28 PM   #1
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Rep: Reputation: 0
Printing to Linux printer from both Linux and Windows


Hi,

I have a 3 boxes network at home, 2 of them RedHat 9 and one W2K. One RH9 system has a locally installed Canon printer.
The problem that I'm having is I can't print from neither computer to this printer although the printer is shared (Sharing - All hosts). The printer is working fine locally.
I have Samba setup and I can access files from no matter which computer to the others.
In W2K I can see and install the Linux printer but I have "access denied, unable to connect" message when I look at the printer status.
If I try to print from both systems, it looks like it sends the files, no error message, but nothing gets printed.

Here is my smb.conf printer's section (quite basic) :
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
printable = yes
guest ok = yes

I created a smb user with the same name and password as the Windows one.

I fight with this one for couple of days now and it drives me NUTS !!! When I first installed RH9 and the printer it was working fine from both computers but then I installed many other programs and it stopped working...

Can someone give hint on this one please,
Thank you,
Cezar
 
Old 11-25-2003, 04:34 PM   #2
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
http://www.worldchaos.no-ip.com:1212...aplinprint.gif

It's been asked, try a search. Best of luck.
 
Old 11-25-2003, 05:28 PM   #3
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
The first thing was to search the forum but each of the answers seems to be particular and after trying many of them I didn't find a solution that worked in my case.

Cezar
 
Old 11-26-2003, 12:17 AM   #4
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
maybe change the browseable to "yes". Also, I used webmin and swat to help me setup shares and I know in there you can setup printers as well. IN windows when browsing my linux server, I can see that windows is sharing a printer that linux can use. I said that kind of strange.... but your permissions are wrong for the printer share.
 
Old 11-26-2003, 06:53 AM   #5
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you wldkos for your reply.

I tried also webmin, nice tool, but everytime I edit samba with webmin, trying to start the gnome's Samba Server tool fails and smb.conf file shows truncated.

I changed in samba.conf the browsable to yes.
One problem though :
the printer section from smb.comf is different than what testparm shows.
this is testparm dump for printers
[printers]
comment = All Printers
read only = No
printable = Yes
browseable = No

and this is the smb.conf
[printers]
printer = CanonLinux
comment = All Printers
browseable = yes
writeable = yes
printable = yes
path = /var/spool/samba

Is this normal ?

Cezar
 
Old 11-26-2003, 07:28 AM   #6
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
try adding "public = yes" to the [printers] section.
 
Old 11-26-2003, 08:19 AM   #7
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for reply Poprocks

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
# Set public = yes to allow user 'guest account' to print
printable = yes
public = yes

Still not working, the windows pc has "access denied" for the printer
Cezar
 
Old 12-02-2003, 10:08 AM   #8
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
what security level do you have? Check the globals. If you have security = user, try changing "user" to "share."

If that doesn't work, it's time to get this going quick & dirty. Keep the "share" level security, and adduser "smbprint" (or whatever you want.) Type "mkdir /home/smbprint/spool" and do "chmod -R 777 /home/smbprint/spool" Go to the printer section, add "guest ok = yes," "guest only = yes," "guest account = smbprint," "path = /home/smbprint/spool" -- I _think_ you have to get rid of the public = yes line, but I'm not totally sure. I believe all the other lines can be kept intact, but you may have to tinker with it a little bit to get it to work
 
Old 12-02-2003, 11:52 AM   #9
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you Poprocks for your reply.

I have 2 questions tough:
1. Should I add the smbprint user to samba?
2. What should I tell Windows to look for? What should be Windows configuration for the printer?

Thanks,
Cezar
 
Old 12-02-2003, 02:45 PM   #10
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
If you've set up your local Linux printer with CUPS (be it with KDE, GNOME, or the web configuration tool), as long as you keep your smb.conf file intact aside from the changes I told you about, you should just be able to open "My network places" in Windows XP or "network neighborhood" in Windows 9X (not quite sure what it is in 2k... In XP (that's all I'm familiar with ATM, sorry) you should be able to just navigate the network and locate your linux box. From there, just double-click your printer and windows (should) do the rest.

If you can't find your machine, make sure you've set security to share, and make sure that you've set a workgroup name and a netbios name in your [globals] section of smb.conf.

and no, you don't have to add smbprint to samba. Just using the adduser script should do.
 
Old 12-02-2003, 02:52 PM   #11
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Hi Poprocks

Yes, my printer is set up with CUPS.
Yes, I can see the printer attached to my Linux box but hte problem is the printer shows "Acces Denied ..." status in the printer listing on W2K and if I try to send something to the printer is looks like it went (no error message) but nothing gets printed, no doc in the query nothing.
One strange thing with samba is that each time I open the gnome's Samba Config tool the workgroup name is missing. The security is to share and the guest account is set to nobody (!?!)

Cezar
 
Old 12-02-2003, 03:00 PM   #12
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
Oh, you've been using the GNOME samba tool? I was talking about editing the /etc/samba/smb.conf file... that's where you'll want to manually make changes (like guest account) -- but if you want to use GNOME that should be fine too... just make sure you set the guest account to "smbprint" and make _sure_ you set "guest ok = yes," "guest only = yes" in the smb.conf file
 
Old 12-02-2003, 03:09 PM   #13
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Oh, I edited manually smb.conf. I was just telling you about what it seems to be strange related to Samba :-)
Here is the [printers] from smb.conf :
[printers]
comment = All Printers
path = /home/smbprint/spool
browseable = yes
# Set public = yes to allow user 'guest account' to print
printable = yes
guest ok = yes
guest only = yes
guest account = smbprint
 
Old 12-02-2003, 03:25 PM   #14
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
well, here's the resource I used to get my SAMBA printer to work in Windows.
http://www.tldp.org/HOWTO/Debian-and...h_windows.html
I was trying to explain it to you without a smb.conf file in front of me and with very vague memories of how I did it. So, I hope that page helps you as much as it helped me.
 
Old 12-02-2003, 05:41 PM   #15
cezarn
LQ Newbie
 
Registered: Sep 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a lot for the link.

I tried, now the W2K sees the printer as Ready but when I send to the printer nothing happens :-(
I'll try couple of other things see what happens,

Cezar
 
  


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
Printing from Linux to Windows Printer matrim Linux - Networking 9 10-11-2005 12:07 AM
Setting up printer on Linux and printing to it from Windows gljubuncic Linux - Software 3 06-06-2005 02:49 PM
Printing to a Linux printer via Windows jacquedp Linux - Networking 1 06-14-2004 07:53 PM
Printing from Linux to a Windows printer unswt101 Linux - Software 1 05-05-2004 11:55 AM
Printing to a windows printer from Linux 9 star2a Linux - Networking 2 10-09-2003 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 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