Forum / NoMachine for Linux / Attempting to reconnect
- This topic has 8 replies, 3 voices, and was last updated 1 year, 7 months ago by Tor.
-
AuthorPosts
-
February 28, 2023 at 13:11 #43100USMParticipantHello, I hope it‘s a nice day for you.I currently use NoMachine to connect some Linux Mint desktop on kiosk mode at some Ubuntu VM no–persistent.When I close the session with my client, NoMachine attempting to reconnect.How Can I skip this option because I had searched in NoMachine documentation but I didn’t find.Thx for your answer.
Attachments:
March 2, 2023 at 11:59 #43165BritgirlKeymasterThe image shows that the connection was interrupted, not by you, but because the remote computer you are connecting to was restarted or shut down. Are you maybe rebooting the server when you want to disconnect? If you’re not doing that, this needs further investigation to understand why you are seeing that error.
The second thing is your question about attempting to reconnect. The client will attempt to reconnect when a networking error occurs, or when the NoMachine server detects a condition requiring an automatic reconnection (like when you reboot the server to apply a change, for example). If the connection was terminated cleanly, then it should not reconnect 🙂
To disable auto-reconnect – just edit ~/.nx/config/player.cfg
<option key=”Automatically reconnect to the server” value=”false” />
March 2, 2023 at 13:31 #43169USMParticipantHello
Thx for your answer, I test your advice “To disable auto-reconnect – just edit ~/.nx/config/player.cfg” and that’s working perfectly.
I will explain my situation, I have 5 Linux Mint on kiosk mode. So these Linux Mint can just click on Firefox and log in on a UDS page. When they log on this page they are redirected (by the nomachine connection) to a No-Persistent Ubuntu VM (created from a template). When they quit this VM, the VM is destroyed. I want than when my user shutdown this VM, they are redirectedto my Firefox page and they can’t view anything about NoMachine.
Is it possible than when my users closed the VM (the NoMachine connection) than they haven’t any pop-up and instant close the NoMachine application.
March 2, 2023 at 14:12 #43170USMParticipantIt is possible to don’t have the first screen before connection
And the second screen after disconnection
Attachments:
March 15, 2023 at 10:10 #43409BritgirlKeymasterSo these Linux Mint can just click on Firefox and log in on a UDS page.
Do the users download a connection file which the browser then opens using NoMachine client?
March 16, 2023 at 08:56 #43428USMParticipantNo, this is a basic connection between the user and the virtual machine(with NoMachine client and NoMachine server). The user always remains the same person, but the virtual machine is deleted and created after logging out.
March 24, 2023 at 10:20 #43568TorParticipantThe client can be configured to ignore errors on disconnection, and that together with disabling the automatic reconnection should do what you want.
You can test these ways:
1. Run the player with the
--exit-always
command line option
2. Edit the NXS connection file, and set the value “always” to the following key:
<option key="Close the client application when a single session terminates" value="always" />
March 24, 2023 at 11:40 #43570USMParticipantHello,
Can you give me more informations please.Where is the NXS connection file.
And I don’t understand that “1. Run the player with the--exit-always
command line option”.Thx for your answer.
March 24, 2023 at 19:56 #43577TorParticipantThe NXS connection files store all your preferences and they are saved by default in the Documents/NoMachine directory. I noticed my post was corrupted for some reasons and the last line was not visible. Read it again to see the option to change.
As for the command line option, you can use it by starting the following command in a terminal:
/usr/NX/bin/nxplayer --exit-always
Since you’re configuring a kiosk you can edit the script/usr/NX/bin/nxplayer
and add the option--exit-always
to the last line:
exec "$NX_SYSTEM/bin/nxplayer.bin" --exit-always "$@"
-
AuthorPosts
This topic was marked as solved, you can't post.