Forum / NoMachine for Linux / Script connection to launch virtual desktop
- This topic has 8 replies, 3 voices, and was last updated 5 years, 7 months ago by Tor.
-
AuthorPosts
-
April 5, 2019 at 13:14 #21946virtualParticipant
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
April 8, 2019 at 11:36 #21956kroyContributorPlease 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)
April 9, 2019 at 09:53 #21970virtualParticipantThanks 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
April 9, 2019 at 15:26 #21982TorParticipantHi. 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. 🙂
April 10, 2019 at 13:57 #21997virtualParticipantOk :
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.
April 12, 2019 at 11:57 #22019virtualParticipantDear 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.
April 12, 2019 at 17:58 #22029TorParticipantHi. 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.
April 19, 2019 at 11:17 #22089virtualParticipantThanks. 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.
April 19, 2019 at 15:02 #22095TorParticipantNode 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.
-
AuthorPosts
This topic was marked as solved, you can't post.