How to install NX server and client under Ubuntu/Kubuntu Linux (revised)

This article has been replaced.  Please click here to read the new article.

22 Comments

  1. Thank you for the great post… I know it’s quite old, but Google referred me :)

    I followed the directions here, and had nxserver up an running in about 15 minutes (had to be done over ssh, which slowed me down).

    Prior attempts at installing nxserver took several hours each, as the directions I was following were nowhere near as clear, so I thank you profusely for such concise and useful information!

  2. [...] Following instructions over here. [...]

  3. velchinaski said

    HI
    whether you can connect through this program wifi ?
    I can connect from my iPhone in ubuntu 8.10…please help me if you now how :)
    Thx

  4. Henri said

    Thank you very much, very good tutorial. At first i was afraid to go ahead with this guide, since it looked long. But when i finally did, i got freenx working with first try. Thank you.

  5. yuwen said

    thanks for the information of great help! finally my nx is ok!

  6. Jeff said

    I tried this part and i am not sure on the commands on how to do this?

    I have some additions to the problem of enabling thes password authentication.
    I don’t like password authentication via the internet, even it is encrypted (Brute force attack etc).So I have created workaround. For this I use the inetd.conf and a second configuration file for the sshd.I also created a “new” service:

    ssh-nx

    /etc/services:
    ssh-nx 23/tcp #local fuer nxserver
    ssh-nx 23/udp #local fuer nxserver

    Then I created two entries in the inetd.conf.

    At first the entry for nx-user. This can only use authentication keys.

    ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4

    The second entry is the entry for the local users on the nxserver machine.

    Here you will see, that there is used another configuration file. It is /etc/ssh/sshd_config.nx. In this config file password authentication is allowed.

    For more security I also have done the following entry:

    AllowUsers: user1@127.0.0.1 user2@127.0.0.1

    So there is no possibility to abuse the sshds.

    And here is the second entry in the inetd.conf:

    ssh-nx stream tcp nowait root /usr/sbin/sshd sshd -i -4 -f /etc/ssh/sshd_config.nx
    (Wolfram)

  7. Jeremy Pyman said

    Very minor issue, but the command to check if the service is running is
    sudo /usr/NX/bin/nxserver –-status
    (note the second dash)

  8. Thanks, jeremy. There actually are two dashes in the raw text, but either WordPress is dropping one of them before displaying the article, or they are just so small that it looks like only one dash. In any case, I added a note under that line to make it clear that there are two dashes there.

  9. Brenda said

    Another way to fix the ssh config is to replace:

    AuthorizedKeysFile /usr/NX/home/nx/.ssh/authorized_keys2

    with:

    AuthorizedKeysFile %h/.ssh/authorized_keys2

    Then everything works as it should.

  10. steve said

    great article. easy to follow, yet very comprehensive. Thanks!

  11. Alf Gaida said

    Hello,
    in simple words – great job. Hint: WordPress makes a long dash from the two dashes (thanks to autocorrection). Everything worked like charm in Ubuntu 9.10 i386 with actual packets.

    Thanks a lot

    Alf

  12. Marty said

    Any way to install & use the nxserver without root access??

    That would make it MANY times more powerful (to the masses, and me!)

    – Marty

  13. ChrisTerry said

    Thanks for the well defined ‘How-To’. I too had my server up and running in about 15 minutes after following your instructions.

    I kind of agree with the idea of leaving out the ‘Shut Down’ functionality from a terminal services type desktop though.

    - Chris.

  14. Kaustubh said

    Ubuntu forums mentioned at Step 3) worked like a charm.
    Thank you so much!

    I had been struggling with this for almost a month!!

    No doubt NX gives unparalled performance gain!

  15. [...] get rid of this advertisement]'); Using nomachine trying to setup an nxserver. Installed nx per these instructions. Checking the status looks like this. [...]

  16. Vitali said

    The instructions greatly helped me to quickly set up NX client/server
    Thank you

  17. [...] Running Ubuntu 10.4 I have been through: http://ubuntuforums.org/showthread.php?t=1546856 http://michigantelephone.wordpress.c…kubuntu-linux/ It seems to me that NoMachine NX requires you leave password authentication on for SSH; This way [...]

  18. [...] NoMachine NX while still requiring key auth for SSH, possible? No Comments Running Ubuntu 10.4 I have been through: http://ubuntuforums.org/showthread.php?t=1546856 http://michigantelephone.wordpress.c…kubuntu-linux/ [...]

  19. [...] http://michigantelephone.wordpress.com/2007/10/15/how-to-install-nx-server-and-client-under-ubuntuku… document.getElementById("post-382-blankimage").onload(); [...]

  20. Bala said

    Hi I have the following error, when I try to connect my machine:
    /usr/NX/bin/server: Exec format error
    NX>280 Existing on signal: 15
    can you please help.

  21. bobo said

    Dude, thank you so much. Worked like a charm … after hours of installing, reinstalling and hair pulling I (a Linux newbie) was able to get everything to work. SUPER DOOPER AWESOME. Cheers

  22. surendra said

    Thank you for the post.
    I have a problem with nxclient. I could connect to the server, but it does not show title bar and status bar for window. If so is the case, how should i launch the program through NX client? HOw should i start the terminal ?

RSS feed for comments on this post

Comments are closed.

Follow

Get every new post delivered to your Inbox.

Join 134 other followers

%d bloggers like this: