How To Install niceshaper on Ubuntu 18.04

In this tutorial we learn how to install niceshaper on Ubuntu 18.04. niceshaper is Dynamic Traffic Shaper

Introduction

In this tutorial we learn how to install niceshaper on Ubuntu 18.04.

What is niceshaper

niceshaper is:

NiceShaper is the program developed for Linux router environment. It works in user space on top of standard Linux QOS implementation and iptables. By default, a proven HTB algorithm is used for the root, inner, and leaf classes, SFQ packets scheduling algorithm is the default queuing discipline (qdisc) contained within each of leaf classes, U32 and FW are used as the packets classifiers. NiceShaper provides dynamic traffic shaping approach which is more effective than traditional shaping with static rates. While constantly monitoring the traffic flowing through the router, in response to the changing load, dynamically adjusts the rate and ceil parameters values of enabled HTB classes to the values which enable the fullest possible utilization of Internet connection throughput.

NiceShaper protects each host which uses reasonable amount of shared throughput while watching over the configured optimal utilization of Internet connection. Therefore, at the asymmetric Internet connection, takes care of download when upload is close to stop up (and vice versa). NiceShaper doesn’t allow for creation of congestions, thus ensures the comfort of using interactive services as well.

There are three methods to install niceshaper on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install niceshaper Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install niceshaper using apt-get by running the following command:

sudo apt-get -y install niceshaper

Install niceshaper Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install niceshaper using apt by running the following command:

sudo apt -y install niceshaper

Install niceshaper Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install niceshaper using aptitude by running the following command:

sudo aptitude -y install niceshaper

How To Uninstall niceshaper on Ubuntu 18.04

To uninstall only the niceshaper package we can use the following command:

sudo apt-get remove niceshaper

Uninstall niceshaper And Its Dependencies

To uninstall niceshaper and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove niceshaper

Remove niceshaper Configurations and Data

To remove niceshaper configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge niceshaper

Remove niceshaper configuration, data, and all of its dependencies

We can use the following command to remove niceshaper configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge niceshaper

References

Summary

In this tutorial we learn how to install niceshaper package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.