[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to setup FreeNX server under Debian Sarge!

Hi All,

Everyone (osnews, slashdot, etc) keep talking about FreeNX FreeNX FreeNX and about how great it is, I had to try it!

After doing some research, looking into how this was done, I did not find any recent documents describing how to set up the latest version in Debian Sarge.

1) Server = Debian Sarge Testing (03/22/05)
2) Client = Windows XP SP2

Here is what worked for me:

How to setup FreeNX using Debian Sarge:

1. Download this package for Linux and the server.

2. Download this package for Windows.

3. Download this package as it has the scripts required to use the libraries.

4. Login as root and execute the following commands.
tar zxvf xserver-1.4.0-107.i386.tar.gz
mv NX /usr

5. Then setup the freenx scripts.
tar zxvf freenx-0.3.1.tar.gz
cd freenx-0.3.1
patch -p0 < *diff
chown root:root *
cp node.conf.sample /usr/NX/etc/node.conf
cp nxkeygen nxnode nxnode-login nxserver nxsetup nxloadconfig /usr/NX/bin/

6. Now setup the server.
cd /usr/NX/bin
./nxsetup --install

7. The installer has a bug, so fix it.
chmod 640 /usr/NX/home/nx/.ssh/authorized_keys2

8. Copy the client.id_dsa.key file from UNIX to your Windows client.
Copy /usr/NX/home/nx/.ssh/client.id_dsa.key to C:\Program Files\NX Client for Windows\share

9. Install the appropriate libraries for Debian.
apt-get install libstdc++2.10-glibc2.2

10. Install rpm.
apt-get install rpm.

11. Download the RPM as it has a library that is not included with the rest of the distribution.

12. Decompress the rpm.
rpm2cpio NX*rpm > cpio-archive
cpio -d -i < cpio-archive

13. From the directory you decompressed the archvie in, copy the missing library from here to /usr/NX/lib.
cp usr/NX/lib/libXcomp.* /usr/NX/lib

14. After installing the libXcomp.so.1.4.0 library, we need another library, because libXcomp is for RPM distributions.
apt-get install libpng3

15. Add the NX library path to /etc/ld.so.conf
echo "/usr/NX/lib" >> /etc/ld.so.conf

16. Update the library search path.
ldconfig -v

17. If you do not perform all these library fixes, nxagent will not load and the server won't start.

18. Next, add a user and a password.
p600:/usr/NX/bin# ./nxserver --adduser jpiszcz
NX> 100 NXSERVER - Version 1.4.0-03 OS (GPL)
NX> 1000 NXNODE - Version 1.4.0-03 OS (GPL)
NX> 716 Public key added to: /home/jpiszcz/.ssh/authorized_keys2
NX> 1001 Bye.
NX> 999 Bye
p600:/usr/NX/bin# ./nxserver --passwd jpiszcz
NX> 100 NXSERVER - Version 1.4.0-03 OS (GPL)
New password:
Password changed.
NX> 999 Bye

19. Login with your username and password and it should work now.


Reply to: