Jump to content
jonp

unRAID 6 NerdPack - CLI tools (iftop, iotop, screen, kbd, etc.)

1094 posts in this topic Last Reply

Recommended Posts

Or here

https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.plg

 

Share this post


Link to post

I'm going to remove the LT plugin repository from CA altogether.

 

While CA doesn't have an issue with blacklisting the LT version and preventing it from displaying if its not already installed, CA is having trouble distinguishing between the two versions under the Previously Installed and Installed sections  (and that will become more important during the next update of CA)

 

Should LT create another plugin in the future, then the plugin for the nonGUI version will either have to be renamed to something else (and blacklisted again), or deleted altogether from the repository.

 

Thanks.

Share this post


Link to post

I'm going to remove the LT plugin repository from CA altogether.

 

While CA doesn't have an issue with blacklisting the LT version and preventing it from displaying if its not already installed, CA is having trouble distinguishing between the two versions under the Previously Installed and Installed sections  (and that will become more important during the next update of CA)

 

Should LT create another plugin in the future, then the plugin for the nonGUI version will either have to be renamed to something else (and blacklisted again), or deleted altogether from the repository.

 

Thanks.

That'll work, I appreciate your dedication in maintaining CA and the repos/index involved.

 

Technically my Nerd Pack wasn't under Lime Tech but rather just a handful of tools I and others felt useful to have available.  Some of those packages I put together myself because they weren't versions for slackware.

 

You have a test system ready for a upcoming unRAID 6.2 beta?

 

Share this post


Link to post

You have a test system ready for a upcoming unRAID 6.2 beta?

That almost sounds like soonTM might become today/tomorrowTM

Share this post


Link to post

I'll make one more update to my plg, updating the repo url, so future updates will come from dmacias' repo instead of mine.

 

Are you still planning to do this? Or do we need to uninstall the old NerdPack and install the new one?

Share this post


Link to post

You can install the new one right on top of the old.

 

Thanks, that was easy

Share this post


Link to post

I just installed this on a brand new server.  It installed way too fast.  Didn't seem to download any of the big packages.  So after downloading I tried a few of them.  Bash doesn't like them like it does on my other server. (which is still running the 2015.12.07 version) 

 

https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.plg

 

Here is what bash complains about....

 

root@Server1:/boot# screen
-bash: screen: command not found

root@Server1:/boot# iftop
-bash: iftop: command not found
root@Server1:/boot#

Share this post


Link to post

Try going to Settings -> Nerdpack and selecting some packages to install

Share this post


Link to post

I just installed this on a brand new server.  It installed way too fast.  Didn't seem to download any of the big packages.  So after downloading I tried a few of them.  Bash doesn't like them like it does on my other server. (which is still running the 2015.12.07 version) 

 

https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.plg

 

Here is what bash complains about....

 

root@Server1:/boot# screen
-bash: screen: command not found

root@Server1:/boot# iftop
-bash: iftop: command not found
root@Server1:/boot#

Did you go to NerdPack settings and then pick and choose which packages to install?

Share this post


Link to post

Try going to Settings -> Nerdpack and selecting some packages to install

 

Yeah, shame on me.  I have used this before, and just installed it and tried to run it.

 

We need to put a notice on page one that says.

++++++++++++++++++++++++++++++

+

+  Stop Idiot    ----    this has changed to a GUI

+      (you can find the GUI on the Settings Page)

+

++++++++++++++++++++++++++++++

Share this post


Link to post

 

 

Try going to Settings -> Nerdpack and selecting some packages to install

 

Yeah, shame on me.  I have used this before, and just installed it and tried to run it.

 

We need to put a notice on page one that says.

++++++++++++++++++++++++++++++

+

+  Stop Idiot    ----    this has changed to a GUI

+      (you can find the GUI on the Settings Page)

+

++++++++++++++++++++++++++++++

 

An ID 10 T error. :)

Share this post


Link to post

I just had an ID 10 T error of my own...

 

I wanted to uninstall git.  So I turned uninstall "on" and then selected git.  And watched in confusion as everything except for git was uninstalled.

 

I figured out my mistake and quickly reinstalled inotify-tools since I know it is needed for the Dynamix File Integrity plugin.  Now going through other plugins to see what else is expected to be there.

 

Is there any way that plugins could register certain packages as required so they can't be uninstalled?

Share this post


Link to post

I had set all my python plugins e.g. Speedtest to use Eric's version of python and to download it to Nerdpack packages directory even though I wasn't using Nerdpack myself. That way I wouldn't overwrite versions of python when the Speedtest plugin was installed. And would use the python that was already installed by Nerdpack.

 

I was thinking I would make it so Nerdpack will only uninstalled packages that are downloaded by it. But that could still result in uninstalling packages needed by other plugins.

 

Maybe I could parse all the plg files for packages during uninstall and give a warning that a plugin is using that package.

Share this post


Link to post

Maybe I could parse all the plg files for packages during uninstall and give a warning that a plugin is using that package.

 

I like that idea.  Based on the plugins I have installed though, speedtest is the only one specifically looks for files in the /boot/config/plugins/NerdPack/packages/ directory, so you'd have to grep for matching filenames like 'inotify-tools-3.14-x86_64-1.txz' (or maybe 'inotify-tools*.txz?) and mark those as uninstallable.  That would be really cool.

 

My main complaint with the plugin is that the "uninstall Off/On" metaphor is confusing.  When you turn it On, why do all of the installed packages default to On?  It is unintuitive that you should have to go through and turn Off everything that you don't want to uninstall. I would expect that once you "enter destructive mode" you should have to select which packages to destruct, not select the ones you want to save.

 

I do really like this Plugin, much better than the all or nothing approach we had before.  Ultimately I'd like to see this plugin become a lightweight package manager for unRAID.  So other plugins would request 'inotify-tools-3.14-x86_64-1.txz' and this one would deal with downloading it and installing it.  That is kind of a tall order though :)

 

Share this post


Link to post

The uninstall and delete switches only apply to non/deselected packages. So if you deselect a package and click apply it will uninstall and/or delete the package based on install and download status as well as switch on/off status. The problem is if a package is installed outside of the plugin or package storage directory via command line or other plugin.

 

I added a plg file check that will eliminate uninstalling packages used by other plugins and will show the plugins that are dependent on them. I'll add it to the next update.

Share this post


Link to post

I added a plg file check that will eliminate uninstalling packages used by other plugins and will show the plugins that are dependent on them. I'll add it to the next update.

 

This sounds great, thanks!

Share this post


Link to post

Now that individual packages can get added/removed, I'd like to request two more helpful CLI tools:

 

1) jhead

 

I use this script:

  https://gist.github.com/ljm42/02b54ce9cc36f992515b

in set Unassigned Devices to copy photos from a camera card to the array.  Once they have been copied, the script calls jhead to autorotate them according to the exif data. 

 

I think it would be helpful for other people, and would prefer to install it here rather than dropping packages in /boot/extra/

 

The package is available from:

  http://www.slackware.com/~alien/slackbuilds/jhead/pkg64/13.37/jhead-2.90-x86_64-1alien.tgz

 

 

2) sqlite

 

If your Plex database gets corrupted, you need to use sqlite3 to repair it as described here:

  https://support.plex.tv/hc/en-us/articles/201100678-Repair-a-Corrupt-Database

 

It doesn't make sense to add this package to a Plex docker, because the first step in fixing corruption is to stop the Plex docker.  It would be much easier to add the package directly to unRAID.

 

This seems to be the right package:

  https://www.mirrorservice.org/pub/slackware/slackware64-13.37/slackware64/ap/sqlite-3.7.5-x86_64-1.txz

 

Thanks for considering it!

Share this post


Link to post

I can't seem to update PERL. It indicates an update is ready but nothing happens. Am I supposed to do anything at this point?

 

Also, can MC (master commander) be added? I can't remember if I installed that manually or it is already part of unraid.

Thanks for the NP.

 

nerdpack.png.b6dea10c2be0499d2fd2a5e553bc1658.png

Share this post


Link to post

Also, can MC (master commander) be added? I can't remember if I installed that manually or it is already part of unraid.

mc (Midnight Commander) has been part of unRAID as long as I have been using it, at least since v4.7

Share this post


Link to post

Please consider adding fdupes: https://github.com/adrianlopezroche/fdupes

I didn't forget about you. Added fdupes.

 

Now that individual packages can get added/removed, I'd like to request two more helpful CLI tools:

 

1) jhead

 

I use this script:

  https://gist.github.com/ljm42/02b54ce9cc36f992515b

in set Unassigned Devices to copy photos from a camera card to the array.  Once they have been copied, the script calls jhead to autorotate them according to the exif data. 

 

I think it would be helpful for other people, and would prefer to install it here rather than dropping packages in /boot/extra/

 

The package is available from:

  http://www.slackware.com/~alien/slackbuilds/jhead/pkg64/13.37/jhead-2.90-x86_64-1alien.tgz

 

 

2) sqlite

 

If your Plex database gets corrupted, you need to use sqlite3 to repair it as described here:

  https://support.plex.tv/hc/en-us/articles/201100678-Repair-a-Corrupt-Database

 

It doesn't make sense to add this package to a Plex docker, because the first step in fixing corruption is to stop the Plex docker.  It would be much easier to add the package directly to unRAID.

 

This seems to be the right package:

  https://www.mirrorservice.org/pub/slackware/slackware64-13.37/slackware64/ap/sqlite-3.7.5-x86_64-1.txz

 

Thanks for considering it!

Added jhead.  I thought sqlite was already part of unRAID.

 

Share this post


Link to post

I can't seem to update PERL. It indicates an update is ready but nothing happens. Am I supposed to do anything at this point?

 

Also, can MC (master commander) be added? I can't remember if I installed that manually or it is already part of unraid.

Thanks for the NP.

The package manager isn't very smart. The old under installed just means Perl is already installed but not by NerdPack. What version unRAID are you on? Older versions had Perl. It might also be left over from another plugin if you uninstalled it. You could deselect it. Apply. Reselect. Apply.

 

As long as is selected it will be installed on server start up.

Share this post


Link to post

Added jhead. 

 

Thanks!

 

I thought sqlite was already part of unRAID.

 

<snip>erased my obviously wrong reply</snip>

 

Sorry about that!  You're right, it was apparently added way back in 6b6.  I'm not sure how I missed it all this time.

Share this post


Link to post

Also, can MC (master commander) be added? I can't remember if I installed that manually or it is already part of unraid.

mc (Midnight Commander) has been part of unRAID as long as I have been using it, at least since v4.7

 

Ah yes. I never could remember if it was already included or not.

Thanks.

 

Share this post


Link to post

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.