This shows you the differences between two versions of the page.
vnstat:install:in_ubuntu [24.12.2016 16:52] vergo |
vnstat:install:in_ubuntu [22.10.2022 15:30] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing vnStat in Ubuntu ====== | ||
- | ===== Disclaimer ===== | ||
- | |||
- | These instructions assume | ||
- | |||
- | - access to ' | ||
- | - use only distribution version specific instructions | ||
- | - some basic Linux skills | ||
- | - commands aren't copypasted blindly | ||
- | - that the process is stopped in case of errors | ||
- | |||
- | ===== Ubuntu 15.10 and later ===== | ||
- | |||
- | |||
- | Open a terminal and gain root permissions | ||
- | |||
- | < | ||
- | |||
- | Verify that root has been gained | ||
- | |||
- | < | ||
- | |||
- | which should reply " | ||
- | |||
- | Install needed development packages | ||
- | < | ||
- | apt-get update | ||
- | apt-get install make gcc libc6-dev wget | ||
- | </ | ||
- | |||
- | Get the latest release and extract it | ||
- | < | ||
- | cd /usr/src | ||
- | wget http:// | ||
- | tar zxvf vnstat-1.16.tar.gz | ||
- | </ | ||
- | |||
- | Compile and install the binaries | ||
- | < | ||
- | cd vnstat-1.16 | ||
- | ./configure --prefix=/ | ||
- | </ | ||
- | |||
- | Install the service file and start the daemon | ||
- | < | ||
- | cp -v examples/ | ||
- | systemctl enable vnstat | ||
- | systemctl start vnstat | ||
- | </ | ||
- | |||
- | Verify that daemon process got started | ||
- | < | ||
- | pgrep -c vnstatd | ||
- | </ | ||
- | which should reply " | ||
- | |||
- | ===== Ubuntu 9.10 - 14.10 ===== | ||
- | |||
- | Open a terminal and gain root permissions | ||
- | |||
- | < | ||
- | |||
- | Verify that root has been gained | ||
- | |||
- | < | ||
- | |||
- | which should reply " | ||
- | |||
- | Install needed development packages | ||
- | < | ||
- | apt-get update | ||
- | apt-get install make gcc libc6-dev wget | ||
- | </ | ||
- | |||
- | Get the latest release and extract it | ||
- | < | ||
- | cd /usr/src | ||
- | wget http:// | ||
- | tar zxvf vnstat-1.16.tar.gz | ||
- | </ | ||
- | |||
- | Compile and install the binaries | ||
- | < | ||
- | cd vnstat-1.16 | ||
- | ./configure --prefix=/ | ||
- | </ | ||
- | |||
- | Install the service file and start the daemon | ||
- | < | ||
- | cp -v examples/ | ||
- | initctl start vnstat | ||
- | </ | ||
- | |||
- | Verify that daemon process got started | ||
- | < | ||
- | pgrep -c vnstatd | ||
- | </ | ||
- | which should reply " |