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 [23.01.2015 20:50]
vergo
vnstat:install:in_ubuntu [22.10.2022 15:30] (current)
Line 3: Line 3:
 ===== Disclaimer ===== ===== Disclaimer =====
  
-These instructions assume that+These instructions assume
  
   - access to 'root' account or user with admin permissions   - access to 'root' account or user with admin permissions
Line 9: Line 9:
   - some basic Linux skills   - some basic Linux skills
   - commands aren't copypasted blindly   - commands aren't copypasted blindly
-  - process is stopped in case of errors+  - that the process is stopped in case of errors
  
-===== Ubuntu 9.10 - 15.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.13.tar.gz +wget http://humdi.net/vnstat/vnstat-2.10.tar.gz 
-tar zxvf vnstat-1.13.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.13 +cd vnstat-2.10 
-make && make install+./configure --prefix=/usr --sysconfdir=/etc && make && make install
 </code> </code>
  
-Install the service files 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/upstart/vnstat.conf /etc/init/
vnstat/install/in_ubuntu.1422039006.txt.gz · Last modified: 23.01.2015 20:50 by vergo