INTRODUCTION
------------

This is the FreeNX server package.

DEPENDENCIES
------------

It depends on:

- NX sources
- X11 libraries
- sshd
- expect
- netcat

NOTE
----

This tarball is intented mainly for distributions, which want to use FreeNX as building the other OpenSource NX components is quite difficult.

In the following sections it is outlined how to install FreeNX as soon as you've build all open source components. 

HOWTO MANUALLY INSTALL
----------------------

The easy way:

See: http://mail.kde.org/pipermail/freenx-knx/2007-October/006041.html

The real way:

You must apply the gentoo-nomachine.diff and then copy the files to /usr/NX/bin and /usr/NX/lib.

Here is a howto:

Get all sources except nx-X11-compat.tar.gz from www.nomachine.com/sources.php

Untar all sources, install all dependencies then do:

  $ cd nx-X11
  $ make World
  $ cd ..
  $ cd nxproxy
  $ ./configure && make

# Libraries

You can use the following schema to do the install to /usr/NX/:

  $ 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

# binaries

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

### Now comes the FreeNX part

# build binaries and libs included in FreeNX distribution

  $ cd freenx-<version>
  $ patch -p0 < gentoo-nomachine.diff
  $ make
  $ make install

You should also install the nxclient from NoMachine or install Xdialog. 

Then you need to run 'nxsetup --install' and follow the instructions given.

Have Fun!

Best regards,

Fabian

--

Old way without Makefile (instead of make; make install):

# nxredir

  $ cd nxredir
  $ make
  $ cd ..

# nxserver-helper
  
  $ cd nxserver-helper
  $ make
  $ cd ..

# nxpasswd

  $ cd nxviewer-passwd
  $ xmkmf
  $ make World
  $ cd ..

# install binaries included in FreeNX trunk

  $ cd nxredir
  $ make install
  $ cd ..
  $ cp -a nxserver-helper/nxserver-helper ${NXPREFIX}/bin
  $ cp -a nxviewer-passwd/nxpasswd/nxpasswd ${NXPREFIX}/bin

# scripts

  $ cp nx* ${NXPREFIX}/bin

# config file

  $ cp -a freenx*/node.conf.sample ${NXPREFIX}/etc/

SVN: $Id: INSTALL 536 2008-03-27 18:54:08Z fabianx $
