Check out my first novel, midnight's simulacra!

Mastodon

From dankwiki
Revision as of 00:39, 10 January 2021 by Dank (talk | contribs) (Created page with "Setting up a Masotdon server on Debian is somewhat annoying, due to the node and (to a lesser extent) ruby-based implementation. Most guides involve downloading and instal...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Setting up a Masotdon server on Debian is somewhat annoying, due to the node and (to a lesser extent) ruby-based implementation. Most guides involve downloading and installing a large number of sources outside of APT. I hoped to avoid that.

My running install uses the 3.2 branch of Mastodon atop Debian Unstable.

System work

  • Via APT, install nodejs, rake, rbenv, ruby-bundler, postgresql-contrib, and cmdtest ("yarn").
  • Prep the database:
    • echo "CREATE USER mastodon CREATEDB;" | sudo -u postgres psql
  • Create mastodon user (salt to taste):
    • sudo adduser --disabled-login --gecos "Mastodon service account" mastodon

User work

Remaining work will be done as the mastodon user, in its home directory.