admin-scripts/pi0/justfile

43 lines
1.5 KiB
Makefile
Raw Normal View History

2024-06-20 17:12:41 +02:00
## 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:
2024-06-20 19:46:40 +02:00
sudo apt install -y rclone
sudo cp -v "${PWD}/systemd/system/mastodon"* /etc/systemd/system/
2024-06-20 17:12:41 +02:00
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
2024-06-20 19:46:40 +02:00
sudo systemctl enable --now mastodon-to-minio.timer
2024-06-20 17:12:41 +02:00
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