This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vnstat:install:in_ubuntu [23.01.2015 20:31] vergo created |
vnstat:install:in_ubuntu [22.10.2022 15:30] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Disclaimer ===== | ===== Disclaimer ===== | ||
- | These instructions assume | + | These instructions assume |
- access to ' | - access to ' | ||
Line 9: | Line 9: | ||
- some basic Linux skills | - some basic Linux skills | ||
- commands aren't copypasted blindly | - commands aren't copypasted blindly | ||
- | - process is stopped in case of errors | + | - that the process is stopped in case of errors |
+ | |||
+ | ===== Ubuntu 15.10 and later ===== | ||
- | ===== Ubuntu 14.04 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 | + | apt-get install make gcc libc6-dev wget libsqlite3-0 libsqlite3-dev |
</ | </ | ||
Line 32: | Line 33: | ||
< | < | ||
cd /usr/src | cd /usr/src | ||
- | wget http:// | + | wget http:// |
- | tar zxvf vnstat-1.13.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
</ | </ | ||
Compile and install the binaries | Compile and install the binaries | ||
< | < | ||
- | cd vnstat-1.13 | + | cd vnstat-2.10 |
- | make && make install | + | ./configure --prefix=/ |
</ | </ | ||
- | Install the service | + | Install the service |
+ | < | ||
+ | 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 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/ | cp -v examples/ | ||
initctl start vnstat | initctl start vnstat | ||
</ | </ | ||
+ | |||
+ | Verify that daemon process got started | ||
+ | < | ||
+ | pgrep -c vnstatd | ||
+ | </ | ||
+ | which should reply " |