[FreeNX-kNX] NX printing through port 445

Prakash Velayutham prakash.velayutham at cchmc.org
Fri Dec 7 20:13:47 UTC 2007


Forgot to give the versions. Here they are:

NXClient - 3.0.0-89
FreeNX - 0.7.1-1.1
NX - 2.1.0-127.1

On Dec 7, 2007, at 2:58 PM, Prakash Velayutham wrote:

> Hi,
>
> On Dec 7, 2007, at 7:54 AM, Prakash Velayutham wrote:
>
>> Fabian,
>>
>> On Dec 7, 2007, at 12:43 AM, Fabian Franz wrote:
>>
>>>>>> Hello All,
>>>>>>
>>>>>> I am trying to print from the NX server session to a Windows
>>>>>> client
>>>>>> printer through port 445 (as that is the only port open, as
>>>>>> Netbios
>>>>>> over TCP/IP is disabled on the Windows client). Is this doable?
>>>>>
>>>>> Yes, but you have to recompile smbprint from samba and change in
>>>>> libsmb == 445 to != 139.
>>>>
>>>> As you suggested, I recompiled Samba with this change and now I am
>>>> able to perform smbclient and smbspool through SSH tunnel to port
>>>> 445.
>>>
>>> Perfect.
>>>
>>>> But, when I do the same with NoMachine's NX client (with Netbios
>>>> over
>>>> TCP/IP disabled), I still see that the client is trying to export
>>>> its
>>>> printers and drives  through port 139. Here is client's error file.
>>>
>>> You have to use newest FreeNX released and use
>>> SAMBA_MOUNT_SHARE_PROTOCOL="both" then FreeNX will tell NXClient to
>>> use 445 when run on windows and 139 when on linux.
>>
>> So, once I have SAMBA_MOUNT_SHARE_PROTOCOL="both", I do not have to
>> disable Netbios over TCP/IP on the Windows client? I would like that.
>>
>> I will try this and let you know.
>
> I changed SAMBA_MOUNT_SHARE_PROTOCOL="both" and still the client's
> options file has the following:
> nx/
> nx
> ,cookie
> =
> b7efa66ce2a7029c346a6277e6851cf9
> ,samba
> =
> 139
> ,encryption
> =
> 1
> ,session
> =session,id=mannose-1000-72F7169A7E9EEC69FC7AF5B1B339742E,display=:
> 0:1000
>
> Please note the samba=139 here. Does that mean the client is setting
> up the proxy for 139 instead of 445?
>
> Printing is still not working through NX. In the server, I am getting
>
> prakash at mannose:~> /usr/local/samba/bin/smpspool "smb://user:password@127.0.0.1:4000/HPBW
> " "" "" "job" 1 "" .kde/share/config/startupconfig
> Receiving SMB: Server stopped responding
> ERROR: Tree connect failed (Call returned zero bytest (EOF))
> ERROR: Unable to connect to CIFS host, will retry in 60 seconds ...
>
> And on the WinXP client, I see
>
> Info: Forwarding SMB connections to port '139'.
> Session: Session started at 'Fri Dec  7 14:47:41 2007'.
> 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'.
> Error: Can't open a new channel over an existing ID#2 with FD#12.
> 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.
>
>>> cu
>>>
>>> Fabian
>>
>> Thanks,
>> Prakash
>
> Prakash

Prakash



More information about the FreeNX-kNX mailing list