EDV:FreeNX/NX-3.3.0-freenx-svn

From KIP Wiki
⧼kip-jumptonavigation⧽⧼kip-jumptosearch⧽

FreeNX svn (0.7.3) mit NX-3.3.0 backend

Dies ist nur eine Kurzanleitung.

vorher

aptitude install patch libc6-dev expect
aptitude install foomatic-db-engine foomatic-db
aptitude install smbfs
aptitude install x11vnc xvnc4viewer rdesktop

Download

Nomachine.com

Benötigt werden auch die Pakete von http://nomachine.com :

wget http://64.34.161.181/download/3.3.0/Linux/nxclient_3.3.0-6_i386.deb
wget http://64.34.161.181/download/3.3.0/Linux/nxnode_3.3.0-17_i386.deb
wget http://64.34.161.181/download/3.3.0/Linux/FE/nxserver_3.3.0-22_i386.deb

FreeNX

svn checkout svn://svn.berlios.de/freenx

NX-Installation

dpkg -i nx*3.3*.deb
chmod 755 /usr/lib/cups/backend/ipp

mv /usr/NX/bin/nxserver /usr/NX/bin/nxserver.nomachine
mv /usr/NX/bin/nxnode /usr/NX/bin/nxnode.nomachine

FreeNX-Installation 1.Schritt

cd freenx/trunk/freenx-server/

patch -p0 < gentoo-nomachine.diff
make
make install

FreeNX Konfiguration

Nehmen wir die Beispiel-Konfigurationsdatei als Grundlage:

test -f /usr/NX/etc/node.conf || cp node.conf.sample /usr/NX/etc/node.conf
chmod 644 /usr/NX/etc/node.conf

Diese Konfig-Datei ändern wir, z.B.:

# grep -v "^#" /usr/NX/etc/node.conf | grep -v "^$"
NX_LOG_LEVEL=5
COMMAND_FOOMATIC=/usr/bin/foomatic-ppdfile
CUPS_IPP_BACKEND="$CUPS_BACKEND/nx"
COMMAND_START_KDE=/usr/bin/icewm-session
COMMAND_START_CDE=/usr/bin/icewm-session
COMMAND_XAUTH=/usr/bin/xauth
COMMAND_SMBMOUNT=/usr/bin/smbmount
COMMAND_SMBUMOUNT=/usr/bin/smbumount
COMMAND_NETCAT=/bin/netcat
COMMAND_MD5SUM="/usr/bin/md5sum"
COMMAND_RDESKTOP=/usr/bin/rdesktop
COMMAND_VNCVIEWER=/usr/bin/vncviewer
COMMAND_X11VNC=/usr/bin/x11vnc
ENABLE_EXTERNAL_NXDESKTOP="1"
ENABLE_EXTERNAL_NXVIEWER="1"
DEFAULT_X_SESSION=/etc/X11/Xsession

in /usr/NX/bin/nxloadconfig

Zeile 610

	[ -z "$(strings $PATH_BIN/nxagent | egrep 'NXAGENT - Version 1.5.0|NXAGENT - Version 2.[01].0|NXAGENT - Version 3.[012].0')" ] && \

ändern in (Erweiterung der Liste der NX-Server-Versionen)

	[ -z "$(strings $PATH_BIN/nxagent | egrep 'NXAGENT - Version 1.5.0|NXAGENT - Version 2.[01].0|NXAGENT - Version 3.[0123].0')" ] && \

FreeNX-Installation 2.Schritt

touch /var/log/nxserver.log
( cd /usr/NX/lib && ln -s libXrender.so.1.2.2 libXrender.so.1.2 )

Testen wir die Konfiguration

# /usr/NX/bin/nxloadconfig --check
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.

  Warnings occured during config check.
  To enable these features please correct the configuration file.
ln -s /usr/NX/bin/nxclient /usr/local/bin/
ln -s /usr/NX/bin/nxsetup /usr/local/bin/
ln -s /usr/NX/bin/nxloadconfig /usr/local/bin/ 
ln -s /usr/NX/bin/nxserver /usr/local/bin/

Aktivierung der Installation

nxsetup --install --clean --purge