[Parti-discuss] Rootless NX
Antoine Martin
antoine at nagafix.co.uk
Tue Aug 25 08:40:14 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi Lars,
lars hofhansl wrote:
> I have since discovered that NX can be used in root less mode as well, and that all of the complexity of FreeNX (or NoMachines server)
> and NX client, and the cumbersome authentication (nx user and then the real user) is not needed to use NX.
>
> All one has to do it start
> nxagent -display nx/nx,link=wan,...:port :port -R
> on the remote (client) machine, and
> nxproxy -S machine:port
> on the local (server) machine. If you want secure communication just use SSH to establish a tunnel (display port + 4000 is used by NX),
> and use localhost:port on the local server.
>
> No FreeNX, nxclient, public key huh hah, or anything additional indeed is needed.
I was really hoping that this would work... As I've given up before on
figuring out the madness that goes on in nxserver.
Unfortunately, -display is not allowed with nxagent:
Error: Aborting session with 'Unable to open display 'nx/nx,link=wan''.
So the best I can do is this:
nxagent -geometry 1024x768 -terminate :250 -R
nxproxy -S 127.0.0.1:2250
But then nxclient complains about wrong authentication...
So I'm stuck. Any ideas?
> nxagent acts as an X server (just like Xvfb, Xnest, or Xvnc), and any X application can then be used on the remote machine using the given display port.
>
> That is all that is needed to park and forward windows just like with Xpra. A little bit trickery is needed to handle nxagents
> resume/suspend logic, but on the oher hand that allows changing encoding/caching behavior between suspend/resume cycles.
Any chance you could expand on that?
I once wrote a client based on nxcl, and that was just as flaky as the
rest... Resume kinda worked - most of the time!
Cheers
Antoine
> Anyway, this is not to diminish the ingenuity of Xpra. I just found that using NX this way (with a bunch of simple bash scripts to set the SSH tunnel),
> is just as simple as Xpra, windows-aware as well, and performs (honestly) far better over low bandwidth links.
>
> _______________________________________________
> Parti-discuss mailing list
> Parti-discuss at partiwm.org
> http://lists.partiwm.org/cgi-bin/mailman/listinfo/parti-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREKAAYFAkqT264ACgkQGK2zHPGK1ruzkwCdH+niwU4ljQi5LZj0egQALJZr
68MAnjPXiTE8qL2KvJHzuPv6G4WDr15m
=UKMG
-----END PGP SIGNATURE-----
More information about the Parti-discuss
mailing list