dst-admin Documentation

repository·master·Indexed 20 days ago

https://github.com/qinming99/dst-admin

A Java-based web management system for Don't Starve Together servers. It provides one-click server control for Surface and Cave services, real-time resource monitoring, game archive and save management, and player administration including blacklists and remote console support. Supports deployment via Docker (amd64) or manual JAR installation on Ubuntu with JDK 1.8.

Tokens
3.1K
Snippets
14
Records
18
Agent score
69%

What's inside dst-admin

  1. Overview of dst-admin features

    master

    dst-admin is a management backend for the Steam version of Don't Starve Together. It provides a simplified way to deploy and manage servers with the following capabilities:

    • Server Control: One-click start/stop for Surface and Cave services.
    • Monitoring & Logs: Real-time server resource monitoring and viewing of game running logs.
    • Configuration: Manage game room settings, world settings, and MOD configurations.
    • Save Management: Manage saves, perform restores, and set up automatic backups. Supports uploading local saves.
    • Automation: Automatic game updates during unmanned periods.
    • Player Management: Set additional administrators or player blacklists. Remote console support for kicking players, rolling back, or resetting the world.
  2. System requirements and default credentials for dst-admin

    master

    Before deploying dst-admin, ensure your environment meets these requirements:

    • OS: Ubuntu (16.04 and 18.04 are tested).
    • Runtime: Java JDK 1.8.

    Default Network & Access Settings:

    • Admin Web Interface: Listens on port 8080 by default.
    • Default Credentials:
      • Username: admin
      • Password: 123456
    • Don't Starve Together Ports: The game uses ports 10888, 10998, and 10999. It is recommended to open all related ports to avoid connectivity issues.
  3. Build custom Docker images

    master

    You can build your own Docker images using the provided build_image.sh script.

    1. Navigate to the dst-admin/docker directory.
    2. Execute ./build_image.sh with your desired Docker username and the dst-admin version.
    3. Verify the image was created and run it locally.
    # Build the image
    $ cd docker
    $ ./build_image.sh <Docker username> <dst-admin version>
    # Example:
    $ ./build_image.sh wolfgang 1.5.0
    
    # Verify and run your image
    $ docker images
    $ docker run --name dst-admin -d -p8080:8080 -p10888:10888/udp -p10998-10999:10998-10999/udp wolfgang/dst-admin:v1.5.0
  4. Install and start dst-admin manually

    master

    Follow these steps to download and run the dst-admin JAR file:

    1. Download the latest package:
      wget http://clouddn.tugos.cn/release/dst-admin-1.5.0.jar -O dst-admin.jar
    2. Start the service:
      java -jar dst-admin.jar
    3. Install the game client: Once dst-admin starts, it will release an install.sh script. Execute it to install the Steam Don't Starve Together client (you may need to run this multiple times if network issues cause interruptions):
      ./install.sh
    # Download
    wget http://clouddn.tugos.cn/release/dst-admin-1.5.0.jar -O dst-admin.jar
    
    # Start
    java -jar dst-admin.jar
    
    # Install game client
    ./install.sh
  5. Install JDK 1.8 on Ubuntu

    master

    Run the following commands to update your package source and install OpenJDK 1.8:

    # Update software sources
    sudo apt-get update
    
    # Install OpenJDK 1.8
    sudo apt-get install -y openjdk-8-jdk
    
    # Verify installation
    java -version

    Successful installation is indicated by an output similar to openjdk version "1.8.0_252".

    sudo apt-get update
    sudo apt-get install -y openjdk-8-jdk
    java -version
  6. Install dst-admin and start the service

    master

    Download the dst-admin JAR file and run it using the Java runtime.

    Default Credentials:

    • Port: 8080
    • Username: admin
    • Password: 123456
    # Download the newest dst-admin
    wget http://clouddn.tugos.cn/release/dst-admin-1.5.0.jar -O dst-admin.jar
    
    # Start dst-admin
    java -jar dst-admin.jar
  7. Build a custom Docker image manually

    master

    If you need to build your own image, use the build_image.sh script located in the docker directory.

    Steps:

    1. Navigate to the docker directory.
    2. Run the build script providing your Docker username and the desired dst-admin version.
    3. Verify the image exists using docker images.
    4. Run the newly built image using the docker run command.

    Note: Build speed depends on your network connection. If you encounter network errors or slow speeds, consider using a mirror or a proxy.

    $ cd docker
    $ ./build_image.sh <Docker_Username> <dst-admin_version>
    # Example:
    $ ./build_image.sh wolfgang 1.5.0
    
    # After building, run it:
    $ docker run --name dst-admin -d -p8080:8080 -p10888:10888/udp -p10998-10999:10998-10999/udp wolfgang/dst-admin:v1.5.0
  8. Deploy dst-admin using existing Docker images

    master

    You can deploy dst-admin by pulling pre-built images. On the first run, the container automatically installs steamcmd, the Don't Starve Together server, and starts dst-admin.

    Prerequisites:

    • Docker must be installed on the server.
    • Server architecture must be amd64 (supports Windows, MacOS, or Linux).
    • Ensure the following ports are open on your server:
      • 8080 (Web Management Interface)
      • 10888 (UDP)
      • 10998-10999 (UDP)

    Deployment Commands:

    For users in China (recommended):

    $ docker pull registry.cn-hangzhou.aliyuncs.com/dzzhyk/dst-admin:latest
    $ docker run --name dst-admin -d -p8080:8080 -p10888:10888/udp -p10998-10999:10998-10999/udp registry.cn-hangzhou.aliyuncs.com/dzzhyk/dst-admin:latest

    Using the official Docker Hub source:

    $ docker pull dzzhyk/dst-admin:latest
    $ docker run --name dst-admin -d -p8080:8080 -p10888:10888/udp -p10998-10999:10998-10999/udp dzzhyk/dst-admin:latest

    Management:

    • Accessing the UI: Once the server is up, visit the server's IP on port 8080.
    • Viewing Logs: Use docker logs dst-admin to view container and dst-admin logs.
    • Updating Server/SteamCMD: The container checks for updates on startup. To manually trigger an update check, restart the container:
      $ docker restart dst-admin
    • Customization: The container entrypoint script is dst_admin_docker.sh, which can be modified by entering the container.
  9. Install Don't Starve Together client

    master

    After starting dst-admin, an install.sh script will be released. Run this script to install the Steam client and the Don't Starve Together client. Note that executing the script may require your sudo password and might need to be run several times due to potential internet connectivity issues.

    ./install.sh