Smart Traffic Meter is a program for measuring network usage and displaying the statistics in various formats. The program runs as a system service and is managed through a website interface. Watch brief video presentation video presentation.
If you are using Arch linux you can install Smart Traffic Meter from the AUR repository. Find the smarttrafficmeter package and install it.
If you want to compile and install the program by yourself, do the following:
- curl
- boost
- binutils
Make sure that you have installed development files for the above dependencies.
git clone --depth 1 https://github.com/rafalfr/smarttrafficmeter.git
If you use Code::Blocs IDE, you can open the SmartTrafficMeter.cbp project file and build the release or debug version.
If you use cmake build system, you can use it by executing the following commands:
cmake -H. -Bbuild
cmake --build build -- -j3
If you do not use Code::Blocks or cmake, you can build the program using the make tool.
release version:
make -f SmartTrafficMeter.cbp.mak linux_release
debug version:
make -f SmartTrafficMeter.cbp.mak linux_debug
Copy the compiled binary file smarttrafficmeter to /usr/bin/
The compiled smarttrafficmeter is found in either bin/linux/release or bin/linux/debug for the x86_64 processors and bin/arm/release or bin/arm/debug for the arm processors.
Now you can start the program by executing the following command: smarttrafficmeter --daemon
If you want the program to run at computer startup copy
/install/arch/smarttrafficmeter.service file to /usr/lib/systemd/system/
and then execute:
sudo systemctl enable smarttrafficmeter
sudo systemctl start smarttrafficmeter
To start/stop/enable/disable Smart Traffic Meter execute:
sudo systemctl start/stop/enable/disable smarttrafficmeter
By default, the web interface is available at http://127.0.0.1:7676
default database directory: /usr/share/smarttrafficmeter
default config directory: /etc/smarttrafficmeter
default log directory: /var/log/smarttrafficmeter