
I'm sure there's a better easier way on the Mac. On my Linux client, the nxplayer job holds the script from completing until I quit it.
#Nomachine server ubuntu mac
# On the Mac I can't actually kill the pids, since the nxplayer forks off and the script keeps running. # I am tracking all the PIDs so I can kill them later, this tended to leave tunnels listening and crap after a session so they need to be killed #set up the ssh tunnel with listening port 4003 #ssh into the ssh server and wake up the target system with WoL then hang out 10 seconds for the machine to absolutely be awake Applications/NoMachine.app/Contents/MacOS/nxplayer -session ~/Documents/NoMachine/Connection\ to\ iMac.nxs On the Mac, you have to run nxplayer from the NoMachine.app package, on both Ubuntu and Mac, the session ".nxs" files are in ~/Documents/NoMachine: This can be done via the NX menu in the menu bar, but I automate all this so that I am just clicking on "NX to Home", and a script wakes up the home machine, builds the tunnel, and opens the connection: Then launch the client connection to that local listening port. In my case I have the tunnel listen on port 4003, as shown in the new configuration setup, this is to prevent it overlapping with the NX server on the client machine: To connect everything up over ssh, set up the tunnel by ssh'ing to your intermediate server. Most of this is totally default except that I un-checked "use UDP for multimedia" and set the target port to 4003: With the server listening, on the client machine, set up a new connection. Xrayspxs-iMac:~ xrayspx$ netstat -nat | grep 4000 Netstat should show the machine is listening on port 4000: If everything is working, there should be a NoMachine menu in the menu bar on the server and some indicator that listening is enabled.
#Nomachine server ubuntu install
Install NoMachine NX on both systems from the DMG. On the Ubuntu server, download the Debian package from the following link: The above page shows a few links to different distribution packages. This guide focuses on a Mac client connecting to a Mac server over an SSH tunnel. Several years ago I set up NoMachine's NX server, which is quite nearly as fast as MS RDP, and it's been working like a dream ever since. I've tried alternate VNC servers in the past, but they all were painful to set up and still very slow over an SSH tunnel. On the Mac, we have a VNC server by default, but can't specify settings which will improve speed over slow connections, like lowering the color depth.

As an Apple and Linux user, remote screen admin can be a colossal pain in the ass.
