Non-default install path & nxexec gives “Could not retrieve NX scripts directory”

Forum / NoMachine for Linux / Non-default install path & nxexec gives “Could not retrieve NX scripts directory”

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9134
    vnaipaul
    Participant

    Hi,

    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.sh

    Also, home directories of users nx, nxhtd and login shell of user nx

    #9162
    graywolf
    Participant

    Hello 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.

    #9219
    vnaipaul
    Participant

    Thanks 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

Viewing 3 posts - 1 through 3 (of 3 total)

This topic was marked as solved, you can't post.