[FreeNX-kNX] printing support with a client printer accessible from a Windows XP box

Martin Steigerwald ms at teamix.de
Wed Dec 21 13:40:21 UTC 2005


Hello,

after fixing some bugs (IMHO) in the nx-node script which I happily explain 
later and teaching cups to actually print a document (which it refused to 
with a certain driver) I finally (hopefully!) get an error message on the SMB 
protocol level:

I [21/Dec/2005:15:07:19 +0100] Started backend /usr/lib/cups/backend/smb (PID 
25827) for job 1.
E [21/Dec/2005:15:07:19 +0100] [Job 1] Connection failed with error 
NT_STATUS_DUPLICATE_NAME
E [21/Dec/2005:15:07:19 +0100] [Job 1] Unable to connect to SAMBA host, will 
retry in 60 seconds...tail process done writing data to STDOUT
E [21/Dec/2005:15:08:19 +0100] [Job 1] Connection failed with error 
NT_STATUS_DUPLICATE_NAME
E [21/Dec/2005:15:09:20 +0100] [Job 1] Unable to connect to SAMBA host, will 
retry in 60 seconds...ERROR:  Connection failed with error 
NT_STATUS_DUPLICATE_NAME

To what I found out this error means that there are two hosts with the same 
name in the Windows network... but our customer told me that this is not the 
case.

Then I found out about this:

http://mail.kde.org/pipermail/freenx-knx/2005-August/001820.html

but the nxnode script on my server already refers to "localhost" instead of 
"127.0.0.1" in the smb://-URL.

I tried accessing the printer locally from the client by using the command 
suggested by Raul Carolus, but the command returned that the syntax is not 
correct

net rpc printer -Ilocalhost -U<user> -p4000

(I used it with the right username and port)

What I have and what seems to work so far:

FreeNX/NX Client setup a printer for me:

# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Mi 21 Dez 2005 16:18:28 CET
<DefaultPrinter PRNLEX3>
Info PRNLEX3
DeviceURI smb://testuser:<somepassword>@localhost:4003/PRNLEX3
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser teamix
</Printer>

Which was added by:

lpadmin -p PRNLEX3 -E -v smb://testuser:<somepassword>@localhost:4003/PRNLEX3 
-m foomatic-ppds/Lexmark/Lexmark-Optra_T610-Postscript.ppd.gz -u allow:teamix

The user-space  CUPS seems to be running...

teamix at appserver:~/.nx/C-appserver-1003-D4CEEC7F808FA52D68A170507B778D34/cups$ 
ps ux | grep cups
teamix   27218  0.0  0.5  9612 4624 ?        S    16:18   0:00 /usr/sbin/cupsd 
-f 
-c /home/teamix/.nx/C-appserver-1003-D4CEEC7F808FA52D68A170507B778D34/cups/cupsd.conf

CUPS seemed to be able to prepare the print data...

There seems to be someone listening on the right port:

appserver:~# netstat -tlp | grep 4003
tcp        0      0 *:4003                  *:*                     LISTEN     
27024/nxagent

But sending that print data back to the client still does not seem to work.

Any hints? Any things I can try?

I am using FreeNX	0.4.4+0.4.5-2sarge1 from

deb http://debian.tu-bs.de/project/kanotix/stable/ ./

on Debian Sarge installation which is running in a Xen environment also based 
on Debian Sarge.

Regards,
-- 
Martin Steigerwald
Trainer / Systems Engineer



More information about the FreeNX-kNX mailing list