[FreeNX-kNX] Printer and file sharing via smb

Freddy Levée freddy.levee at ensicaen.fr
Fri Feb 29 13:33:06 UTC 2008


Hello.

I've read several posts about that, particularly discussions between Fabian 
and Prakash Velayutham.
But I still have problems.

I test FreeNX 0.7.1 on an ubuntu 7.10 with a windows client on Vista.

1) When I want to mount a file share, an error occurs. In fact, I've noticed 
that the line

$(cat 
"$USER_FAKE_HOME/.nx/C-$SERVER_NAME-$display-$sessionid/scripts/mport")

in nxnode, function cmd_node_smbmount, returns nothing. A possible 
workaround is to test if that command returns nothing and, in that case, 
reinitialize port with $(getparam port).

Some people noticed this issue and have proposed a patch. For example, see

http:// 
kambing.ui.edu/gentoo-portage/net-misc/nxserver-freenx/files/nxserver-freenx-0.7.1-samba.patch

2) When I want to attach a printer, at the beginning of the session, I've 
got a dialog box which proposes to choose the driver. If I click on the 
button configure, I've got the login box from the Linux NX client of the 
server. That sounds not logical...

3) The painful issue: in fact I can't print to a shared windows printer.
In node.cfg, SAMBA_MOUNT_SHARE_PROTOCOL="smbfs"

The log on the client is:

Info: Display running with pid '5624' and handler '0x1d0852'.

NXPROXY - Version 3.1.0

Copyright (C) 2001, 2007 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '5872'.
Session: Starting session at 'Fri Feb 29 13:21:40 2008'.
Warning: Connected to remote version 3.0.0 with local version 3.1.0.
Info: Connection with remote proxy completed.
Warning: Unrecognized session type 'unix-gnome'. Assuming agent session.
Info: Using WAN link parameters 768/24/1/0.
Info: Using cache parameters 4/4096KB/16384KB/16384KB.
Info: Using pack method 'adaptive-9' with session 'unix-gnome'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 1/1.
Info: Using cache file 
'C:\Users\admin\NX73F8~1/cache-unix-gnome/S-14684223503C36BAA273B4F3E01F035F'.
Info: Forwarding X11 connections to display ':0'.
Info: Forwarding SMB connections to port '139'.
Info: Listening to font server connections on port '11001'.
Session: Session started at 'Fri Feb 29 13:21:40 2008'.
Info: Established X server connection.
Info: Using shared memory parameters 0/0K.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.
Info: Closed connection to SMB server.
Info: Forwarded new connection to SMB server on port '139'.

On the server, the interesting part is:

NX> 709 File-sharing port: 139
server_nxnode_echo: NX> 709 File-sharing port: 139
NX> 1009 Session status: starting
server_nxnode_echo: NX> 1009 Session status: starting
NX> 710 Session status: running
server_nxnode_echo: NX> 710 Session status: running
NX> 1002 Commit
server_nxnode_echo: NX> 1002 Commit
NX> 1006 Session status: running
session_status 7DF088D80C950ECD8173016DAEB04A6A Running
server_nxnode_echo: NX> 1006 Session status: running
NX> 105 addprinter  --type="smb" --port="4001" --username="admin" 
password="******" --share="HP4100" --computername="LEVEE-VISTA" --session_id="7DF088D80C950ECD8173016DAEB04A6A" 
 --model="NULL" --defaultPrinter="1" --public="1"
flevee at 127.0.0.1's password:
NX> 1000 NXNODE - Version 2.1.0-71 OS (GPL)
NX> 1001 Bye.
expect: spawn id exp5 not open
    while executing
"expect "NX> 1001 Bye.""

The error  sent by the command
/usr/sbin/lpadmin -p "$NAME" -E -v "$DEVICE_URI" -m "$MODEL" $PUBLIC
of the function cmd_node_addprintert is, in french:
lpadmin: Impossible de se connecter à "Aucun fichier ou répertoire de ce 
type".

If I try to use lpadmin manually via
/usr/sbin/lpadmin -p HP4100 -E -v smb://admin:*******@127.0.0.1:4001/HP4100
I can't also print and the error on the client side is:
Proxy: PANIC! Can't open a new channel over an existing ID#2 with FD#13.

Another try with smbspool:
    smbspool smb://admin:******@127.0.0.1:4001/HP4100 5 nobody title 1 
nautilus-debug-log.txt

session request to 127.0.0.1 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
session request to 127.0.0.1 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
session request to 127.0.0.1 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
session request to 127.0.0.1 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
ERROR: Unable to connect to CIFS host, will retry in 60 seconds...


Obviously, the firewall on Vista is deactivated and the printer is 
accessible.

Has anybody encountered this issue?

Thank you for your coming answers,
Freddy 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20080229/f451cc77/attachment.html>


More information about the FreeNX-kNX mailing list