initial commit

This commit is contained in:
bogale 2026-09-22 20:01:27 +09:00
commit 7bb22bb4d4
6 changed files with 67 additions and 0 deletions

15
data/setup.sh Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/bash
set -euo pipefail
cd /etc/ssh
FILENAME="$(mktemp)"
(echo PasswordAuthentication no; cat sshd_config) > "$FILENAME"
mv "$FILENAME" sshd_config
fallocate -l 1GiB /var/swapfile
chmod 600 /var/swapfile
mkswap /var/swapfile
echo "/var/swapfile none swap defaults 0 0" >> /etc/fstab
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold"
reboot
exit