In this tutorial, we will be installing Commento, a self-hosted, privacy-focused comment system, on Elementary OS Latest.
Before we begin, make sure you have the following:
First, we need to update our system and install the necessary dependencies:
sudo apt update
sudo apt upgrade
sudo apt install curl git build-essential
We will need to install Go Lang. Download the latest version of GoLang from the official website: https://golang.org/dl/. At the time of writing, the latest version is 1.16.3.
curl -O https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
sudo tar -xvf go1.16.3.linux-amd64.tar.gz
sudo mv go /usr/local
Next, set the environment variables for GoLang:
nano ~/.profile
Add the following lines to the bottom of the file:
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
Save and exit the file by pressing Ctrl + X
, then Y
, and then Enter
.
Source the changes:
source ~/.profile
Clone the Commento repository:
git clone https://gitlab.com/commento/commento.git
Change directory to the Commento repository:
cd commento
Build Commento:
make
Start Commento:
./commento
By default, Commento listens on http://localhost:8080
. If you need to access it from another device or outside your network, make sure to modify your firewall settings and bind Commento to your public IP or domain name.
Open your web browser and navigate to http://localhost:8080
. You should see the Commento configuration wizard. Follow the on-screen instructions to configure Commento according to your preferences.
Congratulations! You have successfully installed and configured Commento on Elementary OS Latest. You can now use Commento to add privacy-focused comments to your website or blog.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!