Update startup script and README

This commit is contained in:
whitney 2025-01-28 15:59:57 -08:00
parent dbcd8a1bbe
commit d4e4e52b6f
2 changed files with 13 additions and 4 deletions

View File

@ -27,6 +27,9 @@ Olomana, the web server will be a significant upgrade over its predecessor. I am
2. Resolved issue with old key by following method 2 in this issue: https://github.com/NVIDIA/cuda-repo-management/issues/4
3. Install `nvidia-docker`, see https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker
Alternatively:
1. Install nvidia-smi either via nvidia instructions or `https://ubuntu.com/server/docs/nvidia-drivers-installation`.
### Software
#### OpenSSH
@ -60,6 +63,10 @@ PasswordAuthentication no
PubkeyAuthentication yes
```
##### Security
I kept getting distributed login attempts against PWS ssh. Fixed with Fail2Ban (`https://github.com/fail2ban/fail2ban`).
Refer to `https://www.linode.com/docs/guides/using-fail2ban-to-secure-your-server-a-tutorial/` for instructions to configure and then enable the service. (Imporant that you follow these to setup who is allowed).
#### Github CLI
Install gh CLI tool.
```

View File

@ -15,17 +15,19 @@ for folder in "$@"; do
fi
# Navigate to the folder.
cd "$folder" || { echo "Failed to enter folder '$folder'. Skipping..."; continue; }
cd "$folder" || {
echo "Failed to enter folder '$folder'. Skipping..."
continue
}
# Take actions based on existance of Dockerfile/docker-compose.yml.
if [ -f "Dockerfile" ]; then
echo "Dockerfile found in '$folder'. Running 'docker compose build'..."
docker compose build
elif [ -f "docker-compose.yml" ]; then
fi
if [ -f "docker-compose.yml" ]; then
echo "Dockerfile not found but docker-compose.yml exists in '$folder'. Running 'docker compose up -d'..."
docker compose up -d
else
echo "Neither Dockerfile nor docker-compose.yml found in '$folder'. Skipping..."
fi
# Return to the original directory.