[FreeNX-kNX] Printing to Windows client from FreeNX server session

Prakash Velayutham prakash.velayutham at cchmc.org
Thu Nov 15 19:05:02 UTC 2007


Hi,

I am a little further this time. The issue with mount error 6  
disappeared after a little while, strangely.

But, I believe that the NoMachine's nxclient (3.0.0-84) is trying to  
use port 139 by default for proxying, and not 445. Can someone please  
confirm or deny this?

This is what I am seeing on the client's session file while performing

smbclient -L 127.0.0.1 -I 127.0.0.1 -p 4000 -U user

on the server.

Info: Using pack method '16m-jpeg-3' with session 'unix-kde'.
Info: Using ZLIB data compression 6/6/32.
Info: Using ZLIB stream compression 9/9.
Info: Using cache file 'C:\DOCUME~1\ADMINU~1\NX73F8~1/cache-unix-kde/ 
S-37BF1DF04F934EC4F27645922EE90D0F'.
Info: Forwarding X11 connections to display ':0'.
Info: Forwarding SMB connections to port '139'.
Session: Session started at 'Thu Nov 15 13:40:43 2007'.
Info: Established X server connection.
Info: Using shared memory parameters 0/0K.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.
Warning: Connection to SMB server 'CMCCLIENT6:139' failed with error  
'Connection refused'.

If the client is trying to forward to 139 instead of 445, how can I  
force the client instead to use 445, which is where I have  
successfully tested mounting shares.

Thanks,
Prakash

On Nov 15, 2007, at 12:33 PM, Prakash Velayutham wrote:

> Hello Fabian,
>
> Please ignore my previous email where I had troubles mounting a CIFS
> share. I mistakenly was using the same netbiosname as my Linux system
> instead of my Windows system. Now I am getting a different error.
>
> server:~ # mount.cifs //cmcclient6/HPColorL /shares --verbose -o
> username=adminuser,domain=CMC-NT,ip=127.0.0.1,port=4000
> parsing options: username=adminuser,domain=CMC- 
> NT,ip=127.0.0.1,port=4000
> ip address 127.0.0.1 override specified
> ip address specified explicitly
> Password:
>
> mount.cifs kernel mount options unc=//
> cmcclient6\HPColorL,pass=ToYoLi00,ver=1,username=adminuser,domain=CMC-
> NT,ip=127.0.0.1,port=4000
> retrying with upper case share name
>
> mount.cifs kernel mount options unc=//
> CMCCLIENT6\HPCOLORL,pass=ToYoLi00,ver=1,username=adminuser,domain=CMC-
> NT,ip=127.0.0.1,port=4000
> mount error 6 = No such device or address
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
>
> Any ideas? I think I am really close with this one.
>
> Thanks,
> Prakash
>
> On Nov 15, 2007, at 12:08 PM, Prakash Velayutham wrote:
>
>> Hello Fabian,
>>
>> Lots of progress. Here are the things I tried.
>>
>> * Started a Samba server with some shares in a Linux machine. Added a
>> user to the local smbpasswd entry.
>> * Installed NoMachine NX Client on this system and configured to
>> connect to the FreeNX server with one of the samba shares accessible.
>> * In the FreeNX server, set SAMBA_MOUNT_SHARE_PROTOCOL to "cifs".
>> * Changed /sbin/mount.cifs and /sbin/umount.cifs to have setuid and
>> setgid.
>> * Created a mount point in the server and made the NX user owner of
>> this director.
>> * Changed the smbmount function in /usr/bin/nxnode so that the mount
>> point is as per above (somehow I had problems if this the user's home
>> dir on the server as the home dir is not accessible by root as mount
>> runs as root because of setuid).
>>
>> And CIFS mount of the share works just fine.
>>
>> But I am having trouble mounting a Windows XP SP2 share still. Here
>> are some things I tried.
>>
>> * Using PuTTY, I created a tunnel to the FreeNX server on port 4000  
>> on
>> the server which gets tunneled to port 445 on the local Windows
>> system.
>> * Now when I try to mount a share on the Windows system using
>> mount.cifs, I get
>> mount error 13 = Permission denied
>> * I had the same error in my previous Linux samba test, which went
>> away once I  created the relevant user in local smbpasswd file using
>> smbpasswd command.
>> * But in the Windows system, I can see that everyone has read access
>> to the share I am trying to access from the server through the  
>> tunnel,
>> but it still does not work.
>>
>> Any ideas, please?
>>
>> Thanks,
>> Prakash
>>
>> On Nov 15, 2007, at 5:43 AM, Fabian Franz wrote:
>>
>>>> Hi,
>>>>
>>>>> Could you please send your printers.conf file contents from a
>>>>> working
>>>>> NX session from Windows with printers configured?
>>>
>>> Another idea: You can try with SAMBA from linux client.
>>>
>>> Once you have that working, Windows should be easy to get to work
>>> too.
>>>
>>> cu
>>>
>>> Fabian
>> ________________________________________________________________
>>    Were you helped on this list with your FreeNX problem?
>>   Then please write up the solution in the FreeNX Wiki/FAQ:
>> http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
>>        Don't forget to check the NX Knowledge Base:
>>                http://www.nomachine.com/kb/
>>
>> ________________________________________________________________
>>      FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>>     https://mail.kde.org/mailman/listinfo/freenx-knx
>> ________________________________________________________________
>
> ________________________________________________________________
>     Were you helped on this list with your FreeNX problem?
>    Then please write up the solution in the FreeNX Wiki/FAQ:
>  http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
>         Don't forget to check the NX Knowledge Base:
>                 http://www.nomachine.com/kb/
>
> ________________________________________________________________
>       FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>      https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________




More information about the FreeNX-kNX mailing list