FreeNX Setup on SuSE Linux Enterprise (SGI Altix 3000 Itanium 64bit)








 

I. FreeNX Server Setup

  1. Build NX Libraries
    1. Download NX sources
      1. Get all sources except nx-X11-compat.tar.gz from http://www.nomachine.com/sources.php
    2. Untar all sources, install all dependencies then do:
      1. $ cd nx-X11
      2. $ make World
      3. $ cd ..
      4. $ cd nxproxy
      5. $ ./configure && make
    3. Install the compiled libraries and binaries to /usr/local/freenx:
      1. $ NXPREFIX=/usr/local/freenx
      2. $ mkdir -p ${NXPREFIX}/lib ${NXPREFIX}/bin
      3. $ cp -a nx-X11/lib/X11/libX11.so* ${NXPREFIX}/lib
      4. $ cp -a nx-X11/lib/Xext/libXext.so* ${NXPREFIX}/lib
      5. $ cp -a nx-X11/lib/Xrender/libXrender.so* ${NXPREFIX}/lib
      6. $ cp -a nxcomp/libXcomp.so* ${NXPREFIX}/lib
      7. $ cp -a nxcompext/libXcompext.so* ${NXPREFIX}/lib
      8. $ cp -a nx-X11/programs/Xserver/nxagent ${NXPREFIX}/bin
      9. $ cp -a nxproxy/nxproxy ${NXPREFIX}/bin
    • *Note:* To compile those libraries, you need to have gtk-devel package installed.
  2. Build FreeNX Server
    1. Download FreeNX server source package:
      1. Download from: http://prdownload.berlios.de/freenx/freenx-server-0.7.3.tar.gz
    2. Compile FreeNX Server:
      1. $ cd freenx-
      2. $ patch -p0 < gentoo-nomachine.diff
      3. $ vi nxloadconfig
        • NX_DIR=/usr/local/freenx
        • PATH_BIN=$NX_DIR/bin
        • PATH_LIB=$NX_DIR/lib
      4. $ export DESTDIR=/usr/local/freenx
      5. $ make
      6. $ make install
      7. $ cp node.conf.sample $DESTDIR/etc/node.conf
    3. Xdialog is required. You need to download and build from source.
      1. Download http://xdialog.free.fr/Xdialog-2.3.1.tar.bz2
      2. Follow the instructions to build and install it.
    4. Setup nxserver
      1. $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/freenx/lib
      2. $ export PATH=$PATH:/usr/local/freenx/bin
      3. $ nxsetup --install
    5. Fix sessreg
      1. $ vi /usr/local/freenx/etc/node.conf
        • COMMAND_SESSREG="/usr/X11R6/bin/sessreg"
    6. Set font path on the server (NOTE: This is an import step, otherwise the Mac OS NX Clients cannot display the fonts properly.)
      1. $ vi /usr/local/freenx/etc/node.conf
        • AGENT_EXTRA_OPTIONS_X="-nolisten tcp -fp /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi"
    7. Modify the display base:
      1. $ vi /usr/local/freenx/etc/node.conf
        • DISPLAY_BASE=1001
    8. See also:
      1. Install Free NX server
      2. Fonts and NX
II. FreeNX Server Administration
  • Note: You need to operate as root and you need to export the env variables: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/freenx/lib; export PATH=$PATH:/usr/local/freenx/bin
  • See also:NX Server Admin Guide
  1. Server management
    1. To start server:
      1. $ nxserver start
    2. To stop server:
      1. $ nxserver stop
    3. To restart server:
      1. $ nxserver restart
  2. User management
    1. To add a user
      1. $ nxserver --adduser <user>
    2. To delete a user
      1. $ nxserver --deluser <user>
  3. Replacing the Default SSH Key-Pair with Keys Generated for Your Server: See section 4.4. of NX Server Admin Guide
III. FreeNX Client Setup
  1. Windows Client:
    1. Download from: http://www.nomachine.com/download-client-windows.php
  2. Mac OS X Client:
    1. Download from: http://www.nomachine.com/download-client-macosx.php
  3. Linux Client:
    1. Download from: http://www.nomachine.com/download-client-linux.php




No comments:

Post a Comment