<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 02/12/2011 13:20:44:</font></tt>
<br>
<br><tt><font size=2>Planet ubuntu does everything differently (from the
way</font></tt>
<br><tt><font size=2>FreeNX was originaly installed) so I can't tell you
exactly</font></tt>
<br><tt><font size=2>what your .deb will do . . </font></tt>
<br><tt><font size=2><br>
<br>
> >> NXPREFIX=/usr/NX<br>
> >> mkdir -p ${NXPREFIX}/lib ${NXPREFIX}/bin<br>
> >><br>
> >> cp -a nx-X11/lib/X11/libX11.so* ${NXPREFIX}/lib<br>
> >> cp -a nx-X11/lib/Xext/libXext.so* ${NXPREFIX}/lib<br>
> >> cp -a nx-X11/lib/Xrender/libXrender.so* ${NXPREFIX}/lib<br>
> >> cp -a nxcomp/libXcomp.so* ${NXPREFIX}/lib<br>
> >> cp -a nxcompext/libXcompext.so* ${NXPREFIX}/lib<br>
> ><br>
</font></tt>
<br><tt><font size=2>If you have a compiler and the devel-s installed</font></tt>
<br><tt><font size=2>compiling agent and the libs is easy.</font></tt>
<br>
<br><tt><font size=2>A few versions ago it was nesessary to add a few</font></tt>
<br><tt><font size=2>defs to get it all to compile which put most people</font></tt>
<br><tt><font size=2>off</font></tt>
<br>
<br><tt><font size=2>This is wher everything goes in Suse</font></tt>
<br><tt><font size=2><br>
</font></tt>
<br><tt><font size=2>/usr/lib64/NX</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcomp.so.3.5.0</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcompext.so.3</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXext.so.6</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXrender.so</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcompext.so</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXrender.so.1.2.2</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXrender.so.1</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcomp.so</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcompshad.so.3.5.0</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libX11.so.6.2</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcomp.so.3</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcompshad.so</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXext.so.6.4</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXext.so</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcompshad.so.3</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libX11.so.6</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libXcompext.so.3.5.0</font></tt>
<br><tt><font size=2>/usr/lib64/NX/lib/libX11.so</font></tt>
<br>
<br><tt><font size=2>/usr/lib64/NX/nxagent
note nxagent Binary</font></tt>
<br><tt><font size=2>/usr/lib64/NX/nxauth
note nxauth Binary</font></tt>
<br><tt><font size=2>/usr/lib64/NX/nxproxy
note nxproxy binary</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>Update nxloadconfig for lib64</font></tt>
<br>
<br><tt><font size=2># Where can different nx components be found</font></tt>
<br><tt><font size=2>NX_DIR=/usr/</font></tt>
<br><tt><font size=2>PATH_BIN=$NX_DIR/bin # if you change that, be sure
to also change the public keys</font></tt>
<br><tt><font size=2>PATH_LIB=$NX_DIR/lib64/NX/lib</font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2>/usr/bin/nxacl</font></tt>
<br><tt><font size=2>/usr/bin/nxacl.sample</font></tt>
<br><tt><font size=2>/usr/bin/nxagent
note nxagent Wrapper</font></tt>
<br><tt><font size=2>/usr/bin/nxauth
note nxauth Wrapper</font></tt>
<br><tt><font size=2>/usr/bin/nxcheckload.sample</font></tt>
<br><tt><font size=2>/usr/bin/nxcupsd-wrapper</font></tt>
<br><tt><font size=2>/usr/bin/nxcups-gethost</font></tt>
<br><tt><font size=2>/usr/bin/nxdesktop_helper</font></tt>
<br><tt><font size=2>/usr/bin/nxdialog</font></tt>
<br><tt><font size=2>/usr/bin/nxkeygen</font></tt>
<br><tt><font size=2>/usr/bin/nxloadconfig</font></tt>
<br><tt><font size=2>/usr/bin/nxnode</font></tt>
<br><tt><font size=2>/usr/bin/nxpasswd</font></tt>
<br><tt><font size=2>/usr/bin/nxprint</font></tt>
<br><tt><font size=2>/usr/bin/nxproxy
note nxproxy Wrapper</font></tt>
<br><tt><font size=2>/usr/bin/nxredir</font></tt>
<br><tt><font size=2>/usr/bin/nxserver</font></tt>
<br><tt><font size=2>/usr/bin/nxserver-helper</font></tt>
<br><tt><font size=2>/usr/bin/nxserver-suid</font></tt>
<br><tt><font size=2>/usr/bin/nxserver-usermode</font></tt>
<br><tt><font size=2>/usr/bin/nx-session-launcher</font></tt>
<br><tt><font size=2>/usr/bin/nx-session-launcher-suid</font></tt>
<br><tt><font size=2>/usr/bin/nxsetup</font></tt>
<br><tt><font size=2>/usr/bin/nxviewer_helper</font></tt>
<br>
<br><tt><font size=2>the wrappers can all be the same or 1 with ln -s</font></tt>
<br><tt><font size=2>as follows, note again lib64</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>#!/bin/sh</font></tt>
<br>
<br><tt><font size=2>NXCOMMAND=$(basename $0)</font></tt>
<br>
<br><tt><font size=2>export LD_LIBRARY_PATH=/usr/lib64/NX/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}</font></tt>
<br><tt><font size=2>exec /usr/lib/NX/$NXCOMMAND ${1+"$@"}</font></tt>
<br>
<br>
<br><tt><font size=2>ubuntu may have things elsewhere, but you can see
how it all</font></tt>
<br><tt><font size=2>hangs together</font></tt>
<br>
<br>
<br><tt><font size=2>> <br>
> Does that mean that I should change "${NXPREFIX}" with "/usr/NX"
for<br>
> all the commands?<br>
> <br>
> >> cp -a nx-X11/programs/Xserver/nxagent ${NXPREFIX}/bin<br>
> >> cp -a nxproxy/nxproxy ${NXPREFIX}/bin<br>
> ><br>
> > You need to set up the wrappers with LD_LIBRARY_PATH<br>
> <br>
> Does that mean<br>
> <br>
> echo "/usr/NX/lib" > /etc/ld.so.conf.d/nx.conf<br>
> <br>
> >> apt-get install subversion patch xutils-dev<br>
> >> svn checkout svn://svn.berlios.de/freenx/trunk<br>
> >> cd /root/trunk/freenx-server<br>
> >> patch -p0 < gentoo-nomachine.diff<br>
> ><br>
> > ????<br>
> <br>
> I got that from trunk/freenx-server/INSTALL.<br>
</font></tt>
<br><tt><font size=2>so, are you running gentoo ??</font></tt>
<br>
<br>
<br><tt><font size=2>> <br>
> >> ----> Testing your nxserver configuration ...<br>
> >> Warning: Could not find nxdesktop in /usr/NX/bin. RDP sessions
won't work.<br>
> >> Warning: Could not find nxviewer in /usr/NX/bin. VNC sessions
won't work.<br>
> >> Warning: Invalid value<br>
> >> "APPLICATION_LIBRARY_PRELOAD=/usr/NX/lib/libX11.so.6.2:<br>
> >> /usr/NX/lib/libXext.so.6.4:/usr/NX/lib/libXcomp.so:<br>
> >> /usr/NX/lib/libXcompext.so:/usr/NX/lib/libXrender.so.1.2".<br>
> >> /usr/NX/lib/libXrender.so.1.2 could not be found. Users will
not be<br>
> >> able to run a single application in non-rootless mode.<br>
> ><br>
> > You need to set up the sonames and<br>
> > "# Where can different nx components
be found"<br>
> > in nxloadconfig ifits changed.<br>
> <br>
> If sonames is fixed as described above, do I then do to do something
here?<br>
> <br>
> > let me guess, you only want gnome<br>
> <br>
> Yes =)<br>
</font></tt>
<br><tt><font size=2>Yuk!!</font></tt>
<br>
<br><tt><font size=2>> <br>
> > sudo atp-get install expect<br>
> > but<br>
> > don't you have it as standard?? is
it elsewhere ??<br>
> ><br>
> > try which expect<br>
> <br>
> I needed to install it myself on Ubuntu Alternate 11.10 64bit<br>
> <br>
> >> Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version
string in<br>
> >> nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed
for this<br>
> >> version of FreeNX.<br>
> ><br>
> > mising binary or wrappers not set
up correctly see above . . .<br>
> <br>
> Replacing "${NXPREFIX}" with "/usr/NX" solved
it, so I assume that was<br>
> correct. Why it worked, I don't understand.<br>
> <br>
> > You don't compile FreeNX - its a series of scripts with<br>
> > an already compiles binary for named pipes.<br>
> <br>
> Very impressive.<br>
> <br>
> > You just unzip it into the correct location.<br>
> ><br>
> > 32 bit and 64 bit are the same unless you use /usr/lib64/NX<br>
> <br>
> Does "make install" take care of all that?<br>
</font></tt>
<br><tt><font size=2>No, it knows nothing . . .</font></tt>
<br>
<br><tt><font size=2>You need to make world in nx-X11</font></tt>
<br><tt><font size=2>then ./configure and make in nxproxy</font></tt>
<br>
<br><tt><font size=2>then copy out the finished files</font></tt>
<br>
<br><tt><font size=2>nx-X11/lib/X11/libX11.so*</font></tt>
<br><tt><font size=2>nx-X11/lib/Xext/libXext.so*</font></tt>
<br><tt><font size=2>nx-X11/lib/Xrender/libXrender.so*</font></tt>
<br><tt><font size=2>nxcompext/libXcompext.so*</font></tt>
<br><tt><font size=2>nxcompshad/libXcompshad.so*</font></tt>
<br><tt><font size=2>nxcomp/libXcomp.so*</font></tt>
<br><tt><font size=2>nx-X11/programs/Xserver/nxagent</font></tt>
<br><tt><font size=2>nx-X11/programs/nxauth/nxauth</font></tt>
<br><tt><font size=2>nxproxy/nxproxy</font></tt>
<br>
<br><tt><font size=2>If you strip them they become noticably smaller.</font></tt>
<br>
<br><tt><font size=2>> <br>
> > You need<br>
> ><br>
> > nxagent<br>
> > nxauth<br>
> > nxcomp<br>
> > nxcompext<br>
> > nxcompshad<br>
> > nxproxy<br>
> > nx-X11<br>
> ><br>
> > so you are missing a few.<br>
> ><br>
> > There's no advantage to using 64 bit over 32 bit.<br>
> <br>
> No I see. When I downloaded all the source packages, and unpacked
them<br>
> some of then (e.g. nxagent and nxauth) put its files in nx-X11 and
got<br>
> compiled from there. So this step should be fine =)<br>
</font></tt>
<br><tt><font size=2>I do hope you are enjoying this exercise !!</font></tt>
<br>