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

Next revision
Previous revision
Next revision Both sides next revision
vnstat:install:in_ubuntu_with_image_output [23.01.2015 21:42]
vergo created
vnstat:install:in_ubuntu_with_image_output [24.12.2016 16:55]
vergo
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-1.16.tar.gz
 +tar zxvf vnstat-1.16.tar.gz
 +</code>
 +
 +Compile and install the binaries
 +<code>
 +cd vnstat-1.16
 +./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.13.tar.gz +wget http://humdi.net/vnstat/vnstat-1.16.tar.gz 
-tar zxvf vnstat-1.13.tar.gz+tar zxvf vnstat-1.16.tar.gz
 </code> </code>
  
 Compile and install the binaries Compile and install the binaries
 <code> <code>
-cd vnstat-1.13 +cd vnstat-1.16 
-make && make install+./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
  
Line 54: Line 99:
 which should reply "1". A reply of "0" indicates that the process has failed to start. which should reply "1". A reply of "0" indicates that the process has failed to start.
  
-===== Ubuntu 9.10 - 15.04 =====+===== Ubuntu 9.10 - 13.10 =====
  
 Open a terminal and gain root permissions Open a terminal and gain root permissions
Line 75: Line 120:
 <code> <code>
 cd /usr/src cd /usr/src
-wget http://humdi.net/vnstat/vnstat-1.13.tar.gz +wget http://humdi.net/vnstat/vnstat-1.16.tar.gz 
-tar zxvf vnstat-1.13.tar.gz+tar zxvf vnstat-1.16.tar.gz
 </code> </code>
  
 Compile and install the binaries Compile and install the binaries
 <code> <code>
-cd vnstat-1.13 +cd vnstat-1.16 
-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)