Linux install without X-Windows
-
This method installs the agent to run in background mode as root in a systemd daemon.
sudo su - git clone https://github.com/rvmey/TRIGGERcmd-Agent.git cp ubuntupackage.json package.json apt install -y npm cd /root/TRIGGERcmd-Agent npm install node /root/TRIGGERcmd-Agent/src/agent.js --console (enter your token, then press CTRL-C to exit the foreground agent) /bin/sh /root/TRIGGERcmd-Agent/src/daemonmgr.sh --add /root/.TRIGGERcmdData systemctl enable triggercmdagent systemctl status triggercmdagent
To edit your commands, edit /root/.TRIGGERcmdData/commands.json
-
How i can add triggers under command line?
-
@kaligora, you have to somehow edit the commands.json file to add commands/triggers.
-
Fourth line should be:
cd /root/TRIGGERcmd-Agent
I think that's how it download file.
-
Thanks @pirates. I just fixed it.
-