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_with_image_output [22.12.2015 00:45] vergo |
vnstat:install:in_ubuntu_with_image_output [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 | + | ===== Ubuntu 15.10 and later ===== |
| Open a terminal and gain root permissions | Open a terminal and gain root permissions | ||
| Line 26: | Line 27: | ||
| < | < | ||
| apt-get update | apt-get update | ||
| - | apt-get install make gcc libc6-dev wget libgd3 libgd-dev | + | apt-get install make gcc libc6-dev wget libgd3 libgd-dev libsqlite3-0 libsqlite3-dev |
| </ | </ | ||
| Line 32: | Line 33: | ||
| < | < | ||
| cd /usr/src | cd /usr/src | ||
| - | wget http:// | + | wget http:// |
| - | tar zxvf vnstat-1.15.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
| </ | </ | ||
| Compile and install the binaries | Compile and install the binaries | ||
| < | < | ||
| - | cd vnstat-1.15 | + | cd vnstat-2.10 |
| ./configure --prefix=/ | ./configure --prefix=/ | ||
| </ | </ | ||
| Line 44: | Line 45: | ||
| Install the service file and start the daemon | Install the service file and start the daemon | ||
| < | < | ||
| - | cp -v examples/upstart/vnstat.conf /etc/init/ | + | cp -v examples/systemd/vnstat.service |
| - | initctl | + | systemctl enable vnstat |
| + | systemctl | ||
| </ | </ | ||
| Line 54: | Line 56: | ||
| which should reply " | which should reply " | ||
| - | ===== Ubuntu | + | ===== Ubuntu |
| Open a terminal and gain root permissions | Open a terminal and gain root permissions | ||
| Line 69: | Line 71: | ||
| < | < | ||
| apt-get update | apt-get update | ||
| - | apt-get install make gcc libc6-dev wget libgd2-xpm libgd2-xpm-dev | + | apt-get install make gcc libc6-dev wget libgd3 libgd-dev libsqlite3-0 libsqlite3-dev |
| </ | </ | ||
| Line 75: | Line 77: | ||
| < | < | ||
| cd /usr/src | cd /usr/src | ||
| - | wget http:// | + | wget http:// |
| - | tar zxvf vnstat-1.15.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
| </ | </ | ||
| Compile and install the binaries | Compile and install the binaries | ||
| < | < | ||
| - | cd vnstat-1.15 | + | cd vnstat-2.10 |
| - | ./configure --prefix=/ | + | ./configure --prefix=/ |
| </ | </ | ||
| Line 96: | Line 98: | ||
| </ | </ | ||
| which should reply " | which should reply " | ||
| + | |||