Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61874 - nxserver-free-1.4.0.ebuild
Summary: nxserver-free-1.4.0.ebuild
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Stuart Herbert (RETIRED)
Keywords: EBUILD
Depends on: 61505 61877 63757
  Show dependency tree
Reported: 2004-08-26 19:07 UTC by Martin Honermeyer
Modified: 2005-02-17 02:34 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---

nxserver-free-1.4.0.ebuild (nxserver-1.4.0.ebuild,3.20 KB, text/plain)
2004-08-26 19:08 UTC, Martin Honermeyer
nxserver-free-1.4.0.ebuild (nxserver-1.4.0.ebuild,3.22 KB, text/plain)
2004-08-26 19:11 UTC, Martin Honermeyer
nxserver-0.1_gentoo.diff (nxserver-0.1_gentoo.diff,4.45 KB, patch)
2004-08-26 19:13 UTC, Martin Honermeyer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Honermeyer 2004-08-26 19:07:01 UTC
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

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.
Comment 1 Martin Honermeyer 2004-08-26 19:08:06 UTC
Created attachment 38263 [details]
Comment 2 Martin Honermeyer 2004-08-26 19:11:21 UTC
Created attachment 38264 [details]

typo in DEPEND
Comment 3 Martin Honermeyer 2004-08-26 19:13:06 UTC
Created attachment 38265 [details, diff]

patch for FHS compatibility (/usr/NX => /usr)
Comment 4 Martin Honermeyer 2004-08-26 19:36:19 UTC
The base package is here:
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2004-08-28 03:48:10 UTC
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,
Comment 6 Martin Honermeyer 2004-08-28 04:24:07 UTC
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/ 
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-08-28 12:24:07 UTC
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,
Comment 8 Martin Honermeyer 2004-08-28 12:54:57 UTC
Sounds like a good idea.

Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2004-08-30 13:55:13 UTC
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,
Comment 10 Jonathan GIll 2004-08-30 21:33:15 UTC
Trying to emerge the nxserver, heres the issues;

# emerge nxserver-freenx -va

These are the packages that I would merge, in order:

/usr/sbin/ 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/ 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.
Comment 11 Jonathan GIll 2004-08-31 01:16:53 UTC
just re-sync'd the portage tree and the eclass appears to be there now.
Comment 12 Martin Honermeyer 2004-09-02 18:40:56 UTC
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!

Comment 13 Martin Honermeyer 2004-09-02 18:45:44 UTC
There are problems with the nxclient versions, too! 1.4.0 with nxserver-freenx doesn't work for everyone. 
("Error: undefined command: 'bye'") (Post:

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!
Comment 14 Stuart Herbert (RETIRED) gentoo-dev 2004-09-08 12:11:12 UTC
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,
Comment 15 Stuart Herbert (RETIRED) gentoo-dev 2005-02-17 02:34:58 UTC
Closing old bug