Click to See Complete Forum and Search --> : Trouble printing from xp to debian


Archibald
06-23-2004, 12:20 PM
I have a small network with 3 computers, 2 with windows xp andone with Debian. My plan is to use the debian box as a printer server amongst other things.
I have successfully installed the printer with the cusp web interface, and it prints like it should from the linux box. I have also successfully installed samba, I can access files from on the debian box from the xp ones.
I have tried two approaches to printing from the xp boxes. First I connected directly to the printer via url: http://debianbox:631/printers/debianprinter. Windows signals the printer as ready, but when I try to print, nothing happens.
The same thing applys to printing with samba, i succesfully add the printer in SWAT, andget a ready signal from it in xp, but when I print nothing happens. I don't have a clue on how to get thisto work. I've looked at various documentation and discussions, but to no use...
Anyone know what the problem is?
smb.conf is here: http://www.apspektakel.com/smb.conf
and cupsd.conf is here: http://www.apspektakel.com/cupsd.conf

I also just found that when trying to print directly to cups, these error messages are found in the log:
E [23/Jun/2004:19:30:05 +0200] get_printer_attrs: resource name '/printers/lp' no good!
E [23/Jun/2004:19:30:05 +0200] get_jobs: resource name '/printers/lp' no good!

AdamZ
06-23-2004, 02:07 PM
in smb.conf, try changing printer name = lp to the actual name of the printer (debianprinter?)

Archibald
06-23-2004, 02:24 PM
Originally posted by blargety
in smb.conf, try changing printer name = lp to the actual name of the printer (debianprinter?)
Ok, I've tried it, but it still gives the same error. However, when I tried printing through samba, I got this error in the log:
[2004/06/23 20:12:51, 0] printing/printing.c:print_job_start(952)
print_job_start: insufficient permissions to open spool file /home/hadoque/smbprn.000002.4FdHIv.

AdamZ
06-23-2004, 02:31 PM
Maybe change the create mask to 777? I don't really know much about this...

camorri
06-24-2004, 09:21 AM
You are using security = share. I suspect this is part of your problem. XP and linux like security. I have printing working with XP and several W98 machines. I have set security = user. You have to create users on linux. I made them match the users and passwords on the windoze machines, and all works. Here is my working global section. Hope it helps.

[global]
printing = cups
workgroup = cliffshome
wins support = true
netbios name = sluggy
os level = 20
smb passwd file = /etc/samba/smbpasswd
printcap name = cups
guest account = smbuser
dns proxy = no
log file = /var/log/samba/%m
log level = 2
public = yes
max log size = 50
map to guest = bad user
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
server string = Samba Server %v
security = user
printer admin = @adm, cliff ,corinne
load printers = yes
printer = lexmark4039