Ubuntu install pritunl12/2/2023 Nov 07 16:47:09 xxx pritunl: server_session = self._get_server_session() Nov 06 11:53:32 xxx systemd: rvice: Failed with result 'exit-code'.Īny assistance would be greatly This also appears when running sudo systemctl status pritunl: Nov 07 16:47:09 xxx pritunl: File "/usr/lib/pritunl/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1883, in _start_session Nov 06 11:53:32 xxx systemd: rvice: Main process exited, code=exited, status=1/FAILURE Nov 06 11:53:32 xxx pritunl: ModuleNotFoundError: No module named 'pkg_resources' Nov 06 11:53:32 xxx pritunl: from pkg_resources import load_entry_point Nov 06 11:53:32 xxx pritunl: File "/usr/lib/pritunl/bin/pritunl", line 15, in Nov 06 11:53:32 xxx pritunl: Traceback (most recent call last): Nov 06 11:53:32 xxx pritunl: During handling of the above exception, another exception occurred: Nov 06 11:53:32 xxx pritunl: ModuleNotFoundError: No module named 'importlib_metadata' Nov 06 11:53:32 xxx pritunl: from importlib_metadata import distribution Nov 06 11:53:32 xxx pritunl: File "/usr/lib/pritunl/bin/pritunl", line 13, in Main PID: 510 (code=exited, status=1/FAILURE) Process: 510 ExecStart=/usr/lib/pritunl/bin/pritunl start (code=exited, status=1/FAILURE) Loaded: loaded (/etc/systemd/system/rvice enabled vendor preset: enabled)Īctive: failed (Result: exit-code) since Sun 11:53:32 PST 56s ago Now it fails to start with the below error after running systemctl status pritunl: Sudo tee /etc/apt//mongodb-org-4.2.I recently upgraded the packages on my Ubuntu 18.04 server. Sudo apt-get update & sudo apt-get -assume-yes install pritunl mongodb-org wireguardĮxport MONGO_PASSWORD= $( < /dev/urandom tr -dc _A-Za-z0-9 | head -c $) ' | tee | mongoĮcho -e '\nsecurity:\n authorization: enabled\n ' | sudo tee -a /etc/mongod.Pritunl is an open source management interface for OpenVPN. It allows for private networks, has native IPv6 support, and is relatively simple to use. That said, it also receives regular updates, and allows for full customization. In order to install Pritunl, you'll need: In addition to the features above, custom routes are supported, and key size can be selected for increased performance. A CentOS 7 system (both 32 and 64 bit systems are supported).A minimum of 512 MB of RAM, or the lowest plan.Root access (determine whether you are root by executing the following command: whoami). In order to install Pritunl, we'll need to add the necessary repositories to yum. Yum is essentially the package manager for CentOS and RHEL systems. It is similar to apt-get, so don't worry if this is your first time. We'll be using nano for this tutorial, but you may use vim, if you prefer. The first thing we'll be doing is adding the MongoDB repository: nano /etc//mongodb-org-3.4.repo Once you've entered the file, it should be blank. Paste the following in: Įxit and save by pressing CTRL and O simultaneously. Once you do, simply press the "enter" key. When the file loads in your text editor, paste the following: Ĭontinuing on, we need to install epel-release: yum -y install epel-release Now that we've added the repository for MongoDB (database software for Pritunl), we need to add the Pritunl repository. We now have all of the dependencies required. We'll need to disable SELinux before continuing: nano /etc/selinux/config # SELINUX= can take one of these three values: It should say the following once opened: # This file controls the state of SELinux on the system. # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # targeted - Targeted processes are protected, # SELINUXTYPE= can take one of three two values: # disabled - No SELinux policy is loaded. # minimum - Modification of targeted policy. Now, we'll run yum to install Pritunl: yum -y install pritunl mongodb-org We can now delete the temporary key: rm -f temp.tmp We've added all of the necessary packages and changed the necessary settings to install Pritunl.īefore we install, we need to add some keys (necessary for the repositories to function): gpg -keyserver hkp:// -recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A Only selected processes are protected.Ĭhange the SELINUX=enforcing line to SELINUX=disabled. Once yum finishes, we'll make it so Pritunl and MongoDB run on startup: systemctl start mongod pritunlĪfter installing Pritunl, run the following: pritunl setup-key INSTALL PRITUNL INSTALL
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |