Freenx What Is Freenx: Terminology
Freenx What Is Freenx: Terminology
com/community/FreeNX
Partners
Support
Community
Ubuntu.com
Page History
Login to edit
Search
FreeNX
FreeNX is a system that allows you to access your desktop 1. What is FreeNX
from another machine over the Internet. You can use this to 1. Terminology
2. Installation Prerequisites
login graphically to your desktop from a remote location. One
1. Installing the FreeNX server on
example of its use would be to have a FreeNX server set up
Ubuntu Karmic (9.10) and higher
on your home computer, and graphically logging in to the
2. Installing the FreeNX server on
home computer from your work computer, using a FreeNX older Ubuntu Versions
client. 3. Installing the NX Client
4. Installing QTNX (Opensource
It's Open Source, secure (SSH based), fast and versatile! client)
License: GPL 3. Miscellany
1. NX Server Free Edition
Note: Running FreeNX as server on Ubuntu with the free 2. Neatx
"NX Client for Windows" from NoMachine on a Windows 3. x2go
workstation is working fine, except resuming sessions. 4. FreeNX on PowerPC
5. How to start/stop FreeNX
Terminology 6. Configuring SSH port
7. Using custom SSH keys
8. Using Custom SSH keys on Lucid
The Server is the computer you want to connect to. This is
4. Troubleshooting
the computer where the FreeNX server will need to be 5. References
installed. The name of the Ubuntu package providing the 1. Related docs
server is "freenx". For the example used here, the home 2. Desktop integration wanted
computer is the server.
Installation Prerequisites
Before installing FreeNX server make sure you have SSH set up and is working. You can find the SSH
Howto here: https://help.ubuntu.com/community/SSHHowto
We will be installing the FreeNX server on the Server machine, i.e., the machine that you want to access
remotely. In the stated example, this is your computer that is at home.
FreeNX is not included in Ubuntu, so we'll add it from the FreeNX Team PPA. This step will be in the
installation instructions for your Ubuntu distribution of choice below.
For the paranoid: there is an added security risk involved in using the default keys. If you keep the default
keys then everybody will be able to connect to your SSH server as the NX user which is added to your
system during the installation. This opens an additional (and unnecessary) opportunity to attack your
computer. You could avoid it by using custom SSH keys, as explained later.
1 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
Applications->Accessories->Terminal
or
4. As of July 2014, there are no packages built for Saucy, Raring and Quantal ( but the Precise packages
seem to work ), Maverick or Natty ( but the packages for Lucid seem to work). There are packages
for Precise so skip this step. Update the sources list as follows:
5. Update Apt
6. Install FreeNX
As of July 2011, the FreeNX PPA package is missing the nxsetup script. The script can be
downloaded from here by issuing:
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz
8. Run nxsetup:
FreeNX is not included in Ubuntu, so we'll add it from the FreeNX Team PPA.
Add this repository using the Third-Party Sources Tab in Software Sources. When it asks, Reload the
information about available software. Now you can see and install the freenx package in Synaptic
Package Manager.
2 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
where VERSION can be: dapper, hardy, intrepid or jaunty. More information can be found at FreeNX
Team PPA.
4. After you add the repository, then install the freenx package (using Aptitude to install extra needed
packages).
5. Now use nxsetup to install necessary files and create the special user "nx"
You should be able to access your Ubuntu box from any Windows or Linux box using the free client from
NoMachine's website. You can also embed your NX Server in a webpage by installing the Nomachine Web
Companion and the Apache webserver.
Now you can execute the installed client using the following command:
/usr/NX/bin/nxclient &
This will start the NX client in a GUI, and step you through getting connected to the FreeNX server, and
you will be on your way! [Note: If you are behind a firewall you may need to enable SSL encryption under
the Advanced configuration tab - JeremySchroeder]
Miscellany
NX Server Free Edition
NX Server Free Edition provided by NoMachine is not related to FreeNX. NXSFE has a limit of 2 sessions
per server. FreeNX doesn't have this limit.
Neatx
Neatx is a similar system to FreeNX, produced by Google.
It's Open Source, secure (SSH based), but does have some feature drawbacks compared to FreeNX.
License: GPL2
x2go
x2go is another similar system to FreeNX, labelled as an "Open source terminal server project". The
Ubuntu version is offered as a PPA similar to FreeNX, and is noted as having several features including
remote audio, printing, and shared directories. x2go is also known for the ease in which it can be set up.
FreeNX on PowerPC
3 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
There are no precompiled binaries of FreeNX on this platform (Launchpad PPA doesn't provide support),
so FreeNX have to be compiled from source. Sources can be found at the FreeNX Team PPA.
These steps will build FreeNX from source (you need to add the deb-src repository):
This will download the source tarballs and build the freenx packages (*.deb) in the current directory.
Find
Port 22
and change it to
Port 8888
/etc/init.d/ssh restart
FreeNX should detect the SSHD port, but otherwise: Edit the file /etc/nxserver/node.conf
Find
That is, change the port number to the one that sshd is listening to, and uncomment the line.
4 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
custom keys.
To change the default keys to your own custom keys - on the machine hosting the freenx-server, run the
command:
This will launch a dialogue that will guide you through the generation of custom keys. On the first page
hit 'OK' and on the second page select 'Create new custom keys'
Now, we need to transfer the key to the client machine so that it can be imported in the FreeNX client
application. First copy the key to your home directory on the server machine:
sudo cp /var/lib/nxserver/home/.ssh/client.id_dsa.key ~/
Next, copy client.id_dsa.key to your client machine. Ideally you should copy the file securely, for example
by running the following command from the client computer:
scp user@freenx-server:~/client.id_dsa.key ~/
which will securely copy the client.id_dsa.key file from the freenx-server computer to your home directory
on the client.
If your client is a Windows machine, just copy the key with your preferred method.
After you have tested that authentication is working using your custom keys you should then remove the
client.id_dsa.key file from your home directories on both the server and client machines.
Objective:
Custom Keys.
You can add them from Menu > System > Administration > Software Sources
Click the Other Software Tab > Click Add and paste each line separately.
sudo vi /etc/apt/sources.list.d/freenx
i (insert) > paste
esc > :wq
ls -l /usr/lib/nx/nxsetup
Get NXSETUP
Unpack it:
In Nautilus,navigate to where you downloaded nxsetup > right click on the file to get the context menu,
and then select Extract Here
5 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
At the terminal:
Install it:
Now, since i opted to use 'PASSDB' as the authentication method, the following also has to be done:
ENABLE_PASSDB_AUTHENTICATION="1"
sudo vi /etc/ssh/sshd_config
i (insert)
AllowUsers nx jra
sudo /usr/lib/nx/nxkeygen
/var/lib/nxserver/home/.ssh/client.id_dsa.key
on their computers.
Now securely transfer the file from the freenx-server, to home directory on your client machine.
6 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
For safety, do delete the ~/client.id_dsa.key from your client machine when finished.
wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-7_i386.deb
Install with GDebi from the Nautilus context menu, if installed, or in the terminal with,
Next:
Do not check the disable encryption box if you want SSL encryption.
Next:
Click Finish.
In the advanced dialog window under the General Tab, you should see the items you have already
entered, and to the right of Remember my password there is a Key... button.
Click the Key button, a window will popup initially displaying the Default Key
Now, Click the Import button, navigate to the directory where you saved the client.id_dsa.key file you
copied from the server, and select it to open and import the key. You show now see the custom keys which
should be different from the initial default key.
Login: User ID
Password: Blank
Just enter the password you added too the nxserver database, Click Login, the nxclient will make's the
connection, and once there are no errors, you should be on your remote machine.
If your client is a Windows machine, just copy the key with your preferred method.
After you have tested that authentication is working using your custom keys you should then remove the
client.id_dsa.key file from your home directories on both the server and client machines.
7 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
Troubleshooting
Problem: Everything is installed as described above, but I still get errors at installing nxsetup
--install
Solution: The issue is due custom SSH server configuration. Check /etc/ssh/sshd_config to see if
this line exists "AllowUsers nx" and is set to authorized_keys2 "AuthorizedKeysFile %h/.ssh
/authorized_keys2", if commented, just uncomment them. after that run this command in a terminal
Problem: At the client, the !M logo window appears, but after a few seconds that window just
closes, even without showing any error message.
Solution: The issue is due custom VNC configuration. In the server, access your home directory and
run these commands,
sudo rm .Xauthority*
touch .Xauthority
chmod 600 .Xauthority
Problem: What can I do if I get the error "Could not yet establish the connection to the remote
proxy"?
Solution: This commonly happens when the Advanced tab configuration option "Disable encryption
of all traffic" has been selected, but the appropriate firewall ports have not been opened. Open the
necessary firewall ports, or uncheck the option to re-enable encryption over SSH. NoMachine
knowledge base article
Problem: NX Client connects and displays the desktop but the screen does not refresh.
Problem: NX Client authenticates user NX and tries to authenticate normal user but then fails with:
Permission denied (publickey).
NX> 280 Exiting on signal: 15.
Problem: NX session started from Linux client cannot be resumed on Windows client
(http://mail.kde.org/pipermail/freenx-knx/2011-January/009152.html)
References
FreeNX on Wikipedia
FreeNX Team PPA An up-to-date repository from the FreeNX Team, for Ubuntu 8.04 (Hardy), 8.10
(Intrepid) or 9.04 (Jaunty)
Ubuntu Forums HowTo FreeNx How to remote desktop using SSH and FreeNX - OpenGL Seveas
Repositories
Related docs
You can also have a look at the article about installing the NX packages provided by NoMachine company
8 of 9 25/09/2020 09:19
FreeNX - Community Help Wiki https://help.ubuntu.com/community/FreeNX
149482 :nx support in krdc (client), it seems that work is already in progress, and there only a few
problems left.
The same should be done on gnome side, for vino and vinagre.
NXLaunch is another solution and could possibly be integrated in other Remote Desktop clients.
FreeNX (editada pela última vez em 2014-07-09 13:22:33 por davideddu @ dynamic-
adsl-84-223-19-186.clienti.tiscali.it[84.223.19.186]:davideddu)
9 of 9 25/09/2020 09:19