This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
vnstat:install:in_ubuntu [24.12.2016 16:48] vergo |
vnstat:install:in_ubuntu [22.10.2022 15:30] (current) |
||
|---|---|---|---|
| Line 11: | Line 11: | ||
| - that the process is stopped in case of errors | - that the process is stopped in case of errors | ||
| - | ===== Ubuntu 9.10 - 15.10 ===== | + | ===== 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 libsqlite3-0 libsqlite3-dev | ||
| + | </ | ||
| + | |||
| + | Get the latest release and extract it | ||
| + | < | ||
| + | cd /usr/src | ||
| + | wget http:// | ||
| + | tar zxvf vnstat-2.10.tar.gz | ||
| + | </ | ||
| + | |||
| + | Compile and install the binaries | ||
| + | < | ||
| + | cd vnstat-2.10 | ||
| + | ./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 | Open a terminal and gain root permissions | ||
| Line 26: | Line 71: | ||
| < | < | ||
| apt-get update | apt-get update | ||
| - | apt-get install make gcc libc6-dev wget | + | apt-get install make gcc libc6-dev wget libsqlite3-0 libsqlite3-dev |
| </ | </ | ||
| Line 32: | Line 77: | ||
| < | < | ||
| cd /usr/src | cd /usr/src | ||
| - | wget http:// | + | wget http:// |
| - | tar zxvf vnstat-1.16.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
| </ | </ | ||
| Compile and install the binaries | Compile and install the binaries | ||
| < | < | ||
| - | cd vnstat-1.16 | + | cd vnstat-2.10 |
| ./configure --prefix=/ | ./configure --prefix=/ | ||
| </ | </ | ||