Kinda beginner question – how to install programs beyond cozy Docker Hub environment?
I installed some let’s say “standard” apps from TrueNas catalogue.
I learnt some Docker/Docker-compose basics and managed to install few custom apps from Docker Hub via YML.
Now I want to tinker with fan RPM management program (CoolerControl / CoolerControl · GitLab) but I don’t know how install it.
I tried to point to repository in different ways in Portainer – nope.
I tried to download project and use it via “Upload file” feature in Portainer – nope.
I tried Linux approach (I never use Linux before) at Shell but at the “curl” command I got warning from TrueNAS that its wrong method of doing things and I should use Web-interface.
Should I use some VM/Jail/SandBox mechanism?
I don’t want to bother you guys with step-by-step guide but few general advices or link to article would be greatly appreciated.
But I dont want change the core of the OS, I just want to get some sensor data from cooler…
Maybe the only soluation is to make VM on Debian and put program inside if it coudnt be done as Custom App?
I dont know thats why ask for advice.
Many treated Truenas like “just another linux distro”, tried to install additional packages and programs, broke their systems and then complained about it.
The Middleware truenas uses relies on certain package versions to funktion correctly and, even unintended, installing new programs may also update a package truenas relies on and therefore may break stuff.
You can try to run the Software in a vm or an app, but if the vm/container can’t see the sensors you want to query you’re out of luck
That git has some references to Docker in their Makefiles but I don’t see any obvious links to docker containers on the site.
Either they are there and I just missed them during my cursory glance at the site or they aren’t published. In the latter case, one option would be to build your own Docker image and then install that as a Custom App in TrueNAS.
It may be that because it needs access to system hardware, they haven’t put together a docker image for this. With GitLab, you can get a hint from Deploy → Package Registry if they’ve done so.
You could try to roll-your-own container, but, your best bet would be to install a basic Debian VM, where you’ll need to connect a PCI Passthrough Device so that the VM has access to your system fans.
Could you elaborate on the PCI Passthrough Device that would give access to the system fans? Would that require a dedicated PCI-e card acting as fan controller?
After you’ve created your VM (I don’t remember an option for this during the create process), and while it’s not running, you’ll click on the Devices button in the VM controls. From there, you’ll add a PCI Passthrough Device and pick the PCI device from the next dropdown. If you’re lucky your system will make it obvious as to which one has your sensors. In my case, it shows up as an Integrated Sensor Hub, but since motherboards vary here, you’ll have to determine which PCI device (if any) has your sensors.
Alternatively, if you have a motherboard with IPMI, there should be some options there to handle fan management as well; which eliminates the need for every bit of advice I’ve given so far.
Oh, so much things I have to learn…
Anyway, thank you guys for advices, at least I know the direction where to move
I’ll follow case with VM and PCI Passthrough Device method.
Topic closed.