Tag Archives: broadband

Monitor your bandwidth usage with vnstat [Ubuntu/Linux]

vnstat is a simple command line utility for monitoring bandwidth usage in Ubuntu or any other Linux based distributions and BSD. It’s a very handy tool for keeping an eye on overall bandwidth usage on your system, especially if you’re accessing web over mobile network or you’re using ISP that reduces speed after a certain limit e.g 50 GB (FUP).

vnstat

Features

  • very lightweight and efficient (low cpu usage regardless of traffic)
  • simple and easy to use (no configuration required)
  • it can monitor multiple interfaces simultaneously
  • multiple output options (daily, monthly etc)

Installing vnstat in Ubuntu/Linux

It’s already there in official package repository, all you need to do is open a terminal and type :

sudo apt-get install vnstat

As you install vnstat, it will start monitoring your internet traffic (default interface : eth0). Simply type vnstat to get an overview of actual bandwidth usage and the estimated usage for next day or month. It will also display the interface(s) it’s monitoring.

vnstat

For all available options, type :

vnstat --help

Few commands you should know

  • vnstat -d : for daily stats
  • vnstat -w : for weekly stats
  • vnstat -m : for monthly stats
  • vnstat -l : for analyzing live traffic
  • vnstat -t : shows usage statisticsĀ for top 10 days
newtwork-connections

How to Setup Mobile Broadband in Linux Mint 12 / Ubuntu 11.10

Slow Mobile broadband connection is not something a typical Linux user wants but in some case when no other options (cable broadband or 3G) are available it’s really useful. The average speed depends on your location, provider, signal strength and so many things; in india, it’s around 50-150 kbps (Now you may guess, why I’ve published very few articles in past three weeks, yeah! You’re right!). So in past three weeks, I tried a couple of mobile broadbands – first MTS Data Card, then Micromax modem with Airtel (better than MTS data card).

Anyway, this post is written for those who wants to set up such mobile broadband connection with Linux Mint 12 or similar Linux distributions such as Ubuntu 11.10. Most of the providers such as MTS, Micromax etc comes with an auto installer program for Windows (as you insert the modem in USB port, it gets recognized and the set up process begins.. and will complete in very simple steps) but unfortunately they do not provide such application for Linux based distributions such as Linux Mint 12 or Ubuntu 11.10 or Fedora etc.

Setting Up MTS Data Card In Linux Mint / Ubuntu

newtwork-connections

step 1 : Open Network Connections (search in Applications Menu) and click on Mobile Broadband tab then on Add button.

step2 : Then complete the setup process in few simple sub steps –

select-mobile-broadband-device

First, Choose the mobile broadband device –

Then, Choose Provider Country –

choose-provider-country

Next, Select your network provider (e.g Airtel, MTS etc for India)

select-provider

Now, you may get additional option such as Choose your billing plan (if your plan wasn’t listed in previous steps) otherwise your will be directly jumped to final step – to confirm and Apply the settings.

apply-settings

That’s All! If you’re having some problem then you can manually edit the connection parameters such as Authentication Protocols (e.g CHAP), Username, Password etc.

change-settings

Finally, on a successfully setup, the network icon will appear in top panel (near right corner) like this –

active-network-icon

That’s All. If you’re using some other Mobile broadband provider then select that while following the installation instructions. Process is same – not only across different network providers but also across Linux distributions similar to Linux Mint e.g Ubuntu, Fedora, Kubuntu, etc. Have Fun! :)