This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
iplserver:iplconfig [2010/10/28 15:58] – Bernard Condrau | iplserver:iplconfig [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Initial configuration ===== | ||
- | ==== add users ==== | ||
- | |||
- | adduser < | ||
- | vim /etc/group | ||
- | |||
- | If necessary, add permissions to the respective user | ||
- | visudo | ||
- | |||
- | ==== change hostname ==== | ||
- | |||
- | hostname < | ||
- | |||
- | ==== install bandwith monitor ==== | ||
- | |||
- | yum -y install vnstat | ||
- | |||
- | Run the following command to establish the database: | ||
- | vnstat -u -i eth0 | ||
- | |||
- | Then enter the same command into the crontab to be executed every hour: | ||
- | crontab -e | ||
- | 0 * * * * root vnstat -u -i eth0 | ||
- | |||
- | Check daily, weekly or monthly bandwidth usage with vnstat -d, vnstat -w or vnstat -m, e.g. | ||
- | vnstat -m | ||
- | |||
- | A web frontend can be found at [[http:// |