Ubuntu delayed client startup. Anyone know how?
AnsweredI have a small PC running a wall monitor that is set as a Startup Application.
Works great until the building loses power and the client pc boots fully before the server does and the client cannot connect and just sits there with a Log In screen.
I am supposed to be able to prepend "sleep 60;" to the startup application command line ("/home/nvr/.local/share/Digital Watchdog/applauncher/digitalwatchdog/bin/applauncher-bin"), but this does not work (breaks the command and nothing happens)
-
Any of the 2 workarounds I use:
- set your IP address in /etc/network/interfaces
This has the advantage of setting up your network before the GUI loads.
The disadvantage is the network is not managed by GUI tools etc.
https://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/ - Install & merge the Nx Server on the AutoStart client.
Connect the client to a local/basic Nx user account on the loopback address 127.0.0.1:7001
The client can connect to itself and allow the network & system to come online slowly.
Recommended: Disable Nx storage drive on the Auto Start client/server.
Advantage: the client is now part of the hive with all the advantages of a hive server.
- set your IP address in /etc/network/interfaces
-
Hi paul chandler,
Ubuntu has a feature for that called Startup Application Preferences, which you can find in the Apps menu.
If you Add an application, instead of just point to the bin file, you add a piece of bash before it.
So, instead of the default command:
/opt/networkoptix/client/5.1.1.37512/bin/applauncher-bin
You set the following command:
bash -c "sleep 60 && /opt/networkoptix/client/5.1.1.37512/bin/applauncher-bin"
This way, the startup will be delayed with 60 seconds, allowing your system to be ready to connect.
Post is closed for comments.
Comments
3 comments