Run the Server (Native)
As of now there are three ways of running the s&box dedicated server natively that are documented here: via docker, via Docker + Pelican, and manually.
Docker
I will update this section with more useful information after doing more research, but here’s the GitHub repo: https://github.com/claudflare/sbox-server-native-linux
Pelican (with Docker)
I will update this section with more useful information after doing more research, but here’s the GitHub repo: https://github.com/FreshDoktor/sbox_egg
Manually
Caution
THIS SECTION AS OF NOW LIKELY STILL LEADS TO A BROKEN SBOX SERVER. I AM STILL DOING RESEARCH.
Note
Consider corroborating this information with Facepunch’s official documentation page on dedicated servers: https://sbox.game/dev/doc/networking/dedicated-servers/
Tip
If you have any problems with
steamcmd, it should be noted that Valve wrote a “Known Issues” section on the SteamCMD wiki page that may be worth taking a look at.
-
Install
steamcmdso that you can install the official prebuilt s&box dedicated server. SteamCMD wiki page with install instructions: https://developer.valvesoftware.com/wiki/SteamCMD -
Use
steamcmdto install the official prebuilt s&box dedicated server:
steamcmd +login anonymous +app_update 1892930 validate +quit
-
Navigate to the parent folder of where the official prebuilt s&box dedicated server was installed:
cd ~/.local/share/Steam/steamapps/common/"sbox dedicated server"/..
- Use
annealcommand installed in step 3 to make “sbox dedicated server” a case insensitive directory:
anneal create "sbox dedicated server"
- Navigate into “sbox dedicated server”
cd "sbox dedicated server"
- Download prebuilt
libssl.so.3andlibcrypto.so.3(3.0.13) and make them executable:
curl -LO \
https://github.com/vinceTheProgrammer/sbox-linux-book/releases/download/openssl-3.0.13-linux-x86_64/libssl.so.3 \
-LO \
https://github.com/vinceTheProgrammer/sbox-linux-book/releases/download/openssl-3.0.13-linux-x86_64/libcrypto.so.3
chmod +x libcrypto.so.3 libssl.so.3
OR Alternatively, build openssl 3.0.13 yourself if the prebuilts don’t work, or you don’t trust them.
- Add this line above the
dotnetcommand within./sbox-server.sh:
LD_PRELOAD=libssl.so.3:libcrypto.so.3
- Fix the
./sbox-server.shline endings withsed:
sed -i 's/\r$//' sbox-server.sh
- Run the server using
./sbox-server.sh, passing your arguments like normal. Example:
./sbox-server.sh +game facepunch.sandbox facepunch.flatgrass +hostname "My Dedicated Server"
Reference the table at the bottom of https://sbox.game/dev/doc/networking/dedicated-servers/ for the available arguments.
Caution
THIS SECTION AS OF NOW LIKELY STILL LEADS TO A BROKEN SBOX SERVER. I AM STILL DOING RESEARCH.