LibreELEC 10.0.2 install of Argon ONE V2 software?

I installed LibreELEC 10.0.2 on Raspberry Pi 4 with an Argon ONE v2 case. I want to install the Argon ONE power button / fan control software.
I execute the script the manual refers to (for Raspbian, which LibreELEC isn’t but is based on)

curl | bash

and get

curl | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0bash: syntax error: unexpected "(" (expecting "fi")
 75 21361   75 15997    0     0   6883      0  0:00:03  0:00:02  0:00:01  6886
curl: (23) Failure writing output to destination

Is there some other way of installing this for LibreELEC-Rasp4 ?

1 Like

That kind of looks like the curl transfer failed, I tried it (don’t have a argon1 case, so I simply transfered the file over, and I get the following output:

curl >
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21361  100 21361    0     0  22772      0 --:--:-- --:--:-- --:--:-- 22748

Looks to me like the curl command failed near the end, then bash attempted to execute the code.

Are you out of space?

1 Like

I have this same issue on an M2 case… lots of space on the 120GB M2 SSD

1 Like

Nope, not out of space. Found from web trawling that for Libreelec the script is apparently

which does install properly, not that what it installs will run, but that’s a separate issue. If only Argon40 would document it.

1 Like

Just tried that, but it evidently no longer exists, returning a 404 error.

1 Like

Must be a typo. Just tried this and it exists

1 Like

That worked! Thanks!

1 Like

Thanks, this worked for me as well running this…

curl| bash
1 Like

I had to take two extra steps to make the setup from

work with LibreELEC 10.0.2: Two addons have to be installed and an environment file has to be included.

To install the two addons Raspberry Pi Tools and System Tools go to

Add-ons -> Install from repository -> LibreELEC Add-ons -> Program add-ons

and select the two addons.

And /etc/environment has to be included in the systemd startup script /storage/.config/system.d/argononed.service in the section [Service]:


otherwise you will get an error:

Dec 18 15:30:13 LibreELEC python[1139]: Traceback (most recent call last):
Dec 18 15:30:13 LibreELEC python[1139]:   File "/storage/.config/", line 4, in <module>
Dec 18 15:30:13 LibreELEC python[1139]:     import smbus
Dec 18 15:30:13 LibreELEC python[1139]: ImportError: cannot open shared object file: No such file or directory

To patch the installation script use:

---    2022-12-18 00:44:49.948055608 +0100
+++ 2022-12-18 15:17:21.202675918 +0100
@@ -215,6 +215,7 @@
 echo "Restart=always" >> $daemonfanservice
 echo "RemainAfterExit=true" >> $daemonfanservice
 echo "ExecStart=/usr/bin/python $powerbuttonscript" >> $daemonfanservice
+echo "EnvironmentFile=/etc/environment" >> $daemonfanservice
 echo '[Install]' >> $daemonfanservice
 echo "" >> $daemonfanservice

Thanks! 100% works with LibreElec 11.0.1

1 Like

This didn’t work for me, unfortunately. These are the steps I took:

  1. Fresh install of LibreELEC v11.0.1; booted successfully.
  2. Configured wifi and enabled ssh within the LibreELEC interface.
  3. Successfully installed ‘Raspberry Pi Tools’ and ‘System Tools’ add-ons within LibreELEC, then rebooted via the Power icon in the Home interface.
  4. Logged in via ssh and ran curl | bash
  5. Script downloads and runs, then displays Argon One Setup Completed message.
  6. Ran nano /storage/.config/system.d/argononed.service
  7. Added EnvironmentFile=/etc/environment immediately below the default ExecStart=… line; no other modifications made to any other Argon One-relevant files.
  8. Rebooted via ssh session, but no fan activity when LibreELEC comes back up; also tried manually power cycling, but still no fan.

Any ideas please? Have I missed a step?

This line worked for me, to give the ability to shutdown the ArgonOne.

But has anyone been able to get it to turn on?

Note: I’m not using an NEC remote. It’s a Media Centre Remote (RC6).