ManyCodes.com – codes & scripts Get free programming codes and tutorials!

21Jan/100

Installing vnstat

Step 1: Installing vnstat

cd /usr/local/src
wget http://humdi.net/vnstat/vnstat-1.6.tar.gz
tar -zxvf vnstat-1.6.tar.gz
cd vnstat-1.6
make && make install
vnstat -u -i eth0

Step 2: Making vnstat root only

chmod 700 /usr/bin/vnstat
chmod 700 /var/lib/vnstat/ -R

Step 3: Now you can check the stats, use help for possbible commands

vnstat --help

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Webnews
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Ask
  • Facebook
  • Technorati
  • YahooBuzz