Difference between revisions of "VnStat After Install Script"

From Amahi Wiki
Jump to: navigation, search
Line 28: Line 28:
  
 
<strong>The default port monitored is eth0. However this can be changed manually to eth3, wlan0, wlan1, etc. Please stop by the IRC channel if help is needed in changing.</strong>
 
<strong>The default port monitored is eth0. However this can be changed manually to eth3, wlan0, wlan1, etc. Please stop by the IRC channel if help is needed in changing.</strong>
 
[[Category:apps]]
 

Revision as of 13:17, 27 March 2011

This page will show you what commands you need to run after one-click install of vnStat

First, open up terminal and login as root:

su - root

At this time the commands have to be run in root. Sorry for any inconvinence

After you have done that, do the following commands in order:

Creates the /var/lib/vnstat/eth0 file with root:root:

vnstat -i eth0 -u

chown vnstat:vnstat /var/lib/vnstat/*eth0

Creates the /var/lib/vnstat/.eth0 file:

vnstat -i eth0 -u

chown vnstat:vnstat /var/lib/vnstat/*eth0

Enables updates every minute:

sed -i -e 's/# \*\/5/\*/' /etc/cron.d/vnstat

Now go to http://vnstat and view all of your bandwidth stats.

The default port monitored is eth0. However this can be changed manually to eth3, wlan0, wlan1, etc. Please stop by the IRC channel if help is needed in changing.