commit 98832799210c9f0974707af4f4663bbbd8f321a1 Author: Wheelz Date: Sat Mar 28 01:27:05 2026 -0500 Add gamenodesetup diff --git a/gamenodesetup b/gamenodesetup new file mode 100644 index 0000000..391983a --- /dev/null +++ b/gamenodesetup @@ -0,0 +1,97 @@ +#!/bin/bash + +# Exit on any error +set -e + +# Check if running as root +if [ "$EUID" -ne 0 ]; then + echo "Please run this script as root or using sudo." + exit 1 +fi + +echo "Updating package list..." +apt update + +echo "Installing Cockpit..." +apt install -y cockpit + +echo "Enabling and starting Cockpit service..." +systemctl enable --now cockpit.socket + +echo "Cockpit installed and started." +echo "You can access it at: https://localhost:9090"#!/bin/bash + +# Exit on any error +set -e + +# Check if running as root +if [ "$EUID" -ne 0 ]; then + echo "Please run this script as root or using sudo." + exit 1 +fi + +echo "Updating package list..." +apt update + +echo "Installing Cockpit..." +apt install -y cockpit + +echo "Enabling and starting Cockpit service..." +systemctl enable --now cockpit.socket + +echo "Cockpit installed and started." + +sudo apt update +sudo apt install -y ca-certificates curl gnupg lsb-release +sudo install -m 0755 -d /etc/apt/keyrings +curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg \ + | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg +sudo chmod a+r /etc/apt/keyrings/docker.gpg +echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \ + https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ + $(lsb_release -cs) stable" \ +| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null +sudo apt update +sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin +sudo systemctl enable --now docker + +#Add user to docker group to use docker without sudo +#sudo usermod -aG docker $USER + +#User this to confirm the install was successful +#docker --version +#docker compose version + +sudo apt install unattended-upgrades +sudo dpkg-reconfigure unattended-upgrades + +# --- CONFIG --- +SERVER_IP="192.168.20.5" +REMOTE_PATH="/mnt/HomeStorage02/DockerSwarmStorage" +LOCAL_MOUNT="/mnt/DockerStorage" +FSTAB_ENTRY="${SERVER_IP}:${REMOTE_PATH} ${LOCAL_MOUNT} nfs rw,vers=4,sync 0 0" + +echo "Updating system..." +sudo apt update -y + +echo "Installing nfs-common..." +sudo apt install -y nfs-common + +echo "Creating local mount point at ${LOCAL_MOUNT}..." +sudo mkdir -p "${LOCAL_MOUNT}" + +echo "Updating fstab..." +echo "${FSTAB_ENTRY}" >> /etc/fstab + +echo "Testing fstab mounts..." +sudo mount -a + +echo "Done!" +echo "NFS share should now be mounted at ${LOCAL_MOUNT}" +echo "Docker is installed user docker -v to check" +echo "unattended logs can be found at /var/log/unattended-upgrades/" +echo "You can access Cockpit at: https://localhost:9090" + +mkdir pterodactyl +mkdir /pterodactyl/wings