Installing dependencies

Before using modmail you have to install some prerequisites.

On your computer

Putty

Windows

Install PuTTY on Windows directly from here.

Linux

Enable the universe repository using:

sudo add-apt-repository universe

Install PuTTY by using:

sudo apt install -y putty

You can open PuTTY by running putty on the terminal or you can manually search for the application.

Mac

Install XCode developer tools from the app store here and run these two commands.

xcodebuild -license

Install XQuartz from here.

Install PuTTY by running this command

Run putty by using putty

Termius

Windows and Mac

Install Termius directly from here for Windows or here for Mac.

Linux

Install Termius by running the command below otherwise you can install the .deb package from here if you are on a debian-based distro (Ubuntu, Debian, Linux Mint, etc).

If you don't have Snap installed, you can find instructions on how to download it here.

On your VPS

Upgrading the system

It is necessary to update the system before proceeding.

Start by updating the repositories:

Then upgrade all packages:

If "Pending kernel upgrade" or "Daemons using outdated libraries" appears, hit Enter.

Once apt has finished upgrading, reboot the VPS:

Wait ~1 minute for the reboot to finish then reconnect to your VPS.

Sometimes apt doesn't get upgraded. To avoid this, upgrade the system once more.

Then:

Pip and pipenv

Install pip by running:

Install pipenv by running:

PM2

Start by installing node.js and npm:

npm depends on a considerable amount of packages. Expect this to take some time.

Install pm2 by running:

libcairosvg

Install libcairosvg by running:

Last updated

Was this helpful?