lxde / lxpanel

Other
52 stars 38 forks source link

NetSpeed - NetLoad plugin for lxpanel #36

Closed Zen997 closed 2 years ago

Zen997 commented 2 years ago

This is a Feature Request and not an issue. The lxpanel is great, but it is missing a "NetSpeed" plugin that is available in gnome-panel as shell extension, mate-panel as an applet and xfce4-panel as "xfce4-netload-plugin". I'd like to ask any programmer, who is interested to create new or modify/reprogram an existing applet/plugin. Here are some existing projects for xfce4, mate and gnome panels:

https://github.com/search?q=xfce4-netload-plugin

https://github.com/search?q=mate-netspeed

https://github.com/search?q=gnome-netspeed

Thank you very much.

Denzy7 commented 2 years ago

Hey. I happen to have just the plugin

Zen997 commented 2 years ago

Hello and thank you. I have tried to install the plugin (my OS is Debian 11 with LXDE), but got a bunch of errors: CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! cmake --build build No such file or directory CMake Error: Generator: execution of make failed. Make command was: && I am not a programmer, so I couldn't resolve the errors. Any advice? Thanks.

Denzy7 commented 2 years ago

Hi
Ensure you have installed build dependencies.
Try running make --v if not found install:
sudo apt install build-essential pkg-config
Check lxpanel with pkg-config:
pkg-config --cflags lxpanel
Should return a whole lot of directories that start with -I
Should now build!

Zen997 commented 2 years ago

Hello Dennis and thank you so much! I truly appreciate your help and timely response. I have been asking this question on multiple Linux forums, but you are the only one who responded with a usable answer. I am one of those who prefers tried and true instead of new and unknown, functionality over eye candy, minimalist system with only absolutely necessary packages installed over average user oriented system. For the reasons above LXDE is my only preferred DE and Debian, Devuan and Star are my preferred distros. Xfce and MATE are also OK, but I always come back to LXDE. I love lxpanel and the only missing plugin in my opinion is the NetSpeed. I will try your solution and comment with the results. Thanks again.

Denzy7 commented 2 years ago

Glad to see you are interested! I updated the build instructions too

Zen997 commented 2 years ago

Hello Dennis, With your help I managed to build and install the NetSpeedMonitor plugin. I was missing some programming and development related packages on my system. After installing build-essential and lxpanel-dev packages with all dependencies and resolving the error below, I finally got the actual plugin - "netspeedmonitor.so", which I copied to /usr/lib/x86_64-linux-gnu/lxpanel/plugins. After reboot and adding the NetSpeedMonitor to lxpanel, everything is working perfectly (screenshot attached).

-- No package 'lxpanel' found Package lxpanel was not found in the pkg-config search path. Perhaps you should add the directory containing `lxpanel.pc' to the PKG_CONFIG_PATH environment variable

Thank you so much for your help! NetSpeedMonitor LXDE-NetSpeed

Denzy7 commented 2 years ago

Awesome. You can now close this issue