Installing dependencies
Before using modmail you have to install some prerequisites.
On your computer
Putty
Windows
Install PuTTY on Windows directly from here.
Linux
It is not recommended to use PuTTY on Linux.
Enable the universe repository using:
sudo add-apt-repository universeInstall PuTTY by using:
sudo apt install -y puttyYou can open PuTTY by running putty on the terminal or you can manually search for the application.
Mac
It is not recommended to use PuTTY on MacOS.
Install XCode developer tools from the app store here and run these two commands.
xcodebuild -licenseInstall 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).
On your VPS
If at any time during installing dependencies the "(package name) has no installation candidate/(package name) is not available" error appears, your apt version is outdated as explained below. Run "sudo apt update && sudo apt upgrade" to fix this issue.
Upgrading the system
It is necessary to update the system before proceeding.
Start by updating the repositories:
Then upgrade all packages:
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
If you're not planning on using PM2, skip this section. PM2 is required for keeping your bot alive 24/7.
Start by installing node.js and npm:
Install pm2 by running:
libcairosvg
Install libcairosvg by running:
Last updated
Was this helpful?