This contains configurations & setup for a Linux-based Don't Starve Together dedicated server.
Setup »
DST-Template is a repository provided to help manage
the configurations & setup files for the
Don't Starve Together dedicated server.
This will be used to make changes & keep track of the
project in a more organised and managed fashion. You are
more than welcome to fork this project to edit/refactor
for your own usecase. (๑¯ω¯๑)
To get the project installed, follow this simple guide.
We used Debian in this instance.
https://www.debian.org/download
We had to do some work arounds for adding multiverse (Ubuntu packages) to Debian.
https://developer.valvesoftware.com/wiki/SteamCMD#Linux
https://accounts.klei.com/login
- Install dependencies:
sudo apt install libstdc++6 libgcc1 libcurl4-gnutls-dev wget git nano screen
- Create & Setup a Server with Klei:
Go to this page and sign in. (We used Steam in this instance)
https://accounts.klei.com/login
Go to the 'Games' tab at the top when signed in.
Go to 'Game Servers' under 'Don't Starve Together'
Click 'Add New Server' after entering a random cluster name (Note: Server name is determined by the cluster.ini file.)
Click configure under your new server. Then download said configuration.
- Setup the server configuration:
Move the 'MyDediServer.zip' file you downloaded to ~/.klei/DoNotStarveTogether/
Unzip the 'MyDediServer.zip' file into ~/.klei/DoNotStarveTogether/ (You should see a new folder)
- Navigate to the home directory and install the Dedicated Server:
Go to your home folder:
cd ~
Clone the 'install.sh' file:
wget https://raw.githubusercontent.com/owospace/DST-Template/master/src/install.sh
Mark the 'install.sh' file as executable:
chmod +x install.sh
Run the install.sh file:
./install.sh
This script will automatically download the Don't Starve Together server files.
- Clone the DST-Template Repo:
Clone this repo into the home folder. (~) (You should still be here.)
git clone https://github.com/owospace/DST-Template
- Setup Workshop/Mods (OPTIONAL):
Setup the workshop content
cp -R DST-Template/src/dontstarvetogether_dedicated_server/mods dontstarvetogether_dedicated_server/
Configure your workshop collection/mods (or feel free to use our own Collection!)
nano ~/dontstarvetogether_dedicated_server/mods/dedicated_server_mods_setup.lua
-- If using our collection, make sure to copy these two files to enable the mods.
cp DST-Template/src/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua ~/.klei/DoNotStarveTogether/MyDediServer/Master
cp DST-Template/src/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua ~/.klei/DoNotStarveTogether/MyDediServer/Caves
-- If using your own collection; you will also need to update another file:
nano ~/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua
You will also need to copy this file to the caves instance:
cp ~/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua ~/.klei/DoNotStarveTogether/MyDediServer/Caves/modoverrides.lua
- Start your Don't Starve Together server:
Clone the 'start.sh' script:
wget https://raw.githubusercontent.com/owospace/DST-Template/master/src/start.sh
Set the 'start.sh' script to be executable:
chmod +x start.sh
Run the server:
./start.sh
- Updating your Don't Starve Together server:
Clone the 'update.sh' script:
wget https://raw.githubusercontent.com/owospace/DST-Template/master/src/update.sh
Set the 'update.sh' script to be executable:
chmod +x start.sh
Update the server:
./update.sh
- Impl a way for Workshop content to be cloned back when updating.
- Upload our bash scripts to this repo.
Please see the open issues for a list of proposed features (as well as known issues).
If you want to make a contribution, please fork the repository & create a pull request. If you have a suggestion you would want to see, you can open a new issue with your request.
- Fork the project
- Create your Feature Branch (
git checkout -b feature/YourFeature) - Commit changes (
git commit -m 'This is my feature commit.') - Push to the Branch (
git push origin feature/YourFeature) - Open a Pull Request.
- biz(at)spce.moe - Send me mail
- GitHub (This Project) - Project Link