| Remote access with FreeNX in 5 steps |
| Sunday, 30 January 2005 | |
|
NoMachine NX is a Terminal Server and remote access solution based on a comprising set of enterprise class open source technologies. NX makes it possible to run any graphical application on any operating system across any network connection at incredible speed. FreeNX application/thin-client server is based on NoMachine’s NX technology. It can operate remote X11 sessions over 56k modem dialup links or anything better. FreeNX package contains a free (GPL) implementation of the nxserver component. The following workshop describes the FreeNX installation on a Linux Mandrake server. Added 10 March 2005: 2. Get the source rpm and rebuild it 3. Repeat step 4 (“Prepare first run”) according to the article below. In the workshop setup the NX server is running behind a firewall. You can access it from outside your environment (i.e. the Internet) via an analog or ISDN MODEM or from inside you LAN. NOTE: Please make sure to configure your firewall correctly to allow SSH connections (Port 22) from both sides. The workshop setup could look like this:
Step 1: Download FreeNX Please download the following rpm packages here: freenx-0.2.7-2mdk Step 2: Create a user called nx useradd -u 500 -p "*" -s /usr/bin/nxserver nx Step 3: Installation Mandrake requires additional packages installed on your server. Please use your installation CD-ROM and install the following packages or use the Mandrake Control Center.
First of all we need to fix permissions on /var/lib/nxserver/nxhome/.ssh/authorized_keys2 Permissions need to be 640, otherwise you won't be able to connect and you'll receive error messages in /var/log/messages. chmod 640 /var/lib/nxserver/nxhome/.ssh/ authorized_keys2 Now we'll need to copy the secure key that was generated onto the client machines so that your NX client can use it. The key on the server is located in "/var/lib/nxserver/nxhome/.ssh/client.id_dsa.key". If you are using Linux on your client machines you will need to copy it to "/usr/NX/share/client.id_dsa.key" and chmod 644 it. If you are using Windows on your client machines you will need to copy it to "C:Program FilesNX client for Windowsshare" on your client machine . Next we add the NX capable user and setup a password for them. adduser user1 Add NX user like this: /usr/bin/nxserver --adduser user1 Step 5 – Run freenx and use Linux or Windows clients to connect to your server After the rpm package installation, freenx is already running. Start, stop and restart the service using the following commands: nxserver --start: Start the nx server Linux NX Client : Please install the package nxclient-1.4.0-50 from your installation CD-ROM and run it from the console or download it first from here: http://www.nomachine.com/download.php Windows NX client : Download the NoMachine NX client for Windows here and install it on your Windows box: Add Host, Port and Desktop settings like this and login as a nx user you created in step 4.
At this point we should have everything on our FreeNX server setup and ready to test. It is now time to try connecting to your new FreeNX server. Good luck! |