diff --git a/README.md b/README.md index 256064f..c34dc3c 100644 --- a/README.md +++ b/README.md @@ -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. ``` diff --git a/start-containers.sh b/start-containers.sh index 535f2cc..fcfda32 100755 --- a/start-containers.sh +++ b/start-containers.sh @@ -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.