Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
opentrafficshaper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuriy
opentrafficshaper
Commits
204f37f3
Commit
204f37f3
authored
9 years ago
by
Yuriy
Browse files
Options
Downloads
Patches
Plain Diff
Instuction update. Try on Ubuntu 14.04 LTS
parent
4551c822
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
INSTALL
+59
-12
59 additions, 12 deletions
INSTALL
TODO
+2
-0
2 additions, 0 deletions
TODO
with
61 additions
and
12 deletions
INSTALL
+
59
−
12
View file @
204f37f3
Installing OpenTrafficShaper:
*
* Requirements for OpenTrafficShaper
*
- POE
Debian: libpoe-perl
Debian
-based
: libpoe-perl
- Config::IniFiles
Debian: libconfig-inifiles-perl
Debian
-based
: libconfig-inifiles-perl
- DateTime
Debian: libdatetime-perl
Debian
-based
: libdatetime-perl
- Digest::SHA
Debian: libdigest-sha-perl
Debian
-based
: libdigest-sha-perl
- JSON
Debian: libjson-perl
Debian
-based
: libjson-perl
- DBD::MySQL
Debian: libdbd-mysql-perl
Debian-based: libdbd-mysql-perl
- HTML::Entities module
Debian-based: libhtml-parser-perl
- Perl 5.6+
# 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
...
...
@@ -33,15 +44,51 @@ Debian: libdbd-mysql-perl
./update-git-modules
*
* System Changes
*
1. If you are running kernel 3.12, please make sure you add the following to /etc/modprobe.d/htb-stats.conf
# Enable HTB stats
- If you are running kernel 3.12+:
# sudo touch /etc/modprobe.d/htb-stats.conf
- Add this to /etc/modprobe.d/htb-stats.conf:
options sch_htb htb_rate_est=1
* 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
*
...
...
This diff is collapsed.
Click to expand it.
TODO
+
2
−
0
View file @
204f37f3
...
...
@@ -17,3 +17,5 @@
- destination IP address shaping
- accounts for using login/pass to access to service
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment