You already know what Ngrok is, now it's time to figure out how to install it. Looking ahead, it's very easy to do. It is enough to follow the simple instructions that we will give in this article.
To perform the installation of Ngrok. You need to follow a number of simple steps - execute the commands that we will give in this article. Working in Ubuntu or any other solution that has snap package manager installed? Use it to install Ngrok.
The command to execute is as follows:
$ snap install ngrok
In Ubuntu and other solutions that are based on Debian, the installation is done from the repository. But to use this solution, you first need to add keys.
These 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 add 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 are using any other repository, download the binaries. Open this page, select Linux and click Download.
After that, all you have to do is unzip the archive. You will find the Ngrok file, send 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 it is installed correctly and functioning:
$ ngrok -v
That's it. Installing Ngrok in Ubuntu is easy.