[FreeNX-kNX] How to compile FreeNX?
Sandra Schlichting
littlesandra88 at gmail.com
Fri Dec 2 11:01:28 UTC 2011
> Did you thought about using the ppa-freenx?
>
> https://launchpad.net/~freenx-team/+archive/ppa
Yes, and I was using it for about 2 weeks ago, but now all packages
have been deleted...
So I tried the "easy way" that is described in [1], but
/usr/NX/bin/nxsetup --install --setup-nomachine-key
fails in many places. E.g. that it can't find /usr/NX/nxagent. So I
guess too much have changed since the howto was written.
When I do it the real way, I end up with a couple of questions, I have
written below:
mkdir src
# wget www.nomachine.com/sources.php
rm src/nx-X11-compat-3.5.0-1.tar.gz
mkdir comp
cd comp
for f in ../src/*; do tar xzf $f;done
aptitude install build-essential
apt-get install expat fontconfig xterm zlib1g libgl1-mesa-dri
libgl1-mesa-glx libglu1-mesa libpng12-0 libdrm-intel1 libdrm-nouveau1a
libdrm-radeon1 libdrm2 libfreetype6
apt-get install zlib1g-dev libjpeg62 libjpeg62-dev libpng12-0-dev
cd nx-X11
make World
cd ..
cd nxproxy
./configure && make
cd ..
NXPREFIX=/usr/NX
mkdir -p ${NXPREFIX}/lib ${NXPREFIX}/bin
cp -a nx-X11/lib/X11/libX11.so* ${NXPREFIX}/lib
cp -a nx-X11/lib/Xext/libXext.so* ${NXPREFIX}/lib
cp -a nx-X11/lib/Xrender/libXrender.so* ${NXPREFIX}/lib
cp -a nxcomp/libXcomp.so* ${NXPREFIX}/lib
cp -a nxcompext/libXcompext.so* ${NXPREFIX}/lib
cp -a nx-X11/programs/Xserver/nxagent ${NXPREFIX}/bin
cp -a nxproxy/nxproxy ${NXPREFIX}/bin
cd
apt-get install subversion patch xutils-dev
svn checkout svn://svn.berlios.de/freenx/trunk
cd /root/trunk/freenx-server
patch -p0 < gentoo-nomachine.diff
#cp nx* /usr/NX/bin/
#cp node.conf.sample /usr/NX/etc/node.conf
#/usr/NX/bin/nxsetup --install --setup-nomachine-key
make
make install
/usr/NX/bin/nxsetup --install --setup-nomachine-key
I get
Setting up /usr/NX/etc ...done
Setting up /usr/NX/var/db ...done
Setting up /var/log/nxserver.log ...done
Adding user "nx" to group "utmp" ...done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done
Setting up cups nxipp backend ...done
----> Testing your nxserver configuration ...
Warning: Could not find nxdesktop in /usr/NX/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/NX/bin. VNC sessions won't work.
Warning: Invalid value
"APPLICATION_LIBRARY_PRELOAD=/usr/NX/lib/libX11.so.6.2:/usr/NX/lib/libXext.so.6.4:/usr/NX/lib/libXcomp.so:/usr/NX/lib/libXcompext.so:/usr/NX/lib/libXrender.so.1.2".
/usr/NX/lib/libXrender.so.1.2 could not be found. Users will not be
able to run a single application in non-rootless mode.
Warning: Invalid value "CUPS_ETC=/etc/cups/"
Users will not be able to enable printing.
Warning: Invalid value "DEFAULT_X_SESSION=/etc/X11/xdm/Xsession"
Users might not be able to request a default X session.
Warning: Invalid value "COMMAND_START_KDE=startkde"
Users will not be able to request a KDE session.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able
to use SAMBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be
able to use SAMBA.
Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
Users will not be able to enable printing.
Error: expect necessary for /usr/NX/bin/nxnode-login could not be
found in '/usr/bin/expect'. Please install it or change nxnode-login
accordingly.
Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in
nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed for this
version of FreeNX.
Errors occured during config check.
Please correct the configuration file.
root at ubuntu:~/trunk/freenx-server#
Questions:
* I assume that I have only compiled freenx-server. Should
freenx-utils also be compiled?
* If freenx-utils should be compiled, how is that done? There is no Makefile.
* The source packages I downloaded from NoMachine are
nxbuilder
nxcomp
nxcompext
nxcompsh
nxcompshad
nxesd
nxkill
nxproxy
nxscripts
nxsensor-3.5.0-1
nxservice
nxspool-3.5.0-1
nxssh
nxuexec
nx-X11
Should I compile each of them? And if so, how are they compiled, as
they don't have any Makefile's?
[1] http://mail.kde.org/pipermail/freenx-knx/2007-October/006041.html
More information about the FreeNX-kNX
mailing list