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

    Arch Linux install

    Scheduled Pinned Locked Moved Linux
    4 Posts 5 Posters 2.5k Views 1 Watching
    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 Online
      Russ
      last edited by Russ

      There is no official installer for Arch Linux, but these steps will get it working.

      This assumes you're running X-Windows and logging in as a non-root user with sudo access (russ in this example).

      • Open a terminal window
      • Run: git clone https://github.com/rvmey/TRIGGERcmd-Agent.git
      • Run: ./TRIGGERcmd-Agent/src/agent.js --console
      • Copy/paste your token from the Instructions page in your triggercmd.com account to the prompt.
      • Trigger the Gnome editor to test it.
      • Press CTRL-C to exit.
      • Run: sudo su -
      • Run: nano /etc/systemd/system/triggercmdagent.service
      • Copy/paste this text into the file, replace russ with your own user, and save it:
      [Unit]
      Description=TRIGGERcmd Agent
      
      [Service]
      Type=simple
      ExecStart=/usr/bin/env node /home/russ/TRIGGERcmd-Agent/src/daemon.js --run /home/russ/.TRIGGERcmdData
      User=root
      Restart=always
      
      [Install]
      WantedBy=default.target
      
      • Run: systemctl daemon-reload
      • Run: systemctl enable triggercmdagent
      • Run: systemctl start triggercmdagent

      Now you should have the background agent running as root, and you can run the foreground agent as your non-root user by running this command in a terminal Window:

      node ~/TRIGGERcmd-Agent/src/agent.js --console
      

      Edit your TRIGGERcmd commands as your non-root user with this command:

      nano ~/.TRIGGERcmdData/commands.json
      

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • Tiago MártiresT Offline
        Tiago Mártires
        last edited by

        Just a small tip , to run the foreground agent on the begin of the session , i put this command

        node /home/YOURUSERNAME/TRIGGERcmd-Agent/src/agent.js --console > /dev/null 2>&1 &
        on ./bashrc and then setup fot the terminal start on the begin of the session...

        if any one have more ideias how to do it , just share 🙂

        Craig OKC 1 Reply Last reply Reply Quote 1
        • Craig OKC Offline
          Craig OK @Tiago Mártires
          last edited by

          @Tiago-Mártires Pretty much the same thing but I added this line to crontab:

          @reboot node /usr/share/triggercmdagent/resources/app/src/agent.js &
          
          
          1 Reply Last reply Reply Quote 1
          • F Offline
            fennectech
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • tuicemenT tuicemen moved this topic from Instructions on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post