NoMachine for Void linux (Runit)

Forum / NoMachine for Linux / NoMachine for Void linux (Runit)

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30160
    Twilighttony
    Participant

    Hello everyone. I am currently trying to create a runit service script for NoMachine. I have successfully installed NM on Void linux, however I can’t seem to figure out how to create an init script for it to start the server on boot. I took a look at the systemd service for NM and it tells me that it runs “/etc/NX/nxserver –daemon” however when I try to run that in the terminal it outputs a bunch of commands I could run to run it correctly, but none of them are related to starting the service. If someone could help me with this, that would be greatly appreciated.

    #30274
    hawk
    Participant

    Hello,
    For starting NoMachine in init script please try command /usr/NX/bin/nxexec /etc/NX/nxserver --daemon & > /dev/null 2>&1

    In the meantime we are looking for some more official solution.

    #31344
    hawk
    Participant

    As promised, here is a more official solution.

    To create working NoMachine script for Runit you need to follow these steps. Note that you need root permission to perform those actions.

    First please create runit directory for nomachine. You can do this by command mkdir /etc/sv/nomachine/.
    Next you need to create file /etc/sv/nomachine/run and write those lines inside:

    #!/bin/bash
    
    exec /usr/NX/bin/nxexec /etc/NX/nxserver --daemon

    Note that if you installed NoMachine in different location than /usr/NX you need to replace /usr/NX/bin/nxexec to <place NoMachine is installed>/bin/nxexec

    When the file is created you need to set execute permission by chmod +x /etc/sv/nomachine/run.

    Last command will create link for service and enable it:
    ln -s /etc/sv/nomachine /var/service/

    #31403
    Twilighttony
    Participant

    You are awesome. I kind of forgotten about this post in all honesty and stopped using NoMachine, but now I might have to try to reinstall it on Void Linux and try this solution out. Any idea of I could package this for Void Linux or would I have to read the license and make a determination for that?

    #31551
    hawk
    Participant

    Any idea of I could package this for Void Linux or would I have to read the license and make a determination for that?

    I’m not sure if i understand correctly. Do you want to rebuild NoMachine package to add support for Void Linux or do you want to redistribute? Redistribution of NoMachine packages is not allowed by the terms of the EULA.

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

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