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

Arch Linux install

Linux
5
4
1.2k
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 Feb 27, 2020, 8:48 PM Feb 27, 2020, 6:44 PM

    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
    • T
      Tiago Mártires
      last edited by Feb 28, 2020, 4:43 PM

      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 🙂

      C 1 Reply Last reply Mar 22, 2020, 4:34 AM Reply Quote 1
      • C
        Craig OK @Tiago Mártires
        last edited by Mar 22, 2020, 4:34 AM

        @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
          fennectech
          last edited by Nov 14, 2020, 12:46 AM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • T tuicemen moved this topic from Instructions on Jan 31, 2022, 3:38 PM
          • First post
            Last post