Forum / NoMachine for Linux / Non-default install path & nxexec gives “Could not retrieve NX scripts directory”
- This topic has 2 replies, 2 voices, and was last updated 9 years, 11 months ago by
vnaipaul.
-
AuthorPosts
-
November 19, 2015 at 09:18 #9134
vnaipaulParticipantHi,
I’ve installed to a non-default path with rpm –prefix /opt/nomachine, and after adjusting paths in the NX files, nxserver –start still fails at nxexec, giving
Error: Could not retrieve NX scripts directory. … from my nxserver.log:
2015-11-17 23:34:44 751.042 32299 NXSERVER WARNING! Process ‘/opt/nomachine/NX/bin/nxexec /etc/NX/nxserver –daemon’ with pid ‘32315/32315’ finished with exit code 1 after 0,4 seconds.My install path changes:
/etc/NX/ -> /var/opt/nomachine/NX/etc/
/usr/NX/ -> /opt/nomachine/NX/
/var/NX -> /var/opt/nomachine/NX/I haven’t yet found the stray reference to /etc/NX/nxserver, hoping its not in one of the binaries !
Can anyone suggest what else I could check ? Listed below are the path adjustments I’ve made already.
Using ‘nomachine-cloud-server-evaluation_5.0.47_2_x86_64.rpm’ on CentOS 6.
Thanks,
Val
———————————
/opt/nomachine/NX/scripts/etc/*
/opt/nomachine/NX/scripts/init/*
/opt/nomachine/NX/share/ (recursive)
/opt/nomachine/NX/etc/*.cfg
/opt/nomachine/NX/bin/nxprint
/opt/nomachine/NX/bin/nxserver
/opt/nomachine/NX/etc/cloud.cfg
/opt/nomachine/NX/scripts/vgl/vglrun
/opt/nomachine/NX/scripts/etc/nxserver
/opt/nomachine/NX/scripts/init/nxserver
/opt/nomachine/NX/scripts/systemd/nxserver.service
/opt/nomachine/NX/scripts/restricted/nxtun.sh
/opt/nomachine/NX/scripts/restricted/nxusb.shAlso, home directories of users nx, nxhtd and login shell of user nx
November 23, 2015 at 12:24 #9162
graywolfParticipantHello vnaipaul.
and after adjusting paths in the NX files
The installation doesn’t require any manual tweak that conversely could break something.
So my advice is: uninstall NoMachine completely, remove any NX directory left around, install again with
rpm –prefix /opt/nomachine.December 2, 2015 at 11:06 #9219
vnaipaulParticipantThanks graywolf, I have uninstalled and reinstalled NoMachine (v5.0.53) and have not tweaked the paths this time, though I have installed at my chosen paths (/opt/nomachine/NX/, /etc/opt/nomachine/NX/, /var/opt/nomachine/NX/) with symlinks at the default paths (/usr/NX/, /etc/NX/, /var/NX/) this time.
Fwiw, if you’ve ever considered changing the default install paths for NoMachine, my vote is for the paths I’ve used (above). Its just a vote, unjustified 🙂
– Val
-
AuthorPosts
This topic was marked as solved, you can't post.
