#!/bin/bash # Update the package repositories pacman -Syu --noconfirm # Force the locale echo "LC_ALL=en_GB.UTF-8" >> /etc/default/locale locale-gen en_US.UTF-8 # Install necessary packages pacman -S --needed --noconfirm sudo wget tmux htop vim docker docker-compose # Set the hostname echo "scarif.space" >> /etc/hostname # Add me as a user and git for SSH passthrough to gitea (change passwords after finishing) useradd -m -psecret chris useradd -m -psecret -u1200 git # Make files necessary for SSH passthrough (https://docs.gitea.io/en-us/install-with-docker/#ssh-container-passthrough) #mkdir -p /var/lib/gitea mkdir -p /app/gitea tee /app/gitea/gitea <> /home/git/.ssh/authorized_keys # Start the docker service and build docker compose systemctl enable docker --now docker-compose -f "/opt/scarif/docker-compose.yml" --env-file "/opt/scarif/.env" up -d