Newer
Older
Debian-based: libdbd-mysql-perl
- HTML::Entities module
Debian-based: libhtml-parser-perl
# sudo apt-get install libpoe-perl libconfig-inifiles-perl libdatetime-perl libdigest-sha-perl libjson-perl libdbd-mysql-perl perl
*
* Installing OpenTrafficShaper
*
# sudo apt-get install git
# git clone https://gitlab.devlabs.linuxassist.net/opentrafficshaper/opentrafficshaper.git
# cd opentrafficshaper
*
* Pull in dependency code
*
./update-git-modules
- If you are running kernel 3.12+:
# sudo touch /etc/modprobe.d/htb-stats.conf
- Add this to /etc/modprobe.d/htb-stats.conf:
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
* Please reboot your PC to apply this changes before starting module!
- Create directories:
# sudo mkdir /var/log/opentrafficshaper
# sudo mkdir /var/run/opentrafficshaper
# sudo mkdir /var/lib/opentrafficshaper
- Create statement file:
# sudo touch /var/lib/opentrafficshaper/configmanager.state
*
* Enable statistics
*
- Install mysql-server:
# sudo apt-get install mysql-server
- Connect to MySQL:
# mysql -u root -p
- Create new user:
> CREATE USER 'ots'@'localhost' IDENTIFIED BY 'Pas$W00rd';
- Create database:
> CREATE DATABASE otsdb;
- Grand all privilages to database:
> GRANT ALL PRIVILEGES ON otsdb.* TO 'ots'@'localhost';
- Close connection:
> quit
- Restore MySQL schema
# mysql -u ots -p otsdb < database/stats.sql
*
* Next steps
*
1. Edit the config file
2. You can now run opentrafficshaper by using ./opentrafficshaperd --debug --config=opentrafficshaper.conf --fg
3. Browse to it using http://SERVER:8088/
For more configuration information see this link:
http://wiki.opentrafficshaper.org/documentation