This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
vnstat:install:in_ubuntu_with_image_output [24.12.2016 16:45] 127.0.0.1 external edit |
vnstat:install:in_ubuntu_with_image_output [24.12.2016 16:55] vergo |
||
---|---|---|---|
Line 11: | Line 11: | ||
- that the process is stopped in case of errors | - that the process is stopped in case of errors | ||
- | ===== Ubuntu 14.04 - 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 libgd3 libgd-dev | ||
+ | </ | ||
+ | |||
+ | 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 14.04 - 15.04 ===== | ||
Open a terminal and gain root permissions | Open a terminal and gain root permissions |