User Tools

Site Tools


vnstat:install:in_ubuntu

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 [24.12.2016 16:47]
vergo
vnstat:install:in_ubuntu [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 9.10 - 17.04 =====+===== 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 libsqlite3-0 libsqlite3-dev 
 +</code> 
 + 
 +Get the latest release and extract it 
 +<code> 
 +cd /usr/src 
 +wget http://humdi.net/vnstat/vnstat-2.10.tar.gz 
 +tar zxvf vnstat-2.10.tar.gz 
 +</code> 
 + 
 +Compile and install the binaries 
 +<code> 
 +cd vnstat-2.10 
 +./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 9.10 - 14.10 =====
  
 Open a terminal and gain root permissions Open a terminal and gain root permissions
Line 26: Line 71:
 <code> <code>
 apt-get update apt-get update
-apt-get install make gcc libc6-dev wget+apt-get install make gcc libc6-dev wget libsqlite3-0 libsqlite3-dev
 </code> </code>
  
Line 32: 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.10.tar.gz 
-tar zxvf vnstat-1.16.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.16+cd vnstat-2.10
 ./configure --prefix=/usr --sysconfdir=/etc && make && make install ./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
vnstat/install/in_ubuntu.1482590839.txt.gz · Last modified: 24.12.2016 16:47 by vergo