Script connection to launch virtual desktop

Forum / NoMachine for Linux / Script connection to launch virtual desktop

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #21946
    virtual
    Participant

    Hello,

    i want to script a direct connection to a virtual desktop. Now, i just succeed to launch wizard via :

    /usr/NX/bin/nxplayer –wizard

    I see options –config FILENAME

    Do you know where i can find sample of connection file with different keys to set ?

     

    Best regards

    #21956
    kroy
    Contributor

    Please refer to these articles:

    https://www.nomachine.com/AR02P00963 (How to start the session by passing options to the client from command line)

    https://www.nomachine.com/DT10O00159 (The most frequently asked options for pre-configuring the client and the session behavior)

    #21970
    virtual
    Participant

    Thanks for your answer.

    I succeed running a connection to virtual desktop by customing “Server Host” Field.

    Before marking resolved, I got another question :

    How can I achieve this :

    I want to run via cli the panel wizard with connections defined. After, the client can choose one of the NoMachine server to connect it. It’s like a chooser of NoMachine servers. Can i achieve this ?

    I don’t want to enable network broadcasting.

     

    Best regards

    #21982
    Tor
    Participant

    Hi. Would you like to share some details about what you’re trying to achieve? Running the wizard with pre-configured preferences is not possible because of the nature of a wizard (which is supposed to guide you through the creation of a new configuration), but I’m sure we could find a solution to your needs by using some bash scripting or by designing together a feature which could be useful also for other users. We would just need to know why you can’t use network broadcasting, what is the operating system running on clients, the list of configurations you want to customize at each client execution, and so on. Any details will help. 🙂

    #21997
    virtual
    Participant

    Ok :

    I don’t want to use network broadcasting because even clients were  on the same network, I want to customize view of each client depending on other criteria.

    I want to make easier the connection to NoMachine servers for my client , and abort clients to configure anything else on client.

    If you knew xdmcp protocol with X11 and Chooser, i want to reproduce it with NoMachine:

    Client run their PC and have directly a wizard with NoMachine servers displayed (Administrators set these NoMachine servers for each client). After client can choose one NoMachine server and connect it , without thinking about customisation : make connection automatic and easy.

    Clients Os are ubuntu and centos. Each sort of client has one config with 3 NoMachine serves displayed. An other client on the same network, has an other config with 3 others NoMchine servers for instance.

    When i run nxplayer –wizard, i display wizard with all work to do to set a connection up. My goal is to define all this configuration with wizard containing all NoMachine servers configured. Client just choose one of them , enter login/passwd and make connection successful.

     

     

     

    #22019
    virtual
    Participant

    Dear all,

    I’m close to my solution. I find option –browse which display recent or all connections done before.

    But i don’t find on which file , it stores these connections. Does somebody know ?

    Best regards.

    #22029
    Tor
    Participant

    Hi. Those are the favourites connections, they’re stored in $HOME/.nx/config/player.cfg. You can either change the CFG through a script, or just start a connection once to have it added to the list.

    #22089
    virtual
    Participant

    Thanks. I will do it.

    I got another question:

    I succeed disable customisation when you connect to server by  : ClientMenuConfiguration none

    Now, i want to disable settings on client itself.

    When I run nxplayer –browse, the only action available for client will be to choose and select one server NoMachine. Client mustn’t access settings. I look into node.cfg and server.cfg but i find nothing to do the trick. I try EnableMenuConnections 0 and EnableServerPreferences 0 without success.

    Is it possible to avoid editing settings on wizard “recent connections”.  How ?

    Best regards.

    #22095
    Tor
    Participant

    Node and server configurations cannot help you in this case, because they only affect the client when it connects to the NoMachine server. If you have control over the client you could change connection file permissions to be read-only, or create a bunch of scripts which could, for example, restore the connection file when the NoMachine client closes or the computer reboots.

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

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