[FreeNX-kNX] Printing problem

Thilo Uttendorfer t.uttendorfer at linux-ag.com
Mon May 7 15:34:19 UTC 2007


Hello,

I have some problems with printing to a printer on the client side. On the 
client I have a shared printer that I've configured in the nxclient. First 
try, no success. I did some debugging and it looks like the function 
cmd_node_addprinter in nxnode gets killed at some point. So I patched
/usr/lib/nx/nxnode with a sleep command after the call of the function
cmd_node_addprinter:

        --addprinter)
                cmd_node_addprinter &>/dev/null </dev/null &
                sleep 5
        ;;

The patch is really bad, there should be a better solution. But anyway, now, 
when I start a session on the client, I can see the printer in any 
KDE-printing dialog but I still can't print. There is only one cups process, 
shouldn't there be two? 


Some log files:

#### /var/log/cups/error_log
[...]
E [07/May/2007:15:18:25 +0200] [Job 2] Unable to connect to CIFS host, will 
retry in 60 seconds...
[...]


#### /var/log/nxserver.log
[...]
NX> 1006 Session status: running
NX> 105 addprinter  --type="smb" --port="4003" --username="Administrator" 
password="******" --share="Apollo" --computername="NTW2K" 
--session_id="935C2629C515C454ED53B65F39AC3EFE" --model="deskjet" 
--defaultPrinter="1"
Password:
NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
NX> 1001 Bye.
expect: spawn id exp5 not open
    while executing
"expect "NX> 1001 Bye.""
    (file "/usr/lib/nx/nxnode-login" line 102)
NX> 105 bye
Bye
NX> 999 Bye


The expect error is caused by the last line of nxnode-login (expect "NX> 1001 
Bye."), if you remove that line, the error is gone. But that has probably 
nothing to do with printing...


#### ~/.nx/C-client-1003-935C2629C515C454ED53B65F39AC3EFE/cups/error_log
[...]
E [07/May/2007:15:12:06 +0200] Unable to open job cache file 
"/var/cache/cups/job.cache": Permission denied
I [07/May/2007:15:12:06 +0200] Full reload complete.
I [07/May/2007:15:12:06 +0200] Listening to :::10003 on fd 7...
I [07/May/2007:15:12:06 +0200] Listening to 0.0.0.0:10003 on fd 8...
E [07/May/2007:15:12:06 +0200] Unable to write pid file



My system setup is as follows:

Server:
- Debian Sarge (I did some tests with Ubuntu Edgy, too)
- freenx 0.6.0

Clients:
- Windows 2000 and XP
- nxclient 2.0.0-98 and 2.1.0-17



Any hint would be appreciated.


Thanks, 

Thilo Uttendorfer


-- 
Thilo Uttendorfer
Linux Information Systems AG
Stefan-George-Ring 8, 81929 München

t.uttendorfer at linux-ag.com, http://www.linux-ag.com



More information about the FreeNX-kNX mailing list