Click to See Complete Forum and Search --> : I cant get my shared printer to print from win2k client


zdehman
08-08-2003, 10:27 AM
I locally installed a printer in Samba-PDC. I am able to browse the shared printer and install the client driver. The setup went with no hassles but when i tried to print a test page it doesnt seem to print! Could anyone please help me? This is how i setup my smb.conf...

[global]
workgroup = WRKGRP
netbios name = SAMBA-PDC
server string = Primary Domain Server running Samba %v
encrypt passwords = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*success fully*
unix password sync = Yes
log level = 2
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain admin group = root @mis
add user script = /usr/sbin/useradd -d/dev/null -g machines -s/bin/false -M %u
domain logons = Yes
os level = 64
preferred master = Yes
domain master = Yes
dns proxy = No
hosts allow = 127.0.0.1 192.168.0.0/255.255.255.0

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

[hpofcjet_5110]
comment = Shared Printer
path = /var/spool/samba
printer admin = @admin
read only = No
printable = Yes
printer name = hpofcjet_5110
use client driver = Yes
oplocks = No

TomC
08-10-2003, 09:14 PM
I think you need under [global]

load printers = Yes
printcap = /etc/printcap (or whatever your path is)

I would also strip all the code from the printer section but this until you get it working.

printable = Yes
path = /var/spool/samba

zdehman
08-11-2003, 10:56 AM
It still doesnt work. Ive tried adding a local port in my win2k client but it doesnt seem to print. Please help!...

Hayl
08-11-2003, 11:19 AM
what print daemon are you running on the linux box?

zdehman
08-11-2003, 12:16 PM
im using the lprng spooler and lpd daemon. Please help! i dont know what went wrong...

zdehman
08-11-2003, 05:08 PM
When i check the logs i cant see no errors...please help....

TomC
08-11-2003, 10:13 PM
Your win client should be printing to \\server\printer_share

What does your printcap look like?

Is the printer a net printer or is it physically attached to lpt1 of the linux box?

zdehman
08-12-2003, 10:35 AM
I think nothing is wrong with my smb.conf...i can print from my linux box just fine and also those accessing the printer from another linux box. When i tried to print from my win2k client using another driver...i could print. But the driver used doesnt give me the print quality i want. When i try reinstalling the correct driver...it does not seem to print. I tried to check windows log and it gave this error...DCOM was unable to communicate with the computer samba-pdc(where the printer is locally attached!) using any of the configured protocols... What is DCOM? Can anyone help me with this?

TomC
08-12-2003, 10:53 AM
When you print from the Linux boxes you're using linux drivers.

When you print from Windows you're using windows drivers designed for a windows environment, not the linux lpd services. You may need to use a generic driver.

You can also look into raw print queues which will allow you to use the windows driver and just pass it thru linux without any interpretation. I do this with a Brother laser and an HP Inkjet. It works very well.