Log in to your linux VM and install steamcmd
- Note: if you prefer a distro agnostic method, just create a directory to hold steamcmd,
cd into it, then run curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - to grab steamcmd. be sure to install the needed lib32gcc-s1 library from your package manager.
Create a new folder somewhere to house the game files.
Create a file called update-brickadia.sh, then run chmod +x update-brickadia.sh on it to make it executable.
Open the file with your favorite editor and put the following:
$$
#!/usr/bin/env bash
/path/to/steamcmd/steamcmd.sh +force_install_dir /your/install/directory +login anonymous +app_update 3017590
$$
Run the update-brickadia.sh script. It should install the brickadia server to the path you set above. You can re-use this script in the future to update the server when needed.
Once the download finishes, you'll be dropped to the steamcmd shell, you can just type exit here.
Inside of the install directory you set earlier, you will now have files. One of which is the folder Brickadia
Go inside Brickadia/Binaries/Linux, and you should see the file BrickadiaServer-Linux-Shipping, this will be what we will use to launch the server in a bit.
Go to https://brickadia.com/account and login, then generate a server hosting token and copy this somewhere.
Back in the vm in the directory with the server launcher binary mentioned earlier, run the following command: ./BrickadiaServer-Linux-Shipping -log -port=7777 -token=yourTokenHere
This will spin up the server, and after about 2 minutes it should be fully loaded.
Connect to your dedicated server via manual connection in game. then go to Menu -> Edit Game and set up the server options and save them.
In the linux environment, hit ctrl+c to stop the server.
Run cd ~/.config/Epic/Brickadia/Saved/Config/LinuxServer to drop into the folder with the server config files.
Edit GameUserSettings.ini to set your server name, password, etc until you are happy with it.
Verify in your network port 7777 udp is port forwarded so that others can connect.
Once the network is in place, go back to the directory with BrickadiaServer-Linux-Shipping in it.
Since we have already registered the token to the game server, we can now just run the server with ./BrickadiaServer-Linux-Shipping -port=7777 -log going forward. Do this now.
Open up Brickadia and connect to your server by hitting Join Game -> Connect Manually.
You should now be connected, and the server is up!