• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Linux install without X-Windows

Linux
3
5
617
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Russ
    last edited by Russ Oct 23, 2020, 10:17 PM Oct 11, 2020, 7:52 PM

    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

    Russell VanderMey

    1 Reply Last reply Reply Quote 0
    • K
      kaligora
      last edited by Oct 21, 2020, 8:44 PM

      How i can add triggers under command line?

      R 1 Reply Last reply Oct 21, 2020, 11:45 PM Reply Quote 0
      • R
        Russ @kaligora
        last edited by Russ Oct 21, 2020, 11:46 PM Oct 21, 2020, 11:45 PM

        @kaligora, you have to somehow edit the commands.json file to add commands/triggers.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • P
          pirates
          last edited by Oct 23, 2020, 9:47 PM

          Fourth line should be:

          cd /root/TRIGGERcmd-Agent
          

          I think that's how it download file.

          R 1 Reply Last reply Oct 23, 2020, 10:01 PM Reply Quote 0
          • R
            Russ @pirates
            last edited by Oct 23, 2020, 10:01 PM

            Thanks @pirates. I just fixed it.

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • T tuicemen moved this topic from Instructions on Jan 31, 2022, 12:19 PM
            • First post
              Last post