LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-27-2005, 08:37 AM   #1
feeble2
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
XP not able to use a Samba printer


Don't know how many posts I've browsed through, so It could be that my eyes just ceased functioning and I've missed the obvious solution. But I just can't get XP to print with a Samba printer.
The printer is Canon BJ S500 connected to a Debian Sarge computer. I've set up Samba in different ways, using webmin and manually editing smb.conf and cupsd.conf. I've set up machine accounts using smbpasswd -m -a, normal user accounts, allowed every action performed from another computer on any network... but I just can't get XP to print.

I've done everything according to Debian-and-Windows-Shared-Printing.html#sharing_with_windows (sorry for the incomplete URL, but I can't post complete URLs yet).
And I've added things like the workgroup setting. The XP machine can see the Linux machine, but with this setting, it cannot browse the printers, not even with the line browseable = yes.

Farthest I've gotten is when I use machine account, enable every possible action like guest login, writeable and other things. I can browse the printers, I can add them to the XP machine, and I can browse file shares and open the files. I've set the printer path so that everyone has all the rights to it. But on XP's printer control panel it says that the printer cannot be used, and the connection was refused.

I won't attach all the configurations I've tried. It is probably a simple, fool-proof way to set things up the right way, but I just screw everything up. So if anyone could just tell me, what should be the most basic way to get things working.
 
Old 07-27-2005, 07:55 PM   #2
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
Note: I know for sure that Debian does it this way. I'm a Debian nerd, so no worries about disto incompatibilities.

When you try to connect from the XP machine, it will go into a log file in /var/log/samba/machinename.log . Try to browse the printers folder and copy the lines that get recorded in that file onto this forum.

As an aside, this is what a Samba configuration I know works has it in in the [global] section:

load printers = yes
printing = cups
printcap name = cups
cups options = "raw"
use client driver = no

This assumes you're using Cups. If you're not, install it! It will save you a ton of nightmares!

apt-get install cupsys-bsd

It has a web-based interface on port 631 that makes configuring printers a breeze.
 
Old 07-28-2005, 07:02 PM   #3
feeble2
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I got it working! Thank you! Much appreciated!

But there's still some problems... everything related to the printers is so slow. I can browse the shares on the Linux machine quite fast, but printing is slow, even choosing the printer from the printer list takes (too) long. It eventually prints, but it takes time.

I am currently testing with a user named user (and added valid users = user to global). And I've set XP so that when user connects to the Linux machine foo it uses the account user@foo for which I've set the same password on foo and on XP. If I try to browse the shares, to log.user (I have log. at the beginning, not at the end, set by webmin.) is added the following:

user (192.168.0.3) connect to service share initially as user user (uid=1001, gid=100) (pid 7147)

But if I try to do anything with the printers:

authorise_login: rejected invalid user nobody

Why does XP try to connect the shares using a username user, but when connecting to the printers it tries to do so as an anonymous guest?

Is this an XP configuration or a Samba configuration problem? Or both?
 
Old 07-29-2005, 08:46 AM   #4
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
Things always seemed to speed up for me when I installed the printer drivers on the Samba machine. Add this line under use client driver = no:

printer admin = user

Add a share for printers just for good measure:

Code:
[printers]
	comment = Printers
	browseable = no
	writeable = yes
	printable = yes
	path = /tmp
	create mode = 0777
And add a share for the printer drivers. Make sure you give this directory proper permissions when you make it [should be owned by user:users and mode 755].

Code:
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/drivers
	write list = user
	writeable = yes
	browseable = no
	create mask = 0644
	directory mask = 0755
Then, on the XP box, browse to the Samba machine. It should have a folder named Printers and Faxes in it. Right click on the printer you have drivers for and click properties. It will probably ask you to install the drivers, but say no. Now go to the advanced tab, click the button for New Driver, and install the driver. It will copy the driver to Samba's drivers folder.

Now, not only will printing be faster, but if you add the printer on another computer, it will automatically download the drivers. See if that solves your problem.
 
  


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
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 10:44 PM
samba and printer Hydrap Linux - Networking 1 08-09-2005 12:41 AM
Samba and Printer eggoz Linux - Networking 0 10-28-2004 08:13 AM
Samba printer help(can see and have access to printer but nothign prints out) rmanocha Linux - Networking 1 11-05-2003 06:54 AM
Samba printer crazedmodder Linux - Networking 1 10-20-2003 11:17 PM

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

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