[PLUG-IN] NerdTools


Recommended Posts

On 7/27/2023 at 7:08 PM, Masterwishx said:

For the Fish i have "rm: missing operand"

 

20230727_200310.thumb.jpg.5d78d0dc53833b945f7d804b627469ca.jpg

 

Hi,

 

This error is not from fish. I have a clean install of unraid and I have the same error.
I installed fish to check it and I get the same as you. I have uninstalled it and restarted the machine and I also get the rm error as you can see in the image I put.
So the problem is neither nerdtools nor fish.

 

Screenshot-2023-08-01.thumb.png.c41e7ab479e123e4ed98d112d991bdb0.png

 

Best regards.

 

  • Like 1
Link to comment
3 hours ago, Mcklaren said:

 

A user requests to add a package to nerdtools and the only solution you can think of is to tell him to use another system?

If they need it now, this is a fast way to get it (and many other packages not available in NerdTools). I'm not sure what you're taking issue with.

Link to comment
3 hours ago, KnifeFed said:

If they need it now, this is a fast way to get it (and many other packages not available in NerdTools). I'm not sure what you're taking issue with.


 

Annoying me? It seems to me that you do not know how to interpret the commentary. Of course it doesn't bother me at all, but if someone asks for a package because it is not in the nerdtools tool I don't think the solution is to tell him to use another one. If you really want to help and tell him to install a package quickly it is as easy as downloading it in the path /boot/extra and run an upgradepkg -install-new package-name.txz, this is to provide a solution.

 

 

  • Confused 1
Link to comment
16 hours ago, Mcklaren said:

Hi,

 

When you set the switch to off do you press the apply button? Because if you don't apply the changes it doesn't uninstall. I just tried to install and uninstall powertop and it works correctly.

 

Best regards.

(facepalm) - I forgot to hit apply. My bad for wasting time.

On another note, do you know if it's possible to change the tweak settings so that it doesn't turn off the GPU?

Link to comment
7 hours ago, Mcklaren said:


 

Annoying me? It seems to me that you do not know how to interpret the commentary. Of course it doesn't bother me at all, but if someone asks for a package because it is not in the nerdtools tool I don't think the solution is to tell him to use another one. If you really want to help and tell him to install a package quickly it is as easy as downloading it in the path /boot/extra and run an upgradepkg -install-new package-name.txz, this is to provide a solution.

 

 

I'd argue using an Unraid plugin is easier and more maintainable than the manual method.

`un-get install tcpdump` is pretty simple and `un-get upgrade` is extremely useful.

Besides, you didn't even mention where to download the package so that's not particularly helpful. 

  • Like 1
Link to comment

I've submitted a PR to the NerdTools GitHub repo to upgrade Python 3.9 to Python 3.11. https://github.com/UnRAIDES/unRAID-NerdTools/pull/84 As far as I could tell, not a single person had shared a Python 3.11 build for Slackware anywhere on the internet, so I took it upon myself to get an Unraid development environment functional so I could compile Python 3.11 specially for Unraid.

I also included Setuptools 65.5.0 and Pip 23.2.1 as part of the package, so there is no longer a need to install them separately. They can always be updated using Pip if desired, for example "pip3 install --upgrade pip" 

 

I've tested it with a couple different Python projects, including my Difflens project as well as Borgbackup 1.2.4, and as far as I can see it's working well for my uses. There are a few modules that are not compiled into the Python package. For example, OpenSSL now needs >1.1.1 to be installed on the system as of Python 3.10, which Unraid does not meet by default. For that reason, the OpenSSL package will need to be installed alongside the Python package for Python/Pip to work correctly. I've updated the NerdTools dependency list to include OpenSSL, and it should get installed automatically when installing Python 3.11. 

 

Some other modules that I didn't compile were "`_dbm  _tkinter    _uuid nis    readline" so they will need to be installed via Pip or another method if necessary.

 

See 

for more detail on development 

Link to comment

And as a side note, I was able to get Borg and PyFuse3 Pip wheels compiled and functional with no additional system packages needed. They're attached here. They can be installed with "pip3 install /path/to/wheel" and can be used immediately after. Note that pyfuse3 is only needed if a Borg repository needs to be mounted. Otherwise it can be skipped. 

 

This falls out of the purview of NerdTools, but I figure it would be of interest to the group here since the Borgbackup system package is the only other way of getting it working on Unraid. This is easborgbackup-1.2.4-cp311-cp311-linux_x86_64.whlpyfuse3-3.2.3-cp311-cp311-linux_x86_64.whlier and more reliable, in my opinion, as Pip manages the dependency installation and upgrading can be done by replacing only the Wheel file.

 

Here are my development notes:

 



## Compiling Borg 1.2.4 on Unraid 6.12.3
- Starting with a fresh reboot, plus the openSSL and python 3.11.4 package installations I figured out earlier
- `pip3 install borgbackup`
- Installing the following packages as precursors

pkg-config-0.29.2-x86_64-4.txz
gcc-13.2.0-x86_64-1.txz
glibc-2.37-x86_64-2.txz
kernel-headers-6.1.42-x86-1.txz
binutils-2.41-x86_64-1.txz
acl-2.3.1-x86_64-1.txz


python:
msgpack-1.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
packaging-23.1-py3-none-any.whl
pip        23.2.1
setuptools 65.5.0


- Errors seen and their package fix if there was an issue:
    - `OSError: pkg-config probably not installed: FileNotFoundError(2, 'No such file or directory')` is fixed by installing pkg-config
    - `error: command 'gcc' failed: No such file or directory` is fixed by installing gcc
    - `/usr/include/openssl/evp.h:22:12: fatal error: stdio.h: No such file or directory` is fixed by installing glibc
    - `/usr/include/bits/local_lim.h:38:10: fatal error: linux/limits.h: No such file or directory` is fixed by kernel-headers
    - `gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory` is fixed by installing binutils
    - ` src/borg/platform/linux.c:1104:10: fatal error: sys/acl.h: No such file or directory`  is fixed by installing acl
    - That was it. After installing those dependencies, the build succeeded. I rebooted and reinstalled to confirm. 


Compiling PyFUSE3 on Unraid 6.12.3
- Starting with a fresh reboot, plus the openSSL and python 3.11.4 package installations I figured out earlier
- `pip3 install pyfuse3`
- Installing the following packages as precursors

pkg-config-0.29.2-x86_64-4.txz
fuse3-3.15.0-x86_64-1.txz
gcc-13.2.0-x86_64-1.txz
glibc-2.37-x86_64-2.txz
kernel-headers-6.1.42-x86-1.txz
binutils-2.41-x86_64-1.txz

python:
trio-0.22.2-py3-none-any.whl
attrs-23.1.0-py3-none-any.whl
sortedcontainers-2.4.0-py2.py3-none-any.whl
idna-3.4-py3-none-any.whl
outcome-1.2.0-py2.py3-none-any.whl
sniffio-1.3.0-py3-none-any.whl


- Errors seen and their package fix if there was an issue:
    - `FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config'` fixed by installing pkg-config
    - `Package fuse3 was not found in the pkg-config search path` fixed by installing fuse3
    - `error: command 'gcc' failed: No such file or directory` fixed by installing gcc
    - `/usr/include/python3.11/Python.h:23:12: fatal error: stdlib.h: No such file or directory` fixed by installing glibc
    - `/usr/include/bits/errno.h:26:11: fatal error: linux/errno.h: No such file or directory` fixed by installing kernel-headers
    - `gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory` fixed by installing binutils
    - And then it built! I rebooted and confirmed it worked as well. Seems good. 

Link to comment
On 7/31/2023 at 10:06 PM, NeoMatrixJR said:

Second this...I could have sworn I used TCPDump on my unRAID server before....can we get this added back?

 

Hi,

 

The TCPDump package needs openssl 3 to work and UnRAID has version 1.1.1 installed. We are talking to them to update the openssl package or let us add it. As soon as this issue is solved we will add the tcpdump package.

 

Best regards.

Link to comment
On 8/7/2023 at 11:20 AM, Secarius said:

Hi @EUGENI_CAT

would it be possible to add "stunnel" to NerdTools?

https://mirrors.slackware.com/slackware/slackware-current/source/n/stunnel/

 

Thank you very much

 

Hi,

 

The stunnel package needs openssl 3 to work and UnRAID has version 1.1.1 installed. We are talking to them to update the openssl package or let us add it. As soon as this issue is solved we will add the stunnel package.

 

Best regards.

Link to comment
On 8/3/2023 at 3:59 PM, kubed_zero said:

And as a side note, I was able to get Borg and PyFuse3 Pip wheels compiled and functional with no additional system packages needed. They're attached here. They can be installed with "pip3 install /path/to/wheel" and can be used immediately after. Note that pyfuse3 is only needed if a Borg repository needs to be mounted. Otherwise it can be skipped. 

 

This falls out of the purview of NerdTools, but I figure it would be of interest to the group here since the Borgbackup system package is the only other way of getting it working on Unraid. This is easborgbackup-1.2.4-cp311-cp311-linux_x86_64.whlpyfuse3-3.2.3-cp311-cp311-linux_x86_64.whlier and more reliable, in my opinion, as Pip manages the dependency installation and upgrading can be done by replacing only the Wheel file.

 

Here are my development notes:

 



## Compiling Borg 1.2.4 on Unraid 6.12.3
- Starting with a fresh reboot, plus the openSSL and python 3.11.4 package installations I figured out earlier
- `pip3 install borgbackup`
- Installing the following packages as precursors

pkg-config-0.29.2-x86_64-4.txz
gcc-13.2.0-x86_64-1.txz
glibc-2.37-x86_64-2.txz
kernel-headers-6.1.42-x86-1.txz
binutils-2.41-x86_64-1.txz
acl-2.3.1-x86_64-1.txz


python:
msgpack-1.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
packaging-23.1-py3-none-any.whl
pip        23.2.1
setuptools 65.5.0


- Errors seen and their package fix if there was an issue:
    - `OSError: pkg-config probably not installed: FileNotFoundError(2, 'No such file or directory')` is fixed by installing pkg-config
    - `error: command 'gcc' failed: No such file or directory` is fixed by installing gcc
    - `/usr/include/openssl/evp.h:22:12: fatal error: stdio.h: No such file or directory` is fixed by installing glibc
    - `/usr/include/bits/local_lim.h:38:10: fatal error: linux/limits.h: No such file or directory` is fixed by kernel-headers
    - `gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory` is fixed by installing binutils
    - ` src/borg/platform/linux.c:1104:10: fatal error: sys/acl.h: No such file or directory`  is fixed by installing acl
    - That was it. After installing those dependencies, the build succeeded. I rebooted and reinstalled to confirm. 


Compiling PyFUSE3 on Unraid 6.12.3
- Starting with a fresh reboot, plus the openSSL and python 3.11.4 package installations I figured out earlier
- `pip3 install pyfuse3`
- Installing the following packages as precursors

pkg-config-0.29.2-x86_64-4.txz
fuse3-3.15.0-x86_64-1.txz
gcc-13.2.0-x86_64-1.txz
glibc-2.37-x86_64-2.txz
kernel-headers-6.1.42-x86-1.txz
binutils-2.41-x86_64-1.txz

python:
trio-0.22.2-py3-none-any.whl
attrs-23.1.0-py3-none-any.whl
sortedcontainers-2.4.0-py2.py3-none-any.whl
idna-3.4-py3-none-any.whl
outcome-1.2.0-py2.py3-none-any.whl
sniffio-1.3.0-py3-none-any.whl


- Errors seen and their package fix if there was an issue:
    - `FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config'` fixed by installing pkg-config
    - `Package fuse3 was not found in the pkg-config search path` fixed by installing fuse3
    - `error: command 'gcc' failed: No such file or directory` fixed by installing gcc
    - `/usr/include/python3.11/Python.h:23:12: fatal error: stdlib.h: No such file or directory` fixed by installing glibc
    - `/usr/include/bits/errno.h:26:11: fatal error: linux/errno.h: No such file or directory` fixed by installing kernel-headers
    - `gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory` fixed by installing binutils
    - And then it built! I rebooted and confirmed it worked as well. Seems good. 

 

Hi,

 

We will look at it as soon as we can. Thank you.

 

Best regards.

Link to comment
2 minutes ago, Mcklaren said:

 

Hi,

 

The stunnel package needs openssl 3 to work and UnRAID has version 1.1.1 installed. We are talking to them to update the openssl package or let us add it. As soon as this issue is solved we will add the stunnel package.

 

Best regards.

Hi, 

i have it installed manually on unraid 6.11.5, and it is working without openssl 3. I used version:
https://slackware.uk/slackware/slackware64-15.0/slackware64/n/stunnel-5.62-x86_64-1.txz
 

But for now, i have to reinstall it on every reboot, so in the past i used it with the old Tools.

Maybe you could have a look.

 

Thank you very much for your work.

 

Kind Regards

Link to comment

Hi all, still having issues with iotop, it refuses to work:

Quote

Traceback (most recent call last):
  File "/usr/sbin/iotop", line 17, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/iotop/ui.py", line 620, in main
    main_loop()
  File "/usr/lib64/python2.7/site-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib64/python2.7/site-packages/iotop/ui.py", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib64/python2.7/curses/wrapper.py", line 22, in wrapper
    stdscr = curses.initscr()
  File "/usr/lib64/python2.7/curses/__init__.py", line 33, in initscr
    fd=_sys.__stdout__.fileno())
_curses.error: setupterm: could not find terminal

I have reinstalled Nerdpack to no avail.

I have python installed:

image.thumb.png.275dba7b6057d09c3a657de08ccd78c8.png

Any idea what could be wrong?

Thanks

Link to comment
23 hours ago, Secarius said:

Hi, 

i have it installed manually on unraid 6.11.5, and it is working without openssl 3. I used version:
https://slackware.uk/slackware/slackware64-15.0/slackware64/n/stunnel-5.62-x86_64-1.txz
 

But for now, i have to reinstall it on every reboot, so in the past i used it with the old Tools.

Maybe you could have a look.

 

Thank you very much for your work.

 

Kind Regards

 

Hi,

 

OK, I see that you are using the stable version, I have tested the version that is in current and it is the one that openssl 3 needs. In the next version of nerdtools that will be released soon we will add this package.

 

Best regards.

Link to comment
1 hour ago, wesman said:

Any change FFMPEG could get added to this tool? and FFPROBE? 

 

Hi,

We have tried adding ffmpeg and it needs a lot of dependencies, nerdtools is not intended for that use. If you need ffmpeg you can tell us and we can make a docker that has ffmpeg so you can use it, but sorry, in nerdtools we are not going to add it.

 

Best regards.

Link to comment
4 hours ago, shpitz461 said:

Hi all, still having issues with iotop, it refuses to work:

I have reinstalled Nerdpack to no avail.

I have python installed:

image.thumb.png.275dba7b6057d09c3a657de08ccd78c8.png

Any idea what could be wrong?

Thanks

 

Hi,

I have tried to install iotop and also python3 to have both version 2 and version 3 installed and it works perfectly. I can't reproduce the error.

 

Do you have nerdtools or nerdpack? Try uninstalling iotop and python2 and installing again.

 

Best regards.

Link to comment
1 hour ago, DarkKnight said:

I see that StorCLI (For LSI) has been requested a couple of times.

 

 

Hi,

for now we only add official packages or packages that are in SBO but we don't create packages ourselves due to lack of time. If you have a SlackBuild of the package we can try to add it. Sorry for the inconvenience.

 

Best regards.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.