This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "" | |
echo "-----------------------------" | |
echo " ╔╦╗╔═╗╔═╗╔╦╗╔═╗╔╦╗╔═╗╔╗╔" | |
echo " ║║║╠═╣╚═╗ ║ ║ ║ ║║║ ║║║║" | |
echo " ╩ ╩╩ ╩╚═╝ ╩ ╚═╝═╩╝╚═╝╝╚╝" | |
echo " Mastodon Installer for" | |
echo " CentOS 7.x at Sakura VPS" | |
echo "" | |
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Update and upgrade apt packages | |
hosts: rpi | |
user: pi | |
# Become sudoer | |
become: yes | |
tasks: | |
- name: apt update | |
apt: | |
# apt update | |
update_cache: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
semaphore: | |
restart: unless-stopped | |
ports: | |
- 3000:3000 | |
image: semaphoreui/semaphore:latest | |
environment: | |
SEMAPHORE_DB_DIALECT: bolt | |
SEMAPHORE_ADMIN_PASSWORD: <your admin password> | |
SEMAPHORE_ADMIN_NAME: <your admin display name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -------------------------------------------------------------------------------------------- | |
# Installs Ruby 2.6.8 using rbenv/ruby-build on the Raspberry Pi OS | |
# | |
# Run from the web: | |
# bash <(curl -sL https://gist.github.com/KEINOS/7101f542be23e5048198e2a27c3cfda8/raw/install_ruby_rpi.sh) | |
# -------------------------------------------------------------------------------------------- | |
# Welcome message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=IPFS-Cluster daemon | |
After=network.target ipfs | |
[Service] | |
User=myuser | |
WorkingDirectory=/home/myuser/ | |
ExecStart=/usr/local/bin/ipfs-cluster-service daemon --bootstrap /ip4/<IP of your bootstrap>/tcp/9096/p2p/<NodeID> | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Follow the steps in this document if you get "No such file or directory" or "not found" error by downloding from the pre-compiled official releses.
This document describes how to install and update IPFS (Kubo, fka go-ipfs
) on Alpine Linux and not on Docker container image.
We have found that it is more stable to build from source and update with the gup command.
- Tested on: Alpine 3.16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
ipfs: | |
container_name: ipfs | |
image: ipfs/kubo:latest | |
volumes: | |
# Staging data | |
- </absolute/path/to/somewhere/>:/export | |
# IPFS data | |
- </absolute/path/to/somewhere_else/>:/data/ipfs |
The cluster secret must be exactly 64 characters and contain only hexadecimal characters (
[0-9a-f]
). (from "cluster_config.go" | ipfs-cluster @ GitHub)
So, we just need to generate a 64 character in hex.
$ od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n'