[FreeNX-kNX] How to compile FreeNX?
chris at ccburton.com
chris at ccburton.com
Fri Dec 2 14:08:29 UTC 2011
freenx-knx-bounces at kde.org wrote on 02/12/2011 13:20:44:
Planet ubuntu does everything differently (from the way
FreeNX was originaly installed) so I can't tell you exactly
what your .deb will do . .
> >> 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
> >
If you have a compiler and the devel-s installed
compiling agent and the libs is easy.
A few versions ago it was nesessary to add a few
defs to get it all to compile which put most people
off
This is wher everything goes in Suse
/usr/lib64/NX
/usr/lib64/NX/lib
/usr/lib64/NX/lib/libXcomp.so.3.5.0
/usr/lib64/NX/lib/libXcompext.so.3
/usr/lib64/NX/lib/libXext.so.6
/usr/lib64/NX/lib/libXrender.so
/usr/lib64/NX/lib/libXcompext.so
/usr/lib64/NX/lib/libXrender.so.1.2.2
/usr/lib64/NX/lib/libXrender.so.1
/usr/lib64/NX/lib/libXcomp.so
/usr/lib64/NX/lib/libXcompshad.so.3.5.0
/usr/lib64/NX/lib/libX11.so.6.2
/usr/lib64/NX/lib/libXcomp.so.3
/usr/lib64/NX/lib/libXcompshad.so
/usr/lib64/NX/lib/libXext.so.6.4
/usr/lib64/NX/lib/libXext.so
/usr/lib64/NX/lib/libXcompshad.so.3
/usr/lib64/NX/lib/libX11.so.6
/usr/lib64/NX/lib/libXcompext.so.3.5.0
/usr/lib64/NX/lib/libX11.so
/usr/lib64/NX/nxagent note nxagent Binary
/usr/lib64/NX/nxauth note nxauth Binary
/usr/lib64/NX/nxproxy note nxproxy binary
Update nxloadconfig for lib64
# Where can different nx components be found
NX_DIR=/usr/
PATH_BIN=$NX_DIR/bin # if you change that, be sure to also change the
public keys
PATH_LIB=$NX_DIR/lib64/NX/lib
/usr/bin/nxacl
/usr/bin/nxacl.sample
/usr/bin/nxagent note nxagent Wrapper
/usr/bin/nxauth note nxauth Wrapper
/usr/bin/nxcheckload.sample
/usr/bin/nxcupsd-wrapper
/usr/bin/nxcups-gethost
/usr/bin/nxdesktop_helper
/usr/bin/nxdialog
/usr/bin/nxkeygen
/usr/bin/nxloadconfig
/usr/bin/nxnode
/usr/bin/nxpasswd
/usr/bin/nxprint
/usr/bin/nxproxy note nxproxy Wrapper
/usr/bin/nxredir
/usr/bin/nxserver
/usr/bin/nxserver-helper
/usr/bin/nxserver-suid
/usr/bin/nxserver-usermode
/usr/bin/nx-session-launcher
/usr/bin/nx-session-launcher-suid
/usr/bin/nxsetup
/usr/bin/nxviewer_helper
the wrappers can all be the same or 1 with ln -s
as follows, note again lib64
#!/bin/sh
NXCOMMAND=$(basename $0)
export
LD_LIBRARY_PATH=/usr/lib64/NX/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
exec /usr/lib/NX/$NXCOMMAND ${1+"$@"}
ubuntu may have things elsewhere, but you can see how it all
hangs together
>
> Does that mean that I should change "${NXPREFIX}" with "/usr/NX" for
> all the commands?
>
> >> 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
>
> Does that mean
>
> echo "/usr/NX/lib" > /etc/ld.so.conf.d/nx.conf
>
> >> 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
> >
> > ????
>
> I got that from trunk/freenx-server/INSTALL.
so, are you running gentoo ??
>
> >> ----> 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.
>
> If sonames is fixed as described above, do I then do to do something
here?
>
> > let me guess, you only want gnome
>
> Yes =)
Yuk!!
>
> > sudo atp-get install expect
> > but
> > don't you have it as standard?? is it elsewhere ??
> >
> > try which expect
>
> I needed to install it myself on Ubuntu Alternate 11.10 64bit
>
> >> 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 . . .
>
> Replacing "${NXPREFIX}" with "/usr/NX" solved it, so I assume that was
> correct. Why it worked, I don't understand.
>
> > You don't compile FreeNX - its a series of scripts with
> > an already compiles binary for named pipes.
>
> Very impressive.
>
> > You just unzip it into the correct location.
> >
> > 32 bit and 64 bit are the same unless you use /usr/lib64/NX
>
> Does "make install" take care of all that?
No, it knows nothing . . .
You need to make world in nx-X11
then ./configure and make in nxproxy
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
If you strip them they become noticably smaller.
>
> > 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.
>
> No I see. When I downloaded all the source packages, and unpacked them
> some of then (e.g. nxagent and nxauth) put its files in nx-X11 and got
> compiled from there. So this step should be fine =)
I do hope you are enjoying this exercise !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20111202/c0f36d29/attachment.html>
More information about the FreeNX-kNX
mailing list