Navigation

    TRIGGERcmd
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Instructions
    3. Linux
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • Russ

      Ubuntu Linux agent instructions
      • Russ

      21
      0
      Votes
      21
      Posts
      5102
      Views

      Russ

      @Pr0k0, background commands should show up as Alexa Smart Home devices, just like foreground commands, so I wonder if you didn't install the background service yet. This command should it:

      sudo sh /usr/lib/triggercmdagent/resources/app/src/installdaemon.sh
    • Russ

      Upgrading the Linux agent on Ubuntu
      • Russ

      1
      0
      Votes
      1
      Posts
      1838
      Views

      No one has replied

    • Russ

      Upgrading the Linux agent on Redhat or CentOS
      • Russ

      1
      0
      Votes
      1
      Posts
      1003
      Views

      No one has replied

    • D

      32Bit Ubuntu
      • Dil Photos

      2
      0
      Votes
      2
      Posts
      425
      Views

      Russ

      @dil-photos, not yet, but I'll look into building a 32bit deb file. Stay tuned.

      EDIT 12/17/18:
      @dil-photos, sorry but I found that they stopped making a 32bit NodeJS version. NodeJS is a dependency for the TRIGGERcmd agent. https://nodejs.org/en/download/

      This method has no GUI, but one thing you could try is this. It worked for me.

      sudo apt install nodejs-legacy git clone https://github.com/rvmey/TRIGGERcmd-Agent.git cd TRIGGERcmd-Agent node ./src/agent.js --console
    • ?

      Ubuntu: Installed the agent, ran "triggercmdagent", what next?
      • A Former User

      6
      0
      Votes
      6
      Posts
      1448
      Views

      Russ

      @knipknap, nice! That's progress.

      I'm not sure why the icon isn't showing. Can you think of anything that's not standard about your xwindows install? It show up for me and I took defaults when I installed Ubuntu Desktop v18

      For now you can use some other editor to edit commands.json.

    • Russ

      Running the Linux foreground agent without X-Windows
      • Russ

      2
      1
      Votes
      2
      Posts
      1258
      Views

      S

      If you want this to load at system boot - be sure to enable the triggercmdagent,service

      sudo systemctl enable triggercmdagent,service

    • J

      unable to install - dependencies not met (ubuntu 19.04)
      • jasoncollege24

      3
      0
      Votes
      3
      Posts
      231
      Views

      Russ

      @jasoncollege24, I updated the .deb installer. Now it installs libgconf-2-4 or libgconf2-4 depending on which one is appropriate for your specific Linux OS. Please download and try it again.

      https://s3.amazonaws.com/triggercmdagents/triggercmdagent_1.0.1_amd64.deb

      Also, thanks again for reporting the problem. I need to start watching for and testing the latest Linux releases so I can discover these issues before users do.

    • Russ

      Arch Linux install
      • Russ

      4
      0
      Votes
      4
      Posts
      432
      Views

      Craig OK

      @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 &
    • Sid Boswell

      How do you load Triggercmd on boot on Ubuntu?
      • Sid Boswell

      2
      0
      Votes
      2
      Posts
      167
      Views

      Russ

      @Sid-Boswell, no parameters are needed to run the agent in foreground mode. It will find what it needs in your ~/.TRIGGERcmdData directory.

      You can install the agent to startup in background mode during boot by running the installdaemon.sh script with sudo.

      Please look at this page for more details.

    • Russ

      Install the background agent on a headless Linux server
      • Russ

      1
      0
      Votes
      1
      Posts
      113
      Views

      No one has replied

    • William Mendes

      How to use TRIGGERcmd with root
      • William Mendes

      2
      0
      Votes
      2
      Posts
      93
      Views

      Russ

      @William-Mendes, you prefix your command with sudo to run it as root. Like this:

      sudo /usr/local/bin/yourscript.sh

      You'll need to add a line like this to your /etc/sudoers file so the TRIGGERcmd foreground agent can run the commands with sudo without a password prompt:

      wmendes ALL = NOPASSWD: /bin/systemctl restart httpd.service, /bin/kill, /usr/local/bin/yourscript.sh

      This article does a good job of explaining the sudoers file.

    • Kelvin Ferraz

      Difficulties to run commands with parameters in linux
      • Kelvin Ferraz

      6
      0
      Votes
      6
      Posts
      206
      Views

      Russ

      @Kelvin-Ferraz, awesome. I'm glad it's working.

    • Russ

      Linux install without X-Windows
      • Russ

      5
      0
      Votes
      5
      Posts
      137
      Views

      Russ

      Thanks @pirates. I just fixed it.

    • P

      Problem running on Manjaro KDE
      • PedroMartins

      12
      0
      Votes
      12
      Posts
      159
      Views

      Russ

      @PedroMartins, good. Sorry about the incompatibility.

    • Dean McNaughton

      Help with Trigger for Ubuntu
      • Dean McNaughton

      3
      0
      Votes
      3
      Posts
      15
      Views

      Dean McNaughton

      @russ

      I'm using chrome and it worked with the following:

      google-chrome /home/dmcnaugh/Downloads/Alarm_Arm.html

      Thank you, Russ!

    Copyright © 2016 NodeBB Forums | Contributors