2

I'm running Ubuntu 16.04. Is there a way to display the total received data which is available in the network history of System monitor tool, on the Unity Panel?

I have limited amount of bandwidth available every month, so it would be nice to have that status visible all the time.

karel
  • 114,770
  • What version of Ubuntu are you running? 16.04? 14.04? This might affect what software is available/compatible for your system –  May 07 '16 at 22:53

2 Answers2

1

Figured it out myself

Installed indicator-sysmonitor.

Then added this command to get total received:

ifconfig wlp3s0 | grep -oP 'RX bytes:\s*\K\d+' | awk '{ printf("%.0f\n", $0 / 1024 / 1024)}'
muru
  • 197,895
  • 55
  • 485
  • 740
0

The existing answer is great for listing network traffic received for the current boot but this means manual book keeping to track against the ISP's monthly billing cycle.

A better method is to use vnstat. See: How to track the total network data in a month

You can use conky to display your monthly consumption on your desktop, along with the current session totals that you see using indicator-systmonitor now:

conky vnstat

To learn how to setup vnstat follow the link above.