## Justfile (https://github.com/casey/justfile) ## ## pi0 - Orange Pi 5+ ## ## Services: ## - gmcapsuled ## - Mastodon ## - Tailscale ## - The Lounge IRC debian_codename := `grep "VERSION_CODENAME" /etc/os-release | awk -F= '{print $2}'` gmcapsuled: pipx install gmcapsule mkdir -p ~/.config/systemd/user cp -v "${PWD}/systemd/user/gmcapsuled.service" ~/.config/systemd/user/ cp -v "${PWD}/gmcapsulerc" ~/.gmcapsulerc mastodon: sudo apt install -y rclone sudo cp -v "${PWD}/systemd/system/mastodon"* /etc/systemd/system/ sudo cp -v "${PWD}/bin/mastodon-db-backup" /usr/local/bin sudo chown -R root:root /usr/local/bin/mastodon-db-backup sudo chmod 755 /usr/local/bin/mastodon-db-backup sudo systemctl enable --now mastodon-db-backup.timer sudo systemctl enable --now mastodon-to-minio.timer thelounge: curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest \ | grep "browser_download_url.*deb" \ | cut -d : -f 2,3 \ | tr -d \" \ | wget -qi - sudo apt install -y ./thelounge*.deb tailscale: curl -fsSL https://pkgs.tailscale.com/stable/debian/{{ debian_codename }}.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null curl -fsSL https://pkgs.tailscale.com/stable/debian/{{ debian_codename }}.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list sudo apt update sudo apt install -y tailscale sudo systemctl enable --now tailscaled sudo tailscale up