How to disable the prompt "Press the disconnect button to disconnect the running session." in NX/NoMachine - nomachine-nx

In one of my NoMachine installation, I'm prompted "Press the disconnect button to disconnect the running session. You will be able to reconnect the session at later time. Press the terminate button to exit the session and close all the running programs." and need to click "disconnect" whenever I close my NX client window.
In another NoMachine installation in another machine, there is no such prompt and the client window simply close whenever close the NX client.
The prompt causes problem when the connection to the server is lost by accident. The NX client window simply freeze and waiting for the "disconnect" response which will never come when the connection is lost.
Does anyone know how I can configure my first NoMachine installation so that it will simply disconnect when I try closing the client window.

Related

Guacamole Disconnect Session on User Idle

I have google'ed a lot on this question but haven't found an answer. I have a Guacamole server that connects to a local VNC session and I would like for it to disconnect the user session if it detects no activity for an hour.
What I've tried and attempted
used xprintidle to show idle time of the user, this works so will be put in a script that might be used later to terminate an idle session.
I have looked at Guacamole's api-session-timeout and set it for a minute, I had hoped it would not reconnect to the same session once the VNC server stops abruptly. It seems this did not work.
I have tried to use guacamole's user-mappings.xml to specify the parameter "autoretry" and set that to "1". Restarted and this did not work, I'm thinking its not used this way.
I have went to the guacamole postgres database and manually inserted the entry for autoretry into the parameter table. Restarted, but this did not work.
I have went to the VNC side (I use TurboVNC) and looked at the flag -idletimeout and configuration option max-idle-timeout. This terminates the TurboVNC service when there are no active connections. It is not what I am after, I'm trying to only disconnect the session when the user is idle.
I figured that the VNC side would not work because even if the VNC session is terminated Guacamole would keep on retying forever to reconnect to that session.
From some posts on the Guacamole mailing list it seems that disabling auto reconnect is not possible without a recompile from source.
Is there a way to disconnect an active session after an idle timeout period? or maybe a way to stop Guacamole from reconnecting?

how to use remote desktop keyboard and mouse events using delphi even if remote desktop window is just closed

i've created a script-like program with Delphi which supposed to click on some desired places and also use keyboard to simulate pressing keys.
the program works just well, but the problem is that if i close the remote connection window with X button or even minimize the remote window, program stops working and wont simulate anything, and resumes after connecting again!!
I am assuming that you are running on a target with a post Win Server 2010. There is no console session if no one is logged in.
To run something without a login session, it has to be a service. Similarly, console apps will not work from the startup folder.

handle consecutive connections from ios app to wamp server

I have an ios app that sends a command to a php script listening on a windows 2008server with wamp 2.5. If no response comes back in X seconds it sends back the command to the server. Each command contains also a session identifier.
The problem appears when the 2nd command sent to the server executes before the first. This way it alters the session identifier of the user that sent both commands, and when the 1st command tries to execute, it says the session id is incorrect.
Usually this scenario happens on peak moments when many users connect and thus the delay of the 1st command.
What is the proper way to handle these commands delays of the same user? Or queue them or manage them from apache?

"Internet connection is offline" when connecting to AP without internet access - WiFi off/on fixes

BACKGROUND
We're trying to use an iOS app running on iPhone/iPad to give WiFi credentials to an embedded device (using an ARM SoC running Linux). The embedded device starts an AP (access point), we instruct the user to connect to this AP and then the user submits their WiFi credentials. After WiFi credentials are received the device drops the AP and connects to the WiFi the user gave credentials for.
Initially, we try to hit a PHP page to get the list of WiFi networks the embedded device can see.
ISSUE
We instruct the user to join XYZ network (in iOS they must background the app, go into settings and switch to our WiFi network). We listen for an app resumed from background notification, check the devices current ESSID (ensure its our AP ESSID) and try to hit a PHP page to receive the list of WiFi networks. Often, this connection fails reports "The internet connection appears to be offline" (or something of that nature).
We currently have a stop gap when this happens telling the user to toggle their WiFi off and then back on (in settings). The device will reconnect to our AP as it's the most recently connected network. This ALWAYS fixes the issue, we've never had to toggle the WiFi twice in order to reach the PHP page on the device. Please tell me any possible way we can avoid having to instruct the user to toggle WiFi and still access PHP pages on the embedded device.
Note: when we're connected to the AP (whether this bug is active or fixed) the device DOES NOT show the WiFi icon in the status bar. We assume this is because the AP doesn't have a viable connection to the internet (can only access pages served by the embedded device). We've been testing on a device that has LTE cellular access, but the error still says "Internet connection appears to be offline".
Obviously we have a DHCP server running on the embedded device.
It's looking like this was caused by an omission in our dhcpd.conf file.
This omission was causing iOS to believe the connection was unviable.
We added the following line and are getting much better results:
option domain-name-servers 10.10.10.1;

Windows Filtering Platform detecting & authorising outbound connections without first blocking?

Before I even start researching WFP I need to know one thing:
Can I detect an outbound TCP connection attempt, pause it until the user clicks Allow/Block, and then accordingly allow it to succeed or block it?
Other WFP based software such as Windows 7 Firewall Control always blocks the first connection attempt. Clicking Allow only applies to subsequent connection attempts. The first attempt always fails and the blocked application assumes there is no internet and I have to restart the application.
Is it possible to pause until Allow/Block is clicked in WFP or is my only option to write a kernel-mode driver?

Resources