User Tools

Site Tools


vnstat:install:in_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vnstat:install:in_debian [23.01.2015 21:05]
vergo created
vnstat:install:in_debian [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
  
-===== Debian 8 (Jessie) =====+===== Debian 8 (jessieand later =====
  
 Open a terminal and gain root permissions Open a terminal and gain root permissions
Line 26: Line 26:
 <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 32:
 <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/systemd/vnstat.service /etc/systemd/system/ cp -v examples/systemd/vnstat.service /etc/systemd/system/
Line 55: Line 55:
 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.
  
-===== Debian 7 (Wheezy) =====+===== Debian 7 (wheezyand most likely also older releases =====
  
 Open a terminal and gain root permissions Open a terminal and gain root permissions
Line 70: Line 70:
 <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 76: Line 76:
 <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/init.d/debian/vnstat /etc/init.d/ cp -v examples/init.d/debian/vnstat /etc/init.d/
vnstat/install/in_debian.1422039927.txt.gz · Last modified: 23.01.2015 21:05 by vergo