[FreeNX-kNX] How to compile FreeNX?

chris at ccburton.com chris at ccburton.com
Fri Dec 2 12:20:22 UTC 2011


freenx-knx-bounces at kde.org wrote on 02/12/2011 11:01:28:

[SNIP]

> 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



You need to set up the sonames properly


> 
> cp -a nx-X11/programs/Xserver/nxagent ${NXPREFIX}/bin
> cp -a nxproxy/nxproxy ${NXPREFIX}/bin

You need to set up the wrappers with LD_LIBRARY_PATH

> 
> 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

That's FreeNX 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.

You need to set up the sonames and 
        "# Where can different nx components be found"
in nxloadconfig ifits changed.


> Warning: Invalid value "CUPS_ETC=/etc/cups/"
>          Users will not be able to enable printing.

No cups !!  ignore


> 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.

No xdm kde or cde, ignore

  let me guess, you only want gnome


> 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.

        update /etc/nxserver/node.cond with /sbin/mount.cifs etc

                if you have samba and want mounts


> Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
>          Users will not be able to enable printing.

still no cups  ignore


> 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.

         sudo atp-get install expect
but
        don't you have it as standard?? is it elsewhere ??

        try    which expect


> 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.


        mising binary or wrappers not set up correctly see above . . .


> 
>   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

You don't compile FreeNX - its a series of scripts with
an already compiles binary for named pipes.

You just unzip it into the correct location.

32 bit and 64 bit are the same unless you use /usr/lib64/NX


> 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?



You need 

   nxagent 
    nxauth
    nxcomp
 nxcompext
nxcompshad
   nxproxy
    nx-X11

so you are missing a few.

There's no advantage to using 64 bit over 32 bit.







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20111202/6d5f0889/attachment.html>


More information about the FreeNX-kNX mailing list