Help Setting Up Dedicated Server?

Get support for Unvanquished.
Post Reply
Opti790mt
Posts: 1
Joined: Wed Dec 11, 2019 10:49 pm UTC

Help Setting Up Dedicated Server?

Post by Opti790mt »

Hello!

I am a noob when it comes to any of this kind of stuff so I appreciate any help I can get!

I was attempting to following the instructions to set up a dedicated server and I encountered an issue when starting the server that reads,
"./startsv.sh: line 1: ./daemonded: No such file or directory".

If I had to guess, I believe the error is because I did not specify where any of the game files are????????????

When installing the game with the launcher, the game was installed onto my desktop. However, I did not specify a path I wanted install the game. It just appeared on my desktop so I just went along with it.

Also, when port forwarding, do I set up the port forward using TCP, UDP, or TCP & UDP? I would assume it uses both TCP and UDP but please correct me if I am wrong.

Code: Select all

How my directories are set up:

On my Desktop, I have a folder named "Unvan". Here is what the contents look like within this "Unvan" folder:

-Folder: Server
-Folder: config
-File: maprotation.cfg
-File: server.cfg
-File: startsv.sh
-File: unvanquished_0.51.1.zip

-Folder: Unvanquished
-File: linux-amd64.zip
-File: macos-amd64.zip
-File: symbols_0.51.1.zip
-File: windows-amd64.zip
-File: windows-i686.zip
-Folder: unvanquished
-File: crash_server
-File: daemon
-File: daemonded
-File: daemon-tty
-File: irt_core-x86_64.nexe
-File: nacl_helper_boostrap
-File: nacl_loader
-Folder: pkg
-File: map-antares_1.dpk
-File: map-chasm_1.2.dpk
-File: map-forlorn_0.15.dpk
-File: map-parpax_2.5.1.dpk
-File: map-perseus_1.dpk
-File: map-plat23_1.13.1.dpk
-File: map-spacetracks_1.1.dpk
-File: map-station15_1.1.dpk
-File: map-thunder_1.3.2.dpk
-File: map-vega_1.4.dpk
-File: map-yocto_1.dpk
-File: res-ambient_0.51.dpk
-File: res-buildables_0.51.dpk
-File: res-legacy_0.51.dpk
-File: res-players_0.51.dpk
-File: res-soundtrack_0.51.dpk
-File: res-voices_0.51.dpk
-File: res-weapons_0.51.dpk
-File: tex-all_2.1.dpk
-File: tex-common_2.1.dpk
-File: tex-ej01_1.1.dpk
-File: tex-ex_1.1.dpk
-File: tex-exm_1.1.dpk
-File: tex-pk01_1.1.dpk
-File: tex-pk02_1.1.dpk
-File: tex-space_1.1.dpk
-File: tex-tech_1.1.dpk
-File: tex-trak5_1.1.dpk
-File: tex-vega_1.4.dpk
-File: unvanquished_0.51.1.dpk

Code: Select all

Final notes:

The machine I am attempting to run the server on is currently running Linux Ubuntu 18.04.3 LTS (and it does not help that I am new to Linux but I am still willing to learn). When configuring this server, I use OpenSSH to remotely configure the server with the Ubuntu CLI using my Windows 10 machine in PUTTY. My plan is to play the game on my Windows 10 machine while the Linux machine will be used as a server. I do not think any of this is important information but I figured I should mention it in case if it is for some reason...

Lastly, I apologize if this question/issue has been addressed previously. I am very new to this forum stuff. I also am new to using Linux as well as setting up a dedicated server.

Thank you for any/all of the help anyone can give me,
Opti

User avatar
killing time
Programmer
Posts: 162
Joined: Wed Jul 04, 2012 7:55 am UTC

Re: Help Setting Up Dedicated Server?

Post by killing time »

So you want to run a server on a Linux box at your house and have people from the internet be able to connect to it, is that correct?

Anyway the easiest way to fix the error with your shell script is to put it in the same directory as daemonded (./daemonded is a relative path).

User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Help Setting Up Dedicated Server?

Post by illwieckz »

Opti790mt wrote:

Hello!

I am a noob when it comes to any of this kind of stuff so I appreciate any help I can get!

I was attempting to following the instructions to set up a dedicated server and I encountered an issue when starting the server that reads,
"./startsv.sh: line 1: ./daemonded: No such file or directory".

If I had to guess, I believe the error is because I did not specify where any of the game files are????????????

When installing the game with the launcher, the game was installed onto my desktop. However, I did not specify a path I wanted install the game. It just appeared on my desktop so I just went along with it.

Hi @Opti790mt

By default the updater installs the game in ~/.local/share/unvanquished/base

By default the config directory is stored in ~/.local/share/unvanquished (~/.local/share/unvanquished/config)

Also, when port forwarding, do I set up the port forward using TCP, UDP, or TCP & UDP? I would assume it uses both TCP and UDP but please correct me if I am wrong.

Only UDP is required

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How my directories are set up:

Code: Select all

On my Desktop, I have a folder named "Unvan". Here is what the contents look like within this "Unvan" folder:

[code]-Folder: Server
      -Folder: config
            -File: maprotation.cfg
            -File: server.cfg
            -File: startsv.sh
      -File: unvanquished_0.51.1.zip

-Folder: Unvanquished
      -File: linux-amd64.zip
      -File: macos-amd64.zip
      -File: symbols_0.51.1.zip
      -File: windows-amd64.zip
      -File: windows-i686.zip
      -Folder: unvanquished
            -File: crash_server
            -File: daemon
            -File: daemonded
            -File: daemon-tty
            -File: irt_core-x86_64.nexe
            -File: nacl_helper_boostrap
            -File: nacl_loader
            -Folder: pkg
                 […]
                  -File: unvanquished_0.51.1.dpk

Move the config dir to ~/.local/share/unvanquished/config (or merge them if they both exists).
Move the startsv.sh script right to the daemon file or modify it to change directory at startup to run on the same directory the daemon binary is stored.

Lastly, I apologize if this question/issue has been addressed previously. I am very new to this forum stuff. I also am new to using Linux as well as setting up a dedicated server.

No need to apologize, we have to update documentation which is really outdated, so that's all our fault. :grin:

Note that we are in progress of writing state-of-the-art server config files. Forget any tutorial you read and use config files from there:
https://github.com/illwieckz/Unvanquish ... st/configs
Put those two directories in ~/.local/share/unvanquished or your own directory (see below) and tweak config files as you like.

I assume you are using startsv.sh script from this page: https://wiki.unvanquished.net/wiki/Server/Running

I recommend you to not use the current directory as home path as this script does. Homepath is the file containing the config and game directory.

So, this is a recommended layout and script using the default homepath:

Layout:

Code: Select all

      -Folder: ~/.local/share/unvanquished/config/
            -File: server.cfg
            -Folder: map/
                  -File: default.cfg
      -Folder: ~/.local/share/unvanquished/game/
            -File: maprotation.cfg
-Folder: Unvanquished
      -File: startsrv
      -Folder: unvanquished_0.51.1
            -File: linux-amd64.zip
             […]
            -File: crash_server
            -File: daemon
            -File: daemonded
            -File: daemon-tty
            -File: irt_core-x86_64.nexe
            -File: nacl_helper_boostrap
            -File: nacl_loader
            -Folder: pkg
                 […]
                  -File: unvanquished_0.51.1.dpk

Script named startsrv:

Code: Select all

#!/bin/sh
cd unvanquished_0.51.1
./daemonded +exec server.cfg

So, this is a recommended layout and script using a custom homepath:

Code: Select all

-Folder: Unvanquished/
      -File: startsrv
      -Folder: home/
            -Folder: config/
                  -File: server.cfg
                  -Folder: map/
                        -File: default.cfg
            -Folder: game
                  -File: maprotation.cfg
      -Folder: unvanquished_0.51.1/
            -File: linux-amd64.zip
             […]
            -File: crash_server
            -File: daemon
            -File: daemonded
            -File: daemon-tty
            -File: irt_core-x86_64.nexe
            -File: nacl_helper_boostrap
            -File: nacl_loader
            -Folder: pkg/
                 […]
                  -File: unvanquished_0.51.1.dpk

Script named startsrv:

Code: Select all

#!/bin/sh
cd unvanquished_0.51.1
./daemonded -homepath ../home +exec server.cfg

As you see, with this setup it would easy for you to update the game by extracting a new zip and just modifying the script to use the new directory extracted from zip. By using custom homepath you may start various servers with different configurations.

Don't hesitate to help us to update the Wiki. :grin: The only condition is that by contributing your changes to wiki your changes would be protected by CC By SA 3.0 licence without NC clause that is non-free (the wiki currently says otherwise but we are in process to remove the non free NC clause).

And welcome to our (small but) great community! :grin:

:advgranger: :beer: :granger:

This comment is licensed under cc ​​by 4 and antecedent.

Post Reply