# Install lm-sensors on "Host OS" on a Raspberry Pi?

**URL:** <https://forums.balena.io/t/install-lm-sensors-on-host-os-on-a-raspberry-pi/125230>\
**Category:** balenaOS\
**Tags:** raspberrypi3\
**Created:** [June 3, 2020, 3:18pm UTC](https://forums.balena.io/t/install-lm-sensors-on-host-os-on-a-raspberry-pi/125230 "2020-06-03T15:18:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noiden](https://avatars.discourse-cdn.com/v4/letter/n/e274bd/32.png) [@Noiden](https://forums.balena.io/u/Noiden)\
**Post date:** [June 3, 2020, 3:18pm UTC](https://forums.balena.io/t/install-lm-sensors-on-host-os-on-a-raspberry-pi/125230/1 "2020-06-03T15:18:28Z")

</div>

Hi,

Is it possible to install lm-sensors and other applications directly on the “Host OS”?

I’m running balena-sound but would like to see the temperature of the device.

It this possible or do I have to start another container for this?

Thanks.

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [June 3, 2020, 3:37pm UTC](https://forums.balena.io/t/install-lm-sensors-on-host-os-on-a-raspberry-pi/125230/2 "2020-06-03T15:37:18Z")

</div>

Hi @Noiden,

Accessing device resources should be possible from any container that you’ve marked `privileged: true` in your docker-compose.yml file. A single-container app has these privileges by default, but multi-container apps don’t so it needs to be explicitly set. Here’s [documentation on that](https://www.balena.io/docs/learn/develop/hardware/). You shouldn’t need to add a separate container just to access device (what you call “Host OS”) resources. They can be part of any service container.

For example, running `cat /sys/class/thermal/thermal_zone0/temp` in a privileged container will reveal an RPi’s CPU temp. I believe all the balenaSound containers are privileged and should support that. What kind of device are you using?

John

---

<div class="post-metadata">

**Author:** ![Noiden](https://avatars.discourse-cdn.com/v4/letter/n/e274bd/32.png) [@Noiden](https://forums.balena.io/u/Noiden)\
**Post date:** [June 3, 2020, 4:10pm UTC](https://forums.balena.io/t/install-lm-sensors-on-host-os-on-a-raspberry-pi/125230/4 "2020-06-03T16:10:53Z")

</div>

Hi [@jtonello](https://forums.balena.io/u/jtonello),

Thanks for the answer.

I was thinking of installing lm-sensors directly on the “Host OS” that is balenaOS where I come when I do a "balena ssh ".

But I can’t find any package manager on the “core” and I don’t want to install it on the containers that comes with “balena-sound”.

I’m running balena-sound on a Raspberry Pi 3.

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [June 3, 2020, 4:15pm UTC](https://forums.balena.io/t/install-lm-sensors-on-host-os-on-a-raspberry-pi/125230/5 "2020-06-03T16:15:47Z")

</div>

Hi,

In this case, I’d suggest adding a new container specifically for `lm-sensors`. We don’t recommend installing tooling on the Host OS.

John

---

<div class="post-metadata">

**Author:** ![Noiden](https://avatars.discourse-cdn.com/v4/letter/n/e274bd/32.png) [@Noiden](https://forums.balena.io/u/Noiden)\
**Post date:** [June 3, 2020, 7:46pm UTC](https://forums.balena.io/t/install-lm-sensors-on-host-os-on-a-raspberry-pi/125230/7 "2020-06-03T19:46:40Z")

</div>

Cool… Will do that thanks.
