nut icon indicating copy to clipboard operation
nut copied to clipboard

Linux instalation

Open JayBlaze-kun opened this issue 6 months ago • 8 comments

I recently switched to Linux, and getting Nut to work on Ubuntu was quite a challenge. I ran into missing dependencies, broken commands, and outdated repositories. On top of that, Nut only supports PyQt5, but some of its dependencies seem to be moving toward PyQt6 — which Nut doesn't officially support. I even had to create a custom RangeSlider that’s compatible with PyQt5, since the official one only works with PyQt6.

If it’s helpful, I’d be happy to share an updated setup guide along with the files I modified to get Nut running smoothly on Linux.

JayBlaze-kun avatar Jun 09 '25 19:06 JayBlaze-kun

Please do!!! I've been trying to get Nut to work on Linux for ages, but nothing seems to be working

kiozaiik avatar Jun 16 '25 01:06 kiozaiik

Any news on this? It would truly be very helpful, installing Nut on mint is giving me nightmares

BigGuyDelta avatar Jun 25 '25 00:06 BigGuyDelta

Any news on this? It would truly be very helpful, installing Nut on mint is giving me nightmares

Are you trying to get the command line version or the gui version to run on Linux?

blawar avatar Jun 25 '25 00:06 blawar

I got the UI working on linux but I run into a translation issue...

missing translation file '/home/stanny/Switch/nut/public_html/translate.json' or it's not a JSON-file

Image

I use pyenv, installed 3.9.0 and set it global, uninstalled systems python and created a link to the shim for /usr/bin/python. I updated pip and ran pip install -r requirement.txt from the instructions. Also installed other dependencies.

Using CachyOS (arch) btw. ;,,;

stoneynutcase avatar Aug 01 '25 09:08 stoneynutcase

@stoneynutcase having the same issue on debian trixie (also in a python 3.12.4 virtualenv)

khimaros avatar Aug 07 '25 23:08 khimaros

looks like missing translation.json is from this: https://github.com/blawar/nut/pull/518

khimaros avatar Aug 07 '25 23:08 khimaros

Works fine with conda. Install libcurl4-openssl-dev libssl-dev and any other needed dependency, create a blank conda env (I simply use micromamba), install py3.9 and voilà. Then just pip install the requirements file.

`

nozerorma avatar Aug 15 '25 12:08 nozerorma