Installing dependencies (logviewer)
As this page involves editing security rules, please follow the instructions below. Failure to do so may expose your VPS to security vulnerabilities.
Amending subnet rules
Start by going to your instance's page on Oracle. Scroll down to Instance details and click on your Virtual cloud network.

Go to Subnets and click on your subnet.

Go to Security and click on your security list.

Click on Security rules and click on Add Ingress Rules.

Fill in the following:
Source Type: CIDR
Source CIDR: 0.0.0.0/0
IP Protocol: TCP
Source Port Range: Blank
Destination Port Range: 8000 (if you are planning on hosting logviewer on a different port, change this to the port of your choice.)
Description: Blank
Click on Add Ingress Rules to save your changes.

Now move over to your VPS in order to install additional dependencies.
Python 3.9
Logviewer needs Python 3.9 in order to run. Don't worry as pipenv automatically detects which Python version to use and this won't interfere with your Modmail installation.
Begin by adding the deadsnakes ppa:
Install Python 3.9 and its distutils:
Amending iptables rules.
iptables will prevent your public IP from being accessed. Solve this by running:
Save this change permanently by doing the following:
First of all, switch to the root account by running:
Save the iptables change by running:
Exit from the root account by running:
PM2
If you're not planning on using PM2, skip this section. PM2 is required for keeping your logviewer alive 24/7.
Start by installing node.js and npm:
Install pm2 by running:
Last updated
Was this helpful?