Can i install additional nut tools driver on SCALE?

Hi there!

New to truenas SCALE. I have a ups, model: Huawei UPS2000-G-1krts.
This model is somewhat supported by the NUT tools. (See: HUAWEI_UPS2000(8))

However, the driver seemes to be not included by default and needs to be manually compiled.

There are some walkthroughs to add additional driver to the NUT tools in scale, like this one: Truenas Scale monitoring Huawei UPS2000G - Cloud Alchemist

Sadly, the apt-get seemes to be no longer available in current version of SCALE.

Please thell me is there some walkaround? like compile it in another machine and copy into my SCALE? or is there some way to enable normal installation?

Thanks in advance!

Its 100% unsupported to add things to the base system, but if you must tinker and understand the risks you can use the install-dev-tools command to re-load apt and friends. Otherwise I’d suggest doing any custom work in a Sandbox/Jail and loading drivers out of there.

2 Likes

Thanks! i’ll try it out (and probably break the system a few times).
But that’s the fun! :rofl:

1 Like

[update] The walkthrough mentioned in the main thread actually worked. Had a little difficulties in installing the autoconf, but eventually nailed it. (And the system didn’t break, fortunately).

Does this mean that there is no supported way to install either Nut or Apcupsd?

NUT is already installed. There is no supported way to add additional drivers to it.

1 Like

Yeah, since posting my question, I found it at System Settings → Services → UPS.

@kris Is this mehtod out of date? I am testing truenas before migrating data for daily use, and found the same problem with huawei-ups2000. When i use OMV, i can copy a nut driver(blog post teach how to compile the driver, nut official driver do not support usb-connected way to huawei-ups2000) to /usr/lib/nut/ to support usb-connected to the ups. But in truenas will raise read-only file system. How to make it works.

It would help if you point to what blog post. The options are the same as posted. Developer mode or Sandbox/Jail

https://zhuanlan.zhihu.com/p/431529913

This is the tutorial of compiling driver for huawei-ups2000. I successfully compiled the driver and make huawei-ups2000 work in OMV7 via usb connected