This is the FreeNX server made by Fabian Franz et al, patched for Gentoo compatibility. It is based on the sources for the debian packages at the Kalyxo website (see http://www.kalyxo.org/twiki/bin/view/Main/FreeNX). This ebuild contains the server-scripts (nxserver and nxnode). It depends on net-misc/nxserver-free-base-1.3.99 (will be submitted, too). This is not a clean one and has to be improved. I needed this technology on Gentoo and couldn't resist putting together an ebuild. But it works! So if anyone needs this as badly as me, try it out and give some feedback. In order to be able to distinguish between the commercial and non-commercial NX packages, I suggest net-misc/nxserver-free.
Created attachment 38263 [details] nxserver-free-1.4.0.ebuild
Created attachment 38264 [details] nxserver-free-1.4.0.ebuild typo in DEPEND
Created attachment 38265 [details, diff] nxserver-0.1_gentoo.diff patch for FHS compatibility (/usr/NX => /usr)
The base package is here: http://bugs.gentoo.org/show_bug.cgi?id=61877
Thanks for this. Once all the dependencies are in, I'll commit this ebuild as net-misc/nxserver-freenx. It looks we'll need a slightly different patch tho, as I'm planning to leave NX in /usr/NX for the time being. Best regards, Stu
Where should FreeNX be placed? Not in /usr/NX, I suppose. We could just leave out the above patch and use the original path, which is /usr/NX.free.
I'm planning to put it into /usr/NX, as a drop-in replacement for the closed-source components in NoMachine's nxserver product. When the final release of nxserver 1.4.0 is made (it's still in beta atm), I'm planning on making that only install the closed-source components, so that Gentoo users can enjoy any performance benefits they get from their choice of CFLAGS. Best regards, Stu
Sounds like a good idea. Martin
Okay, net-misc/nxserver-freenx has been added to Portage. I've been having problems with nxagent, so this may not work for you yet. Please give it a go, and let me know how you get on. Best regards, Stu
Trying to emerge the nxserver, heres the issues; # emerge nxserver-freenx -va These are the packages that I would merge, in order: /usr/sbin/ebuild.sh: line 1102: /usr/portage/eclass/nxserver-1.4.eclass: No such file or directory !!! ERROR: net-misc/nxserver-freenx-0.1 failed. !!! Function inherit, Line 1103, Exitcode 1 !!! died sourcing /usr/portage/eclass/nxserver-1.4.eclass in inherit() aux_get(): (0) Error in net-misc/nxserver-freenx-0.1 ebuild. (1) Check for syntax error or corruption in the ebuild. (--debug) Calculating dependencies !!! all ebuilds that could satisfy "nxserver-freenx" have been masked. !!! possible candidates are: /usr/sbin/ebuild.sh: line 1102: /usr/portage/eclass/nxserver-1.4.eclass: No such file or directory !!! ERROR: net-misc/nxserver-freenx-0.1 failed. !!! Function inherit, Line 1103, Exitcode 1 !!! died sourcing /usr/portage/eclass/nxserver-1.4.eclass in inherit() aux_get(): (0) Error in net-misc/nxserver-freenx-0.1 ebuild. (1) Check for syntax error or corruption in the ebuild. (--debug) !!! Error calculating dependencies. Please correct.
just re-sync'd the portage tree and the eclass appears to be there now.
Many users on the forums don't succeed in getting the server to run correctly. Their problems can be fixed with two lines: chown -R nx:root /usr/NX chmod u+x /usr/NX/var/db/* The ebuild should enforce those permissions, I think! Greetings, Martin
There are problems with the nxclient versions, too! 1.4.0 with nxserver-freenx doesn't work for everyone. ("Error: undefined command: 'bye'") (Post: http://forums.gentoo.org/viewtopic.php?p=1494385#1494385) Downgrading to 1.3.2 helped in those cases! This is really awkward in situations where you want to have server and client on the same machine!
FreeNX 0.2.1 should work fine - so long as you do not try to suspend / resume sessions. If you need that feature, for the moment your only option is nxserver-personal-1.4.0, until Fabian has fixed this feature in FreeNX. Best regards, Stu
Closing old bug