Guide – How To Start – Don’t Starve Together – Game Server on Ubuntu

Don’t Starve Together  is a survival video game, the sequel to Don’t Starve, and features the requested multiplayer mechanics. The game follows a scientist named Wilson who finds himself in a dark, dreary world and must survive as long as possible.

This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.

How to create and connect to Don’t Starve Together on Ubuntu

  1. To start the server, you just need to start the VM through Azure Portal. НBut for the server operation, you should generate and insert a cluster_token into a file on the server. To do this, start the game Don’t Starve Together.
  2. Open the console using the “~” button in the game, and enter the following command: TheNet:GenerateClusterToken().
  1. Click the Data button to open the folder with the generated cluster_token.txt file. The contents of this file must be moved to the VM.
  2. To connect, you need PuTTy application to connect via ssh. You can download it at the following link – Download.
  3. Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.
  1. In the opened console it is necessary to enter a username and password that were specified while creating the virtual machine.
  2. Run the following commands, to create and fill cluster_token.txt:

> sudo su

> systemctl stop dst (to stop the server)

> cd /home/steamuser/.klei/DoNotStarveTogether/Cluster_1

> nano cluster_token.txt

> Transfer the contents of the file generated in the step 3

> Press Ctrl + X on the keyboard to exit the file. Then, you will be asked to save the changes to the file – press Y on the keyboard to confirm, and Enter to overwrite to the same file.

> systemctl start dst (to run the server)

  1. Run the following commands, to open the game console:

> sudo su (If you haven’t run this command before)

> su steamuser
> screen -r

To exit the console correctly, use the Ctrl + A key combination, then releasing only the A button, press D on the keyboard.

  1. Start the game “Don’t Starve Together” to connect to the server.
  2. Open the console using the “~” button on your keyboard, and enter the following command with quotes to connect – c_connect (“% vm_ip%”)

Server update

If you were unable to connect to the the server, you should update the server. To do this, connect to the VM through PuTTY and do the following:

  1. First of all, you must stop the server, you can do this using the following commands:

> sudo su (If you haven’t run this command before)

> systemctl stop dst

  1. Enter the following commands in sequence:

>/home/steamuser/steamcmd

> login anonymous

> force_install_dir /home/steamuser/dontstarve

> app_update 343050 validate

> exit

> cd /home/steamuser

> chown -R steamuser:steamuser dontstarve

> systemctl start dst

Website Built with WordPress.com.

Up ↑

%d bloggers like this: