1
0
Fork 0
Docs and scripts for use with Mastodon. https://spacecruft.org/deepcrayon/mastodon
Go to file
Jeff Moe 982cb5d0f3 Ignore temp files 2023-01-09 09:27:37 -07:00
.gitignore Ignore temp files 2023-01-09 09:27:37 -07:00
LICENSE-CC Creative Commons CC by SA 4.0 International 2023-01-08 19:26:19 -07:00
LICENSE-GPL GPLv3 2023-01-08 19:25:39 -07:00
README.md Oliphant handy 2023-01-08 20:38:37 -07:00

README.md

Mastodon

Mastodon is software that allows people to write text and upload media to a distributed, self-governed network of servers.

Share your wisdom here:

jebba.moe

I run my own personal Mastodon server since 2023:

This present repo is for small notes and scripts for maintaining my instance.

https://spacecruft.org/deepcrayon/mastodon

Le Spam

There are some on the Internet that like to spam and attack Mastodon nodes. Often, this is related to political attacks, but it will run the gamut of the weirdness on Earth.

Groups of moderators are created, some working together, to allow them to shape their server as they like.

Rapidblock

Rapidblock is software that allows Mastodon nodes to block unwanted servers more easily. It helps put the community back in charge of their own server. Or that's at least the goal, as far as I can tell. I am not the author of it. It is also in very early development, but is mature enough to try out, if you're familiar with server administration.

If you are running a .deb APT based distro, it may work for you to install it thusly (if you don't mind running shell scripts unseen--insecure...).

curl -s https://apt.rapidblock.org/install.sh | sudo bash

If you want to go right into the repo and grab a .deb, they are here:

Note, there are packages for both amd64 (x86) and arm64. Those builds don't install on Debian Bullseye (11/stable) though, because they use zstd compression, which Bullseye APT dpkg-deb doesn't support.

If you want to build it by hand, here's a q uick & dirty build for Debian Bullseye (11/stable).

To build, a newer go compiler is needed than ships in the main Bullseye repo. It is in the Bullseye backports repo.

Edit /etc/apt/sources.list and make sure it has a line like this:

deb http://mirrors.kernel.org/debian bullseye-backports main
sudo apt update
sudo apt install -t bullseye-backports golang-go
git clone https://github.com/rapidblock-org/rapidblock
cd rapidblock
go install
go build

That should build a binary rapidblock. To confirm it works, run:

$ ./rapidblock --help
unknown option: --help
Usage: rapidblock [-tV] [-A value] [-c value] [-d value] [-D value] [-k value] [-m value] [-p value] [-s value] [-S value] [-x value]
 -A, --account-data-file=value
                   [prepare-data] path to the groups.io cookies and database
                   column mappings
 -c, --csv-file=value
                   [export-csv] path to the CSV file to create
 -d, --data-file=value
                   [prepare-data, export-csv,sign, verify, apply] path to the
                   JSON file to create, export from, sign, verify, or apply
 -D, --database-url=value
                   [apply] PostgreSQL database URL to connect to
 -k, --private-key-file=value
                   [generate-key, sign] path to the base-64 Ed25519 private key
                   file to sign with
 -m, --mode=value  select mode of operation: prepare-data,
                   export-csv,generate-key, sign, verify, apply
 -p, --public-key-file=value
                   [generate-key, sign, verify] path to the base-64 Ed25519
                   public key file to verify with
 -s, --signature-file=value
                   [sign, verify] path to the base-64 Ed25519 signature file to
                   create or verify
 -S, --source-id=value
                   [prepare-data] ID of the Google Sheet spreadsheet to pull
                   data from
 -t, --text        [sign, verify] perform newline canonicalization, under the
                   assumption that --data-file is text
 -V, --version     show version information and exit
 -x, --software=value
                   [apply] select which server software is in use:
                   mastodon-4.x, mastodon-3.x

Oliphant

Oliphant also has a block list. Overview:

Raw block list:

Another nice resource from Oliphant:

Disclaimer

I have only been running a Mastodon server for a week, and am just figuring out how it works as I go.

Copyright

Unofficial project, not part of official Mastodon software or website. Upstream sources under their respective copyrights.

License: CC By SA 4.0 International and/or GPLv3+ at your discretion.

Copyright © 2022, Jeff Moe.