Network Usage Desklet
What it does:
This applet keeps track of your Internet usage.
How it does it:
The vnstat daemon runs in the background and collects info about your Internet usage all the time the machine is running and maintains a data set from once it is initially activated.
The applet detects which device you're currently using, and simply exports a graph using vnstati. The latest version allows you to select the type of graph although for most users the default summary will be the most useful.
You can have multiple instances to display several graphs in parallel.
There is a similar applet, firstname.lastname@example.org , which can also be run in parallel.
What you need for it to work:
- To install vnstat
- To install vnstati
- To have the vnstat daemon running
- To have vnstat configured for the devices you are using.
Notes: In Linux Mint, you can simply run
apt install vnstati and that will take care of everything for the built in devices. In other distributions it might depend on the way things are packaged but it's likely to be similar.
It is possible to add additional devices, for example a USB Mobile Internet stick. Running
man vnstat will give some information on how to proceed but beware it is not trivial.
Use on Distributions other than Mint:
- The original versions assumed the NMClient and NetworkManager libraries are in use as is the case in Mint versions up to 18.3 and most other current distro versions.
- Version 1.0.0 can also switch to the more recent NM library used on some recent distributions such as Fedora 27 and higher.
- Version 1.0.1 and higher can only use the new NM libraries when Cinnamon 4.0 or higher is in use to avoid potential segfaults in Cinnamon 4.0. This should support all current Linux Distributions which support Cinnamon 4.0.
- It is possible that you may have to set up vnstati on other distributions - running
man vnstatwill provide information on how to proceed if that is the case.
- Feedback on your experiences on other distributions would be welcome.
- The Desklet is based on an Applet by Clem.
- The original Author of the Desklet was Siavash Salemi - 28 Sep 2013
- Translation Support and bug fixes by NikoKrause
- Network manager selection by Peter Curtis based on a technique by Jason Hicks
*It is now being supported and extended by @pdcurtis who is now listed as the current author. He occasionally checks the comments on the Cinnamon Spices Web Site, however that does not automatically notify him so if you want a rapid response please also alert him via the Form at www.pcurtis.com. On github, mentioning @pdcurtis in any conversation will cause it to be emailed to him.
Change log since pdcurtis became involved
- Extend number of choices of vnstati formats to remove need for user specified format.
- Update CHANGELOG.md and README.md
- Add desklet_id to various functions and enable multiple instances
- Add Configure (settings-schema.json) to applet
- Provide options to choose different vnstati formats including a user specified format
- Tidy code to remove trailing spaces
- Change Icon to be unique and have better affordance
- Add CHANGELOG.md and Update README.md
- Significant change to code to identify device as old code failed under Cinnamon 4.0
- New code is identical to that used in applets email@example.com and netusagemonitor@pdcurtis
- Change "author" to "pdcurtis"
- Changes for Cinnamon 4.0 and higher to avoid segfaults when old Network Manager Library is no longer available by using multiversion with folder 4.0 - Issues #2094 and #2097
- Remove Try-Catch as no longer required in 4.0 and associated changes.
- It is believed that all Distributions packaging Cinnamon 4.0 have changed to the new Network Manager Libraries
- Changes to check which network manager libraries are in use and choose which to use - addresses/solves issue #1647 with Fedora versions 27 and higher.
- Update README.md
Log In To Comment!