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

    Linux install without X-Windows

    Linux
    3
    5
    568
    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.
    • RussR
      Russ
      last edited by Russ

      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

        How i can add triggers under command line?

        RussR 1 Reply Last reply Reply Quote 0
        • RussR
          Russ @kaligora
          last edited by Russ

          @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

            Fourth line should be:

            cd /root/TRIGGERcmd-Agent
            

            I think that's how it download file.

            RussR 1 Reply Last reply Reply Quote 0
            • RussR
              Russ @pirates
              last edited by

              Thanks @pirates. I just fixed it.

              Russell VanderMey

              1 Reply Last reply Reply Quote 0
              • tuicemenT tuicemen moved this topic from Instructions on
              • First post
                Last post