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

Is there a way to use this on a headless CentOS server?

General Discussion
2
6
250
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.
  • E
    eggbean
    last edited by Jun 17, 2020, 2:11 PM

    I would like to use this on a headless CentOS server, but there is only a .deb file for this and not an .rpm.

    Is there anything I could do?

    Thanks.

    R 1 Reply Last reply Jun 17, 2020, 11:19 PM Reply Quote 0
    • R
      Russ @eggbean
      last edited by Jun 17, 2020, 11:19 PM

      @eggbean, I'm glad you asked. These instructions will install the background agent running as a systemd daemon:

      Login as root with sudo su - and run these commands:

      wget https://s3.amazonaws.com/triggercmdagents/triggercmdagent-1.0.1.x86_64.rpm
      yum reinstall ./triggercmdagent-1.0.1.x86_64.rpm
      node /usr/share/triggercmdagent/resources/app/src/agent.js --console
      (Enter your token)
      (Press CTRL-C to exit the foreground agent)
      sh /usr/share/triggercmdagent/resources/app/src/installdaemon.sh
      systemctl status triggercmdagent
      

      Edit your /root/.TRIGGERcmdData/commands.json file to add background commands.

      I just tested this on my CentOS 7.5 server.

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • E
        eggbean
        last edited by Jun 18, 2020, 5:51 AM

        Thanks. This is working for me as far as inputting the API token, as I have forgotten where it is. I remember seeing it earlier. Where is it again?

        R 1 Reply Last reply Jun 18, 2020, 11:25 AM Reply Quote 0
        • R
          Russ @eggbean
          last edited by Jun 18, 2020, 11:25 AM

          @eggbean, the token is on the Instructions page and your Profile page.

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • E
            eggbean
            last edited by eggbean Jun 19, 2020, 8:14 AM Jun 19, 2020, 8:08 AM

            Thanks. I was looking around in the forum for some reason.

            Still feeling a bit lost here, possibly because I'm not using the GUI. I have been looking, but how do I make new triggers now (and delete some default triggers)? I would like to run some bash scripts by asking Alexa.

            Also, I do not seem to be getting reply notifications from this forum. I think I have everything set correctly and this conversation is set as Watched.

            R 1 Reply Last reply Jun 19, 2020, 11:41 AM Reply Quote 0
            • R
              Russ @eggbean
              last edited by Jun 19, 2020, 11:41 AM

              @eggbean, I turned off emails from the forum because I was getting a lot of spammers. Since then they've stopped posting, so I'll turn it back on.

              To add/remove commands, edit your /root/.TRIGGERcmdData/commands.json file. Make sure you make them background commands because you're running the background agent.

              The background agent adds, removes, and runs background commands.

              FYI, if you find that your commands.json keeps reverting as soon as you save it, that means you've made some mistake in the json formatting so the agent restored the last good version of it.

              Russell VanderMey

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post