crazypenguin011 Posted October 15, 2021 Share Posted October 15, 2021 So I was able to set up the server, but I cannot change the settings, like server name, password, etc. I tried changing the cluster.ini file but that does nothing. I was wondering if someone could help me resolve this issue Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1504654 Share on other sites More sharing options...
myxal Posted October 17, 2021 Share Posted October 17, 2021 On 10/16/2021 at 1:43 AM, crazypenguin011 said: So I was able to set up the server, but I cannot change the settings, like server name, password, etc. I tried changing the cluster.ini file but that does nothing. I was wondering if someone could help me resolve this issue My guess is the path of the file you're editing and the one that's s being executed don't match. Check and/or post logs. Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1504957 Share on other sites More sharing options...
Otomay Posted February 15, 2022 Share Posted February 15, 2022 (edited) On 11/9/2020 at 6:49 AM, myxal said: I don't use Klei's script so I'm not even sure how it's supposed to work. How do you do? I have done using docker image, but I'm thinking if this can make it slower or worse, idk. Edited February 15, 2022 by Otomay Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1540158 Share on other sites More sharing options...
Noric88 Posted April 4, 2022 Share Posted April 4, 2022 This guide is so old. How has there not been an updated guide with the massive gaps filled in? The guide completely forgets to mention you need to run the game once to generate the .klei folder. Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1555175 Share on other sites More sharing options...
nikk Posted May 18, 2022 Share Posted May 18, 2022 (edited) Suck my **** Jamie Cheng. Edited May 28, 2023 by nikk Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1571243 Share on other sites More sharing options...
Axsdenied Posted June 6, 2022 Share Posted June 6, 2022 Made an updated guide here: [2022 UPDATED] Dedicated Server Quick Setup Guide - Linux - [Don't Starve Together] Dedicated Server Discussion - Klei Entertainment Forums 2 1 Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1575426 Share on other sites More sharing options...
www.com.au Posted July 3, 2022 Share Posted July 3, 2022 I could not for the life of me get this to work. I was pulling my hair out for 2 days straight before I finally realised what the problem was - permissions. I needed to give permissions to my steam user first, running the command to start the server from the root user did not work, even when I edited the .sh file to have the correct file path regardless of who ran it. This required me to (from the root user) enter: usermod -aG sudo steam to give the username 'steam' sudo privileges. This did not work the first time, and required restarting and re-running the command a couple times before it actually worked. I then had to change the permissions of the hidden directory that the server config files are in (the /.klei/ directory). To do this I went as the root user to the file: cd /home/steam/ and edited the permissions to allow any user on my computer to read/write to the directory: chmod ugo+rwx /.klei/ From there the server would work, but only when running the startserver.sh from the steam user. I hope someone out there finds this useful. 1 Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1581603 Share on other sites More sharing options...
Force_cc Posted November 25, 2022 Share Posted November 25, 2022 this one is for chinese users 在也只在ubuntu上非常好用 目前支持的版本18.04,20.04,22.04 1 Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1612124 Share on other sites More sharing options...
Hatty DeWitt Posted August 3, 2023 Share Posted August 3, 2023 (edited) When running the server script I always get the errors Master: [00:00:10]: [CRITICAL] Failed to save file: /home/steam/.klei//DoNotStarveTogether/MyDediServer/Master/save/shardindex Master: [00:00:10]: [CRITICAL] Fingerprint:(VERY LONG STRING). a few times for both Master and Cave shards before they ultimately shutdown after the messages: Master: [00:00:10]: Check for write access: FALSE Master: [00:00:10]: Reset() returning Master: [00:00:10]: THREAD - started 'WorldSim' (140422007482048) Master: [00:00:10]: WorldSim::SimThread::Main() Master: [00:00:10]: DoLuaFile scripts/worldgen_main.lua Master: [00:00:10]: DoLuaFile loading buffer scripts/worldgen_main.lua Caves: [00:00:10]: DLC enabled : false Master: [00:00:10]: DLC enabled : false src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0 src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0 Caves: src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0 Master: src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0 This happens in both my Debian and Arch Linux installations... I noticed the program is trying to save the file to a path with a double slashes (.../.klei//DoNotStarveTogether/...) but I don't know how I would change that. Any clue as to what may be causing the problem? Edited August 3, 2023 by Hatty DeWitt Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1656959 Share on other sites More sharing options...
AllanChao Posted August 7, 2023 Share Posted August 7, 2023 On 2/17/2016 at 4:52 AM, 255 said: This guide will help you set up a dedicated server on an Ubuntu machine (32 or 64-bit) 4. Create the script that will run the servers. Hide contents Download this shell script and move it to ~/run_dedicated_servers.sh. I have optimized the following code by adding automatic mod file rewriting, so that additional configuration is not required for dedicated_server_mods_setup.lua in the configuration file. #Check mod file check_for_file "$dontstarve_dir/$cluster_name/Master/modoverrides.lua" #rewirte mod file in dedicated_server_mods_setup.lua cd "$dontstarve_dir/$cluster_name/Master" || fail grep -o '\-[0-9]*"' modoverrides.lua | sed 's/^\-/ServerModSetup("/g; s/$/)/g' > "$install_dir/mods/dedicated_server_mods_setup.lua" Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1657598 Share on other sites More sharing options...
Rainzzzz Posted September 15, 2023 Share Posted September 15, 2023 On 8/7/2023 at 5:21 PM, AllanChao said: I have optimized the following code by adding automatic mod file rewriting, so that additional configuration is not required for dedicated_server_mods_setup.lua in the configuration file. #Check mod file check_for_file "$dontstarve_dir/$cluster_name/Master/modoverrides.lua" #rewirte mod file in dedicated_server_mods_setup.lua cd "$dontstarve_dir/$cluster_name/Master" || fail grep -o '\-[0-9]*"' modoverrides.lua | sed 's/^\-/ServerModSetup("/g; s/$/)/g' > "$install_dir/mods/dedicated_server_mods_setup.lua" Thanks for the script, very useful for an existing cluster Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1665257 Share on other sites More sharing options...
kriatit Posted October 6, 2023 Share Posted October 6, 2023 Hello, I can't get mods to work on a dedicated server The server does not seem to see them, although it configured everything as it should Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1670697 Share on other sites More sharing options...
kriatit Posted October 6, 2023 Share Posted October 6, 2023 (edited) I was able to configure everything, that's what I did to make the mods work 1. I created the folder "mods" in the folder "MyDediServer" in it I placed 2 files "dedicated_server_mods_setup.lua" and "modsettings.lua" (you should know what should be written in them) 2. In the folder "Master" and "Caves" placed the file "mods overrides.lua" 3. D file "run_dedicated_servers.sh " added 2 lines check_for_file "$dontstarve_dir/$cluster_name/Master/modoverrides.lua" check_for_file "$dontstarve_dir/$cluster_name/Caves/modoverrides.lua" These 2 lines should be placed under the line (check_for_file "steamcmd.sh ") P.s. English is not my native language, so if I explained it badly, I'm sorry Edited October 6, 2023 by kriatit Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1670702 Share on other sites More sharing options...
iVodkabulary Posted January 16, 2024 Share Posted January 16, 2024 I'm having trouble with dedicated server on linux setup with mods. I already added the modoverrides.lua with mod setting enable true to both Master and Caves folder. Also added ServerModSetup("2003549262") to the dedicated_server_mods_setup.lua. Then I ran the run_dedicated_servers.sh. The server was online but no mod added. Please help! Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1694474 Share on other sites More sharing options...
FrauleinEule Posted April 3, 2024 Share Posted April 3, 2024 I follow this guide, and the last version my dedicated server run normally, but this version I got problem with running my server, it just stay in here , I use none mod in this cluster Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1709177 Share on other sites More sharing options...
echo_lovely Posted November 26, 2024 Share Posted November 26, 2024 On 7/18/2021 at 9:44 AM, Cyborg said: Why this doesn't work? I do everything how it should be done. If you change the cluster file dir, you should move the token file into ~/.klei/DoNotStarveTogether/<your cluster file name>/ Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1761682 Share on other sites More sharing options...
echo_lovely Posted November 26, 2024 Share Posted November 26, 2024 On 4/3/2024 at 9:07 PM, FrauleinEule said: I follow this guide, and the last version my dedicated server run normally, but this version I got problem with running my server, it just stay in here , I use none mod in this cluster world. Do you resolve the problem? I alsl meet the problem, My dedicated server based on ubuntu can not install mods.dedicate mods file content as follow: ServerModSetup("831523966") -- 999堆叠 ServerModSetup("1172839635") -- Better Ice Box ServerModSetup("661253977") -- Don't Drop Everything ServerModSetup("375850593") -- Extra Equip Slots ServerModSetup("378160973") -- Global Position ServerModSetup("1595934840") -- 扶我起来 ServerModSetup("2189004162") -- Insight ServerModSetup("1207269058") -- 简易血条 ServerModSetup("1595631294") -- 智能小木牌 ServerModSetup("362175979") -- Wormhole Marks ServerModSetup("2115943953") -- Auto Stack Pro --There are two functions that will install mods, ServerModSetup and ServerModCollectionSetup. Put the calls to the functions in this file and they will be executed on boot. --ServerModSetup takes a string of a specific mod's Workshop id. It will download and install the mod to your mod directory on boot. --The Workshop id can be found at the end of the url to the mod's Workshop page. --Example: http://steamcommunity.com/sharedfiles/filedetails/?id=350811795 --ServerModSetup("350811795") --ServerModCollectionSetup takes a string of a specific mod's Workshop id. It will download all the mods in the collection and install them to the mod directory on boot. --The Workshop id can be found at the end of the url to the collection's Workshop page. --Example: http://steamcommunity.com/sharedfiles/filedetails/?id=379114180 --ServerModCollectionSetup("379114180") When DST server start ,the file will be set as default . Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1761684 Share on other sites More sharing options...
DarkShado Posted December 7, 2024 Share Posted December 7, 2024 Ok so I just followed this guide on Debian 12 (64 bit system) So I am not sure what distro this guide was ment for or what version if it was meant for Debian but the Dependenies using the names above could not be found. The correct dependencies are bellow this is the command you would run on Debian 12 for a 64 bit install to install the 32 bit dependencies need. apt-get install libx32stdc++6 libgcc-s1-x32-cross libcurl4-gnutls-dev libcurl4-gnutls-dev This worked for me I followed the rest of the guide and it worked fine I just had to figure out the file names for the dependencies in Debian 12 which wasn't too hard. I have been running Debian for years now and have worked with linux systems for a long time. I hope this helps some one else out that is trying to do this install on a Debian 12 64 bit system to install the 32 bit packages needed by steam. I did this on December 6 2024. you can see in the screenshot that it is running succesfully. Also bellow https://ibb.co/NZYbqd1 I hope this helps other people out there as well. Jamie (she / her) Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1769930 Share on other sites More sharing options...
tiomochka Posted April 2, 2025 Share Posted April 2, 2025 (edited) Hello, I have already tried a lot of things, I am desperate, the mods still do not work on the server, I did it several times according to different instructions, no result, maybe you have some ideas? startup log: (https://raw.githubusercontent.com/artemka-sh/files/refs/heads/main/log.txt) config files here: (https://raw.githubusercontent.com/artemka-sh/files/refs/heads/main/dst_configs.txt) I will be glad to receive any hints Edited April 2, 2025 by tiomochka i dont now why text underlineing Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1810600 Share on other sites More sharing options...
Khalil_Belaid Posted July 26, 2025 Share Posted July 26, 2025 Hello there, First time posting on here, but i just wanted to share my docker configuration in case someone needed something convenient. All you have to do to set it up, is update the environment variables in docker-compose.yml file I have yet to add a readme, but I'm excited to share nonetheless. Hope this helps! Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1828699 Share on other sites More sharing options...
DarkElemental Posted October 13, 2025 Share Posted October 13, 2025 If someone is still confused why mods are not launching despite setting lua files. You need to copy your mods folder into ~/dontstarvetogether_dedicated_server/ or path your actual game is installed. NOT in MyDediServer folder. Maybe someone finds it usefull. Link to comment https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/page/6/#findComment-1839930 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now