This shows you the differences between two versions of the page.
vnstat:install:in_debian_with_image_output [10.07.2019 17:57] vergo |
vnstat:install:in_debian_with_image_output [18.08.2019 15:31] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing vnStat with image output in Debian ====== | ||
- | ===== 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 | ||
- | |||
- | ===== Debian 8 (jessie) 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 libsqlite3-0 libsqlite3-dev | ||
- | </ | ||
- | |||
- | Get the latest release and extract it | ||
- | < | ||
- | cd /usr/src | ||
- | wget http:// | ||
- | tar zxvf vnstat-2.3.tar.gz | ||
- | </ | ||
- | |||
- | Compile and install the binaries | ||
- | < | ||
- | cd vnstat-2.3 | ||
- | ./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 " | ||
- | |||
- | ===== Debian 7 (wheezy) and most likely also older releases ===== | ||
- | |||
- | 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 libgd2-xpm libgd2-xpm-dev libsqlite3-0 libsqlite3-dev | ||
- | </ | ||
- | |||
- | Get the latest release and extract it | ||
- | < | ||
- | cd /usr/src | ||
- | wget http:// | ||
- | tar zxvf vnstat-2.3.tar.gz | ||
- | </ | ||
- | |||
- | Compile and install the binaries | ||
- | < | ||
- | cd vnstat-2.3 | ||
- | ./configure --prefix=/ | ||
- | </ | ||
- | |||
- | Install the service file and start the daemon | ||
- | < | ||
- | cp -v examples/ | ||
- | update-rc.d vnstat defaults | ||
- | / | ||
- | </ | ||
- | |||
- | Verify that daemon process got started | ||
- | < | ||
- | pgrep -c vnstatd | ||
- | </ | ||
- | which should reply " |