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
vnstat:install:in_ubuntu_with_image_output [28.04.2015 14:06]
127.0.0.1 external edit
vnstat:install:in_ubuntu_with_image_output [22.10.2022 15:30] (current)
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.04 =====+===== Ubuntu 15.10 and later ===== 
  
 Open a terminal and gain root permissions Open a terminal and gain root permissions
Line 26: Line 27:
 <code> <code>
 apt-get update apt-get update
-apt-get install make gcc libc6-dev wget libgd3 libgd-dev+apt-get install make gcc libc6-dev wget libgd3 libgd-dev libsqlite3-0 libsqlite3-dev
 </code> </code>
  
Line 32: Line 33:
 <code> <code>
 cd /usr/src cd /usr/src
-wget http://humdi.net/vnstat/vnstat-1.14.tar.gz +wget http://humdi.net/vnstat/vnstat-2.10.tar.gz 
-tar zxvf vnstat-1.14.tar.gz+tar zxvf vnstat-2.10.tar.gz
 </code> </code>
  
 Compile and install the binaries Compile and install the binaries
 <code> <code>
-cd vnstat-1.14 +cd vnstat-2.10 
-make && make install+./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
  
 Install the service file and start the daemon Install the service file and start the daemon
 <code> <code>
-cp -v examples/upstart/vnstat.conf /etc/init+cp -v examples/systemd/vnstat.service /etc/systemd/system/ 
-initctl start vnstat+systemctl enable vnstat 
 +systemctl start vnstat
 </code> </code>
  
Line 54: Line 56:
 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 14.04 - 15.04 =====
  
 Open a terminal and gain root permissions Open a terminal and gain root permissions
Line 69: Line 71:
 <code> <code>
 apt-get update apt-get update
-apt-get install make gcc libc6-dev wget libgd2-xpm libgd2-xpm-dev+apt-get install make gcc libc6-dev wget libgd3 libgd-dev libsqlite3-0 libsqlite3-dev
 </code> </code>
  
Line 75: Line 77:
 <code> <code>
 cd /usr/src cd /usr/src
-wget http://humdi.net/vnstat/vnstat-1.14.tar.gz +wget http://humdi.net/vnstat/vnstat-2.10.tar.gz 
-tar zxvf vnstat-1.14.tar.gz+tar zxvf vnstat-2.10.tar.gz
 </code> </code>
  
 Compile and install the binaries Compile and install the binaries
 <code> <code>
-cd vnstat-1.14 +cd vnstat-2.10 
-make all && make install+./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
  
Line 96: Line 98:
 </code> </code>
 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.
 +
vnstat/install/in_ubuntu_with_image_output.1430219217.txt.gz · Last modified: 16.05.2015 01:34 (external edit)