Forum / NoMachine for Linux / Connect to NoMachine running on a Centos Linux vps, connecting from a Mac
Tagged: free version, installing, new installation, nxserver, ssh connection
- This topic has 2 replies, 2 voices, and was last updated 7 years, 9 months ago by powerblue.
-
AuthorPosts
-
February 3, 2017 at 08:42 #13677powerblueParticipant
I would like to connect to NoMachine running on a Centos Linux vps, connecting from a Mac.
There were some issues encountered at step 3 below:
1. Start the service on the Linux machine:
/usr/NX/bin/nxserver –startup
Note: Using “–start” doesn’t work
It doesn’t actually work even though /usr/NX/bin/nxserver –status will say it is running, in actuality it is not running or listening on any ports.
2. The free version of NoMachine doesn’t support ssh protocol, therefore, use an ssh tunnel (select the NX protocol in the NoMachine connection configuration) to connect:
a
ssh -L 4000:localhost:4000 root@45.45.45.453. To receive connections it seems nxd needs to be running: /usr/NX/bin/nxd –startup
At this point an error appears: “/usr/NX/bin/nxd: error while loading shared libraries: libnxd.so: cannot open shared object file: No such file or directory”
How can this error be fixed?
Any help will be greatly appreciated.
February 3, 2017 at 15:47 #13686kroyContributorNote: Using “–start” doesn’t work
What output is shown?
It doesn’t actually work even though /usr/NX/bin/nxserver –status will say it is running, in actuality it is not running or listening on any ports.
Are you sure that nxserver isn’t running? What shows
ps -ef | grep nx
command? NoMachine is correctly installed? Can you give more details about this CentOS?3. To receive connections it seems nxd needs to be running: /usr/NX/bin/nxd –startup
Command should not be used in that way. To startup nxd service it’s need to execute command:
sudo /usr/NX/bin/nxserver --start nxd
February 20, 2017 at 08:24 #13815powerblueParticipantThanks for the response. It appears to work now that I installed the new version, I didn’t have to change any configs at all for the nxserver.
//Install newest version:
cd /usr
tar xvzf nomachine_5.2.11_1_x86_64.tar.gz
/usr/NX/nxserver –install
//Open port 4000 in the firewall, I used WHM using CSF firewall plugin to do this.
//Check if the nxserver daemon is listening:
netstat -anlp | grep :4000
netstat -plnt
//Check if the nxserver is running:
ps aux | grep -i nxserver
//Commands to start, stop, and restart, if needed:
/usr/NX/bin/nxserver –status
/usr/NX/bin/nxserver –start
/usr/NX/bin/nxserver –stop
/usr/NX/bin/nxserver –restart
service nxserver start
service nxserver stop
//Since the free version of nxserver doesn’t support ssh connections you have to set up an ssh tunnel and use the NX protocol to connect instead. Using the terminal on local mac:
ssh -L 4003:localhost:4000 root@45.45.45.45
//Then open the NoMachine client (GUI) and edit the connection to use NX protocol and port 4000, then after trying to connect it worked for me perfectly.
Thanks
-
AuthorPosts
This topic was marked as solved, you can't post.