How to install and use Trickle in Linux

  
                

In the Linux system, if you browse the webpage when you download something, it will become very card. At this time, you need to limit the download speed. Trickle is a good broadband control tool. Let me introduce you to the method of using Trickle for Linux installation.

What

Trickle yes?

Trickle is a bandwidth control provider that limits the bandwidth of programs such as Firefox, FTP, SSH, and other devices that use network bandwidth. Do you want your YouTube music experience to affect your ftp downloads? If you don't want to, read on this article to learn how to install and use trickle on your machine.

How to install Trickle on Linux

The trickle tool has some dependencies. You must install the "libevent library" before installing and using trickle, but this library is on most current Linux machines. It has been installed by default.

On Debian/Ubuntu/Linux Mint

Run apt-get install trickle on a Debian/Ubuntu/Mint machine to install it. Make sure the source list has been updated and then install the app you want.

$ sudo apt-get update

$ sudo apt-get install trickle

On RHEL/CentOS/Fedora

First you need to update your system. Then use the following command to install trickle.

# yum update

# yum install trickle

How does Trickle work?

Trickle controls and limits the upload/download speed of applications by controlling the amount of socket data read and write. It uses another version of the BSD Sockets API, but the difference is that trickle also manages socket calls.

Note that trickle uses dynamic linking and loading, so it is only useful for programs that use the “Glibc library. Since trickle can set the transmission delay of data on the socket, it can be used to limit the network bandwidth of an application.

What can Trickle do?

Trickle cannot be used to limit the bandwidth of applications that use the UDP protocol. It can only be used for TCP connections, but you should know that it is not valid for all TCP connections. If you have been reading this article carefully, you can guess what the reason is. Do you remember that trickle is only valid for using the Glibc library application?

Also, triggle can't work on executables that use static linking.

Determining if Trickle can run on a specific application

Since trickle can't limit the upload/download speed of each app, there should be a way to find out which trickle works.

The ldd tool can help us find out if a particular program uses the libc.so library. If the program uses this library, you can use trickle to limit its network bandwidth usage.

The ldd command is used to print the shared libraries required by each program. If you are a curious Linux Geek, you can use the man command to find out more about the ldd tool.

# man ldd

Filezilla is a program for transferring files using the ftp protocol. Can trickle be used to limit its download or upload speed? When you think about it, I use the following command to find out if trickle is available for filezilla.

# ldd filezilla

Copyright © Windows knowledge All Rights Reserved