Installing Pleroma on a Debian Stretch (9) virtual machine at Luna Node
I installed my own instance of Pleroma today using an inexpensive VM from Luna Node. (referral link)
I created the least expensive instance for this, an
m.1s instance. Previously I had tried to install Mastodon on this small instance but it did not have enough memory to compile. Pleroma is lighter and has no problem.
m.1s $0.0486 hourly ($3.50 monthly) 1024 MB RAM 1 vCPU 0.2 cpu-points 15 GB SSD storage 1000 GB bandwidth
The install instructions at this link are for installing Pleroma on a Debian Stretch (9) box. The instructions were OK, but missing a few things.
usermod command to add the pleroma user to the sudo group failed with this weird nscd error:
# usermod -aG sudo pleroma sent invalidate(passwd) request, exiting sent invalidate(group) request, exiting sent invalidate(passwd) request, exiting sent invalidate(group) request, exiting
Removing nscd and re-running the
usermod command got me by that;
# apt-get remove unscd
It's not explicitly stated in the instructions, but your new Pleroma instance will run on port 4000 by default so you can register your first account at this url:
You can then make yourself and admin using the command below:
$ MIX_ENV=prod mix pleroma.user set $YOURUSERNAME --admin
Next, the certbot instructions are wrong. They say to use the
/var/lib/letsencrypt directory but that is not the directory that is configured as the webroot in the default nginx install. The webroot is
/var/www/html. You can either change the
/etc/nginx/sites-enabled/default file to reflect
/var/lib/letsencrypt directory, or you can modify the certbot command to point to the
/var/www/html directory. I did the latter:
# mkdir -p /var/www/html/.well-known # certbot certonly --email $YOUREMAILADDRESS --webroot -w /var/www/html -d $YOURDOMAIN
Finally, I need to figure out the hardening guide. It does not say where in the configuration file to put these hardening commands.
I'll add more to this if I find other things as I go along.