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 [24.12.2016 16:55]
vergo
vnstat:install:in_ubuntu_with_image_output [21.10.2018 20:41]
vergo
Line 27: 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 33: Line 33:
 <code> <code>
 cd /usr/src cd /usr/src
-wget http://humdi.net/vnstat/vnstat-1.16.tar.gz +wget http://humdi.net/vnstat/vnstat-2.0.tar.gz 
-tar zxvf vnstat-1.16.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.16+cd vnstat-2.0
 ./configure --prefix=/usr --sysconfdir=/etc && make && make install ./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
Line 71: Line 71:
 <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 77: Line 77:
 <code> <code>
 cd /usr/src cd /usr/src
-wget http://humdi.net/vnstat/vnstat-1.16.tar.gz +wget http://humdi.net/vnstat/vnstat-2.0.tar.gz 
-tar zxvf vnstat-1.16.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.16+cd vnstat-2.0
 ./configure --prefix=/usr --sysconfdir=/etc && make && make install ./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
Line 99: 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 - 13.10 ===== 
- 
-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 libgd2-xpm libgd2-xpm-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 all && make install 
-</code> 
- 
-Install the service file and start the daemon 
-<code> 
-cp -v examples/upstart/vnstat.conf /etc/init/ 
-initctl 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. 
vnstat/install/in_ubuntu_with_image_output.txt · Last modified: 22.10.2022 15:30 (external edit)