Difference between revisions of "VnStat After Install Script"
From Amahi Wiki
(New page: <h1>This page will show you what commands you need to run after one-click install of vnStat</h1> First, open up terminal and login as root: <code>su - root</code> <i>At this time the com...) |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <h1>This page will show you what commands you need to run after one-click install of vnStat</h1> | + | <!--<h1>This page will show you what commands you need to run after one-click install of vnStat</h1> |
First, open up terminal and login as root: | First, open up terminal and login as root: | ||
<code>su - root</code> | <code>su - root</code> | ||
+ | |||
<i>At this time the commands have to be run in root. Sorry for any inconvinence</i> | <i>At this time the commands have to be run in root. Sorry for any inconvinence</i> | ||
Line 10: | Line 11: | ||
<strong>Creates the /var/lib/vnstat/eth0 file with root:root:</strong> | <strong>Creates the /var/lib/vnstat/eth0 file with root:root:</strong> | ||
− | <code>vnstat -i eth0 -u | + | <code>vnstat -i eth0 -u</code> |
− | chown vnstat:vnstat /var/lib/vnstat/*eth0</code> | + | |
+ | <code>chown vnstat:vnstat /var/lib/vnstat/*eth0</code> | ||
<strong>Creates the /var/lib/vnstat/.eth0 file:</strong> | <strong>Creates the /var/lib/vnstat/.eth0 file:</strong> | ||
− | <code>vnstat -i eth0 -u | + | <code>vnstat -i eth0 -u</code> |
− | chown vnstat:vnstat /var/lib/vnstat/*eth0</code> | + | |
+ | <code>chown vnstat:vnstat /var/lib/vnstat/*eth0</code> | ||
<strong>Enables updates every minute:</strong> | <strong>Enables updates every minute:</strong> | ||
<code>sed -i -e 's/# \*\/5/\*/' /etc/cron.d/vnstat</code> | <code>sed -i -e 's/# \*\/5/\*/' /etc/cron.d/vnstat</code> | ||
+ | --> | ||
+ | Now go to http://vnstat and view all of your bandwidth stats. | ||
− | + | <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> |
Latest revision as of 20:06, 27 March 2011
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.