User Tools

Site Tools


vnstat:install:in_debian_with_image_output

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 'root' account or user with admin permissions 
-  - 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 
- 
-<code>su -</code> 
- 
-Verify that root has been gained 
- 
-<code>whoami</code> 
- 
-which should reply "root". 
- 
-Install needed development packages 
-<code> 
-apt-get update 
-apt-get install make gcc libc6-dev wget libgd3 libgd-dev libsqlite3-0 libsqlite3-dev 
-</code> 
- 
-Get the latest release and extract it 
-<code> 
-cd /usr/src 
-wget http://humdi.net/vnstat/vnstat-2.3.tar.gz 
-tar zxvf vnstat-2.3.tar.gz 
-</code> 
- 
-Compile and install the binaries 
-<code> 
-cd vnstat-2.3 
-./configure --prefix=/usr --sysconfdir=/etc && make all && make install 
-</code> 
- 
-Install the service file and start the daemon 
-<code> 
-cp -v examples/systemd/vnstat.service /etc/systemd/system/ 
-systemctl enable vnstat 
-systemctl start vnstat 
-</code> 
- 
-Verify that daemon process got started 
-<code> 
-pgrep -c vnstatd 
-</code> 
-which should reply "1". A reply of "0" indicates that the process has failed to start. 
- 
-===== Debian 7 (wheezy) and most likely also older releases ===== 
- 
-Open a terminal and gain root permissions 
- 
-<code>su -</code> 
- 
-Verify that root has been gained 
- 
-<code>whoami</code> 
- 
-which should reply "root". 
- 
-Install needed development packages 
-<code> 
-apt-get update 
-apt-get install make gcc libc6-dev wget libgd2-xpm libgd2-xpm-dev libsqlite3-0 libsqlite3-dev 
-</code> 
- 
-Get the latest release and extract it 
-<code> 
-cd /usr/src 
-wget http://humdi.net/vnstat/vnstat-2.3.tar.gz 
-tar zxvf vnstat-2.3.tar.gz 
-</code> 
- 
-Compile and install the binaries 
-<code> 
-cd vnstat-2.3 
-./configure --prefix=/usr --sysconfdir=/etc && make all && make install 
-</code> 
- 
-Install the service file and start the daemon 
-<code> 
-cp -v examples/init.d/debian/vnstat /etc/init.d/ 
-update-rc.d vnstat defaults 
-/etc/init.d/vnstat start 
-</code> 
- 
-Verify that daemon process got started 
-<code> 
-pgrep -c vnstatd 
-</code> 
-which should reply "1". A reply of "0" indicates that the process has failed to start. 
vnstat/install/in_debian_with_image_output.txt ยท Last modified: 22.10.2022 15:30 (external edit)