Methods of payment Abuse

How to install Ngrok

15.12.2022, 11:23

You already know what Ngrok is, now it's time to figure out how it is installed. Looking ahead, let's say that this is done very simply. It is enough to follow the simple instructions that we will give in this article.

Installing Ngrok in Ubuntu

To perform the Ngrok installation. You need to perform a number of simple actions - execute the commands that we will give in this article. Are you using Ubuntu or another distribution with the snap package manager installed? Use it to install Ngrok.

The command hb execution is as follows:

$ snap install ngrok

In Ubuntu and other Debian-based solutions, installation is done from the repository. But to use such a solution, first of all you need to add keys.

They are added using the following command:

$ curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null

Now we are adding the repository itself:

$ echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list

Next, we need to get information from the newly added repositories, for this we need to update the packages:

$ sudo apt update

Ngrok Installation:

$ sudo apt install ngrok

If you use any other repository, download the binaries. Open this page, select Linux and click Download.

After that, all you have to do is unpack the archive. You will find the Ngrok file, move it to the /usr/local/bin directory.

This can be done with the command:

$ sudo tar xvzf ~/Downloads/ngrok-v3-stable-linux-amd64.tgz -C /usr/local/bin

Check the version of the utility to make sure that it is installed correctly and functioning:

$ ngrok -v

That's all. Installing Ngrok in Ubuntu is simple.