Click to See Complete Forum and Search --> : Printing from XP to a Linux printer with Samba


steveq
08-29-2002, 08:36 AM
Hi,

I'm trying to set up a printer with samba so that my XP boxes can print to it. I've had this working under Red Hat 6.x for ages and since my upgrade to 7.3 it has stopped working and I'm having problems. :mad:

Whenever I try to add the network printer on my XP box, I get an error message that says:

"The server for the 'EPSON Stylus Photo 700' printer does not have the correct printer driver installed. blah blah blah..."

Now I thought that the XP box did all the driver stuff and that all the Linux box did was pass the raw data to the printer???

I'm pretty sure I'm running 2.2.1 samba, below is my smb.conf file:

# Samba config file created using SWAT
# from steve (192.168.1.2)
# Date: 2002/08/29 20:01:48

# Global parameters
[global]
workgroup = HOME.AU
server string = Samba Server
encrypt passwords = Yes
allow trusted domains = No
null passwords = Yes
log file = /var/log/samba/%m.log
max log size = 0
nt smb support = No
name resolve order = lmhosts
getwd cache = No
keepalive = 0
socket options = IPTOS_LOWDELAY TCP_NODELAY
os level = 0
dns proxy = No
guest account = pcguest
admin users = steveq
printer admin = steveq, @ntadmin
hosts allow = 192.168.1. 192.168.2. 127.
printing = lprng
printer driver location = \\%h\lp
wide links = No

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printer admin = root
guest ok = Yes
printable = Yes
printer name = Epson Stylus Photo 700
printer driver file = /usr/local/bin/samba/printer/printers.def
browseable = No

[steveq]
comment = steveq on server Quartly
path = /
username = steveq
read only = No

[lp]
comment = Printer on Quartly
path = /var/spool/lpd/lp
guest account = ftp
guest ok = Yes
printable = Yes
printer name = lp
printer driver = EPSON Stylus Photo 700
printer driver file = /usr/local/samba/printer/printers.def
printer driver location = \\Quartly\lp

[ben]
comment = ben on server Quartly
path = /home/ben
username = ben
read only = No
guest ok = Yes

[aaron]
comment = aaron on server quartly
path = /home/aaron
username = aaron
read only = No

[pub]
comment = Publically accessible directory on Quartly
path = /pub
guest account = ftp
read only = No
hide dot files = No

I don't fully understand samba and would appreciate ANY help I can get.

Thanks,

Steve Q.
:)

cowanrl
08-29-2002, 06:39 PM
I had the same problem with XP when I moved my printer from one Samba server to another. I think basically when you click on the printer, XP recognizes the printer as a new one. Since the Samba server is an NT server, it tries to download the printer driver from it. Unless you have Samba set up to download printer drivers, it won't work. That's why you get that error message.

If the printer already exists on your XP machine, you should be able to just change the port to point to the new printer share on the Samba server.

If the printer doesn't already exist, just use the Add Printer wizard in XP to add the printer.

In my case, I ended up deleting the printer and re-installing it. I just set it up to print to the Samba shared printer.

steveq
08-30-2002, 09:57 PM
Hi,

Thanks for the tip.... it worked.

I already had the printed installed on my machine, because this is the way I did it under 98 and 6.x.

The system wouldn't let me do it to start with, it said it couldn't save the changes, so I deleted the port, rebooted, added the port back again this time it worked.

I appreciate your help.

Thanks,

Steve Q.:p

cowanrl
08-31-2002, 06:51 PM
Your welcome.