Install VPN Server PrintUNL

Option 1 – Install Pritunl VPN Server Using APT

These option entails several steps as shown below:

A. Add Pritunl and MongoDB repositories and public keys

Now add the Pritunl repository on Ubuntu 22.04.

sudo tee /etc/apt/sources.list.d/pritunl.list << EOF
deb https://repo.pritunl.com/stable/apt jammy main
EOF

Add GPG keys for the repository:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A

Before we add the MongoDB repositories, we need to force libssl1.1 installation from the Ubuntu 21.10 repository.

echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt update
sudo apt install libssl1.1

Add the MongoDB repositories on Ubuntu 22.04.

wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

B. Install Pritunl and MongoDB on Ubuntu 22.04

Using the added repositories above, we can easily install Pritunl and MongoDB on Ubuntu 22.04. The command to achieve this is as shown below:

Once the installation is complete, start and enable the Pritunl and MongoDB services:

Confirm service status:

Last updated