Running the Linux foreground agent without X-Windows
-
The GUI Linux agent is built on Electron which is based on Chromium. Chromium is an open-source web browser project started by Google. It's a GUI app, so on Linux it exits if it doesn't find an X-Windows GUI.
So if you want to run Linux without X-Windows, or if you want to run the agent in an SSH session, you can run it like this:
node /usr/share/triggercmdagent/resources/app/src/agent.js --console
Most people will probably only want to run background commands in the daemon. You can install the daemon with:
/usr/share/triggercmdagent/resources/app/src/installdaemon.shYou can check the daemon status with:
systemctl status triggercmdagent -
If you want this to load at system boot - be sure to enable the triggercmdagent,service
sudo systemctl enable triggercmdagent,service
-