From 39a91b1b57227d7e008a8ac8e6db2528577b0004 Mon Sep 17 00:00:00 2001 From: Benjamin Sanders Date: Thu, 22 Oct 2026 11:57:42 -0400 Subject: initial commit --- .gitignore | 1 + README.md | 13 +++++++++++++ configure-ace-server.sh | 24 ++++++++++++++++++++++++ install-docker.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ start-ace.sh | 1 + 5 files changed, 83 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 configure-ace-server.sh create mode 100644 install-docker.sh create mode 100644 start-ace.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd5106f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_STORE diff --git a/README.md b/README.md new file mode 100644 index 0000000..98e5c71 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# ACE Scripts + +This is a collection of scripts that I plan to work on to help people who wish to run a private Asheron's Call server. + +It uses ACEmulator found at [https://github.com/ACEmulator/ACE](https://github.com/ACEmulator/ACE). + +The general order to run these scripts are as follows: + +* `install-docker.sh` +* `configure-ace-server.sh` +* `start-ace.sh` + +My hope is to make the second script able to take user input for their chosen MySQL passwords to go into the docker.env. \ No newline at end of file diff --git a/configure-ace-server.sh b/configure-ace-server.sh new file mode 100644 index 0000000..d1a6742 --- /dev/null +++ b/configure-ace-server.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# +# This script is intended to configure a basic private ACE (Asheron's Call) server +# Adapted from https://github.com/ACEmulator/ACE/wiki/ACE-Hosting-Docker +# +# Run this after installing Docker and Docker Compose on your system +# +# Ensure some needed packages are installed +sudo apt install unzip curl +# Download docker-compose.yml +curl -JO https://raw.githubusercontent.com/ACEmulator/ACE/refs/heads/master/docker-compose.yml + +# Download docker.env +# Make sure you change both mysql passwords in docker.env +curl -JO https://raw.githubusercontent.com/ACEmulator/ACE/refs/heads/master/docker.env + +# Download ac-updates.zip, you can replace with another version if you want +curl -JO "https://drive.anfg.net/public.php/dav/files/AYEETFpMBZ2Qf58/?accept=zip" + +# Create and cd into Dats directory +mkdir -p Dats && cd /Dats + +# Unzip ac-updates.zip to /Dats +unzip ac-updates.zip -d /Dats \ No newline at end of file diff --git a/install-docker.sh b/install-docker.sh new file mode 100644 index 0000000..5b0deef --- /dev/null +++ b/install-docker.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# +#This script is adapted from Vultr's documentation: https://docs.vultr.com/how-to-install-docker-on-ubuntu-26-04 +# +# Created on Ubuntu Version: "24.04.5 LTS (Noble Numbat)" +# Last Tested on Ubuntu Version: "24.04.5 LTS (Noble Numbat)" +# Install dependency package +sudo apt install apt-transport-https ca-certificates curl -y + +# Add the docker GPG key to the server's keyring +sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc + +# Add the Docker repo to the APT sources +echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + +# Update the APT package index to include the new repo +sudo apt update + +# Install the Docker engine and its plugins +sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y + +# Confirm the installed Docker version +docker --version + +# Enable Docker start automatically at boot time +sudo systemctl enable docker + +# Verify that Docker is active and running +# sudo systemctl status docker + +# Add User to the Docker Group +sudo usermod -aG docker $USER + +# Apply group membership changes +newgrp docker + +# Verify Docker commands work without sudo +docker ps + +# Install Docker Compose +sudo apt install docker-compose-plugin -y + +# Ensure Docker Compose is installed +docker compose version \ No newline at end of file diff --git a/start-ace.sh b/start-ace.sh new file mode 100644 index 0000000..e92332e --- /dev/null +++ b/start-ace.sh @@ -0,0 +1 @@ +docker compose up -d \ No newline at end of file -- cgit v1.2.3