Ubuntu 22.04 VPN install Pritunl

1 sudo tee /etc/apt/sources.list.d/pritunl.list << EOF
2 deb http://repo.pritunl.com/stable/apt jammy main
3 EOF
4 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
5 curl https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc | sudo apt-key add -
6 sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list << EOF
7 deb https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse
8 EOF
9 wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
10 sudo apt update
11 sudo apt --assume-yes upgrade
12 sudo apt -y install wireguard wireguard-tools
13 sudo apt -y install pritunl mongodb-org
14 sudo systemctl enable mongod pritunl
15 sudo systemctl start mongod pritunl
16 sudo systemctl status mongod pritunl
17 sudo pritunl setup-key
18 sudo pritunl default-password