User Tools

Site Tools


vnstat:install:in_ubuntu_with_image_output

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
vnstat:install:in_ubuntu_with_image_output [22.12.2015 00:39]
127.0.0.1 external edit
vnstat:install:in_ubuntu_with_image_output [21.10.2018 20:35]
127.0.0.1 external edit
Line 10: Line 10:
   - commands aren't copypasted blindly   - commands aren't copypasted blindly
   - that the process is stopped in case of errors   - that the process is stopped in case of errors
 +
 +===== Ubuntu 15.10 and later =====
 +
 +
 +Open a terminal and gain root permissions
 +
 +<code>sudo -s -H</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
 +</code>
 +
 +Get the latest release and extract it
 +<code>
 +cd /usr/src
 +wget http://humdi.net/vnstat/vnstat-2.0.tar.gz
 +tar zxvf vnstat-2.0.tar.gz
 +</code>
 +
 +Compile and install the binaries
 +<code>
 +cd vnstat-2.0
 +./configure --prefix=/usr --sysconfdir=/etc && make && 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.
  
 ===== Ubuntu 14.04 - 15.04 ===== ===== Ubuntu 14.04 - 15.04 =====
Line 32: Line 77:
 <code> <code>
 cd /usr/src cd /usr/src
-wget http://humdi.net/vnstat/vnstat-1.15.tar.gz +wget http://humdi.net/vnstat/vnstat-2.0.tar.gz 
-tar zxvf vnstat-1.15.tar.gz+tar zxvf vnstat-2.0.tar.gz
 </code> </code>
  
 Compile and install the binaries Compile and install the binaries
 <code> <code>
-cd vnstat-1.15 +cd vnstat-2.0 
-make && make install+./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
  
Line 75: Line 120:
 <code> <code>
 cd /usr/src cd /usr/src
-wget http://humdi.net/vnstat/vnstat-1.15.tar.gz +wget http://humdi.net/vnstat/vnstat-2.0.tar.gz 
-tar zxvf vnstat-1.15.tar.gz+tar zxvf vnstat-2.0.tar.gz
 </code> </code>
  
 Compile and install the binaries Compile and install the binaries
 <code> <code>
-cd vnstat-1.15 +cd vnstat-2.0 
-make all && make install+./configure --prefix=/usr --sysconfdir=/etc && make all && make install
 </code> </code>
  
vnstat/install/in_ubuntu_with_image_output.txt · Last modified: 22.10.2022 15:30 (external edit)