GOAD
  • Installation
    • Setup Ubuntu Server 22.04
    • Install VirtualBox & Vagrant
    • Install git and HomeLab Setup
    • Ansible Install & Playbook
    • Ansible Playbook
    • More Commands
    • Install VPN Server PrintUNL
  • Page 1
Powered by GitBook
On this page
  1. Installation

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:

sudo apt update && sudo apt install pritunl mongodb-org

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

sudo systemctl start pritunl mongod
sudo systemctl enable pritunl mongod

Confirm service status:

$ systemctl status pritunl mongod

● pritunl.service - Pritunl Daemon
     Loaded: loaded (/etc/systemd/system/pritunl.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2022-07-20 03:55:01 EAT; 12s ago
   Main PID: 30315 (pritunl)
      Tasks: 19 (limit: 9460)
     Memory: 338.5M
        CPU: 9.544s
     CGroup: /system.slice/pritunl.service
             ├─30315 /usr/lib/pritunl/bin/python /usr/lib/pritunl/bin/pritunl start
             └─30333 pritunl-web

Jul 20 03:55:01 jammy systemd[1]: Started Pritunl Daemon.

● mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2022-07-20 03:51:26 EAT; 3min 47s ago
       Docs: https://docs.mongodb.org/manual
   Main PID: 28701 (mongod)
     Memory: 63.2M
        CPU: 1.404s
     CGroup: /system.slice/mongod.service
             └─28701 /usr/bin/mongod --config /etc/mongod.conf

Jul 20 03:51:26 jammy systemd[1]: Started MongoDB Database Server.

sudo priunl setup-key

sudo pritunl default-password
PreviousMore CommandsNextPage 1

Last updated 1 year ago