[FreeNX-kNX] How to compile FreeNX?

Sandra Schlichting littlesandra88 at gmail.com
Mon Dec 5 12:58:18 UTC 2011


> If you have a compiler and the devel-s installed
> compiling agent and the libs is easy.

Yes, they compiled.

> the wrappers can all be the same or 1 with ln -s
> as follows, note again lib64

The funny thing is that FreeNX seams to work just fine without the
wrapper scripts. Strange.

If I make the symlinks for the wrapper

chown nx.nx /usr/NX/bin/wrapper
chmod 744 /usr/NX/bin/wrapper

mv /usr/NX/bin/nxagent /usr/NX/bin/nxagent.bin
ln -s /usr/NX/bin/wrapper /usr/NX/bin/nxagent

mv /usr/NX/bin/nxauth /usr/NX/bin/nxauth.bin
ln -s /usr/NX/bin/wrapper /usr/NX/bin/nxauth

mv /usr/NX/bin/nxproxy /usr/NX/bin/nxproxy.bin
ln -s /usr/NX/bin/wrapper /usr/NX/bin/nxproxy

where /usr/NX/bin/wrapper contains

#!/bin/sh
NXCOMMAND=$(basename $0)
export LD_LIBRARY_PATH=/usr/NX/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
exec /usr/NX/bin/${NXCOMMAND}.bin ${1+"$@"}

I get permission denied.

nxnode_reader: NX> 1004 Error: NX Agent exited with exit status 1. To
troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate
"/home/m/.nx/F-C-ubuntu-1000-9D4299AF1A02F9F46A641232DAAF22B9/session".
You might also want to try: ssh -X myserver; /usr/NX/bin/nxnode
--agent to test the basic functionality. Session log follows:
NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot
set SESSION_LOG_CLEAN=0 in node.conf and investigate
"/home/m/.nx/F-C-ubuntu-1000-9D4299AF1A02F9F46A641232DAAF22B9/session".
You might also want to try: ssh -X myserver; /usr/NX/bin/nxnode
--agent to test the basic functionality. Session log follows:
NX> 105 nxnode_reader: /usr/NX/bin/nxnode: line 543:
/usr/NX/bin/nxagent: Permission denied
/usr/NX/bin/nxnode: line 543: /usr/NX/bin/nxagent: Permission denied


> so, are you running gentoo ??

No, Ubuntu 11.10, but paths that the patch changes seams to make sense
for Ubuntu.

> then copy out the finished files
>
> nx-X11/lib/X11/libX11.so*
> nx-X11/lib/Xext/libXext.so*
> nx-X11/lib/Xrender/libXrender.so*
> nxcompext/libXcompext.so*
> nxcompshad/libXcompshad.so*
> nxcomp/libXcomp.so*
> nx-X11/programs/Xserver/nxagent
> nx-X11/programs/nxauth/nxauth
> nxproxy/nxproxy

Great. I hadn't copied
nx-X11/programs/nxauth/nxauth
nxcompshad/libXcompshad.so*

> I do hope you are enjoying this exercise !!

haha =) I actually learn a lot in the process, so that's fine =)



More information about the FreeNX-kNX mailing list