Automatically connect to remote machine at startup

Forum / NoMachine for Linux / Automatically connect to remote machine at startup

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15927
    swillis0_0
    Participant

    Is it possible to call a script from my startup applications to automatically connect to a remote machine (physical), actually two of them? I’m running Linux Mint (Ubuntu) and the remotes are the same.  Physical desktop since I’m using the free version of NoMachine.

    #15955
    kroy
    Contributor

    Take a look on tip given by Tor: https://www.nomachine.com/forums/topic/connection-session-at-startup#post-13952. If ~/.config/autostart diretory doesn’t exist, create it.

    #15973
    swillis0_0
    Participant

    Thanks but I already saw that but it didn’t answer my question.  It says nothing about how to connect to a specific machine.

    #15984
    kroy
    Contributor

    You need to create new nxs file with connection to the server. To do that open nxplayer and on connection list choose “New” and complete connection configurations (Fig. 2-4 on: https://www.nomachine.com/getting-started-with-nomachine). Save it as you want (default folder with nxs files is ~/Documents/NoMachine).

    Now edit ~/.config/autostart/nxplayer.desktop and add full path inside the line:

    Exec=/usr/NX/bin/nxplayer --session "path to the NXS file" --exit
    #15998
    swillis0_0
    Participant

    Thanks!  That was very helpful.

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

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