Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

new raspi5: bootes (setup notes)

phil 9749a49f 4202d582

+35 -1
+35 -1
cozy-setup (move to another repo).md
··· 140 140 - raspi node_exporter 141 141 142 142 ```bash 143 - curl -LO https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-armv7.tar.g 143 + curl -LO https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-armv7.tar.gz 144 144 tar xzf node_exporter-1.8.2.linux-armv7.tar.gz 145 145 sudo cp node_exporter-1.8.2.linux-armv7/node_exporter /usr/local/bin/ 146 146 sudo useradd --no-create-home --shell /bin/false node_exporter ··· 300 300 ln -s /etc/nginx/sites-available/gateway-nginx-status /etc/nginx/sites-enabled/ 301 301 ``` 302 302 303 + 304 + ## bootes (pi5) 305 + 306 + - mount sd card, touch `ssh` file echo `echo "pi:$(echo raspberry | openssl passwd -6 -stdin)" > userconf.txt` 307 + - raspi-config: enable pcie 3, set hostname, enable ssh 308 + - put ssh key into `.ssh/authorized_keys` 309 + - put `PasswordAuthentication no` in `/etc/ssh/sshd_config` 310 + - `sudo apt update && sudo apt upgrade` 311 + - `sudo apt install xfsprogs` 312 + - `sudo mkfs.xfs -L c11n-kv /dev/nvme0n1` 313 + - `sudo mount /dev/nvme0n1 /mnt` 314 + - set up tailscale 315 + - `sudo tailscale up` 316 + - `git clone https://github.com/atcosm/links.git` 317 + - tailscale: disable bootes key expiry 318 + - rustup `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` 319 + - `cd links/constellation` 320 + - `sudo apt install libssl-dev` needed 321 + - `sudo apt install clang` needed for bindgen 322 + - (in tmux) `cargo build --release` 323 + - `mkdir ~/backup` 324 + - `sudo mount.cifs "//truenas.local/folks data" /home/pi/backup -o user=phil,uid=pi` 325 + - `sudo chown pi:pi /mnt/` 326 + - `RUST_BACKTRACE=full cargo run --bin rocks-restore-from-backup --release -- --from-backup-dir "/home/pi/backup/constellation-index" --to-data-dir /mnt/constellation-index` 327 + etc 328 + - follow above `- raspi node_exporter` 329 + - configure victoriametrics to scrape the new pi 330 + - `RUST_BACKTRACE=full cargo run --release -- --backend rocks --data /mnt/constellation-index/ --jetstream us-east-2 --backup /home/pi/backup/constellation-index --backup-interval 6 --max-old-backups 20` 331 + - add server to nginx gateway upstream: ` server 100.123.79.12:6789; # bootes` 332 + 333 + 334 + 335 + - todo: overlayfs? would need to figure out builds/updates still, also i guess logs are currently written to sd? (oof) 336 + - todo: cross-compile for raspi? 303 337 304 338 --- 305 339