Home > archlinux, linux, rants > Installing NoMachine NX on ArchLinux

Installing NoMachine NX on ArchLinux

Pain in the butt… if you don’t know you need to specify redhat as system. From then on it’s smooth sailing. Download from nomachine.com and then:

# switch to root
cd /usr
tar xfvz <nxnode-whatever is current version now>
tar xfvz <nxclient-whatever is current version now>
tar xfvz <nxserver-whatever is current version now>
ln -s /etc/rc.d /etc/init.d
/usr/NX/scripts/setup/nxnode –install redhat
/usr/NX/scripts/setup/nxserver –install redhat
rm /etc/init.d

That’s pretty much it. You might want to create your own keys instead of the default NoMachine keys by doing /usr/NX/scripts/setup/nxserver --keygen, but it’s not required.

(Yes, I know – there is FreeNX in the Arch repositories. It works… kind of. Resuming a session from Windows to Linux and vice versa might work, but usually does not. Hence for personal use I prefer the original NoMachine distribution – the two connection limit is usually more than enough. PS: Did I say I love NX? It’s an awesome product in so many ways.)

Advertisements
Categories: archlinux, linux, rants Tags: ,
  1. Agent Smith
    November 22, 2011 at 8:01 pm

    …wouldn’t one also need to update their rc.conf to start the nxserver as a daemon or module?

    (I landed here looking for how to install nomachine on my shiny new arch computer 🙂

    Anyhow: THANK YOU!!

    It’s running–sort of. I’ll iron out the bits little by little.

    • November 22, 2011 at 8:24 pm

      No, “just” for the server functionality you don’t need anything started from rc.conf – basically everything gets started on demand after the nx user logins in via ssh (you using the client).
      You’re very welcome, glad it helped you a bit. 🙂

  2. Sam
    March 15, 2012 at 11:42 pm

    Thanks much for this concise tut!

    Only one thing was missing for me: I had to add /usr/NX/bin to the PATH. After creating /etc/profile.d/nx.sh containing

    #!/bin/sh
    export PATH=$PATH:/usr/NX/bin

    everything works.

  3. Craig Moon
    October 3, 2012 at 10:52 pm

    I had to run one last command to get this to work:

    mv /usr/NX/home/nx/.ssh/authorized_keys2 /usr/NX/home/nx/.ssh/authorized_keys

    (found from this post: https://bbs.archlinux.org/viewtopic.php?id=129006)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: