Zorin OS
-
Can I run triggercmd on Zorin OS? FYI, I'm a total beginner when it comes to Linux.
I was able to install but nothing happens when I click on it. I installed via download link on triggercmd.com. Device is listed when I log in to triggercmd.com
What did I do wrong?
Also confirming triggers can only be added on the device it's to be used on. I can't add it through the site and have it pushed. That correct?
-
@Smart-Communities, I haven't tried Zorin OS yet. I'm downloading it now. I'll give it a try soon.
I think you installed and ran the TRIGGERcmd agent, but I think you didn't leave it running. So when you tried to run your commands on the computer they didn't run because the agent wasn't running.
Also, that's true - you can't create commands from the website. You have to either edit the text in the commands.json file manually, or use the GUI editor.
These are the Ubuntu instructions. I read that Zorin is based on Ubuntu.
EDIT: I tried it. Unfortunately it didn't work to just run triggercmdagent but you can run it like this in a Terminal window:
Run this first to install nodejs:
sudo apt install nodejs -y
Then you can run the agent in foreground mode like this:
node /usr/lib/triggercmdagent/resources/app/src/agent.js --console
You can install the background agent to start as root when Zorin OS boots like this:
sudo su - node /usr/lib/triggercmdagent/resources/app/src/agent.js --console (CTRL-C after pasting in the token) sh /usr/lib/triggercmdagent/resources/app/src/installdaemon.sh
Because that agent is running in background mode, It will only run commands with ground = background in your /root/.TRIGGERcmdData/commands.json file.
-
@Russ thanks Russ. I'm a super beginner with Linux but will give this a shot.