r/starbound • • Dec 04 '13

How To: Linux Dedicated Server Setup

Greetings everyone,

This is a guide on setting up the dedicated server in Linux. This will be updated as I go through the process myself.

Trying to setup a Windows server? Well we can't be have that HERE but you can find a thread by /u/MrTilly right here

Server Installation

  • Ensure you have screen installed. Doing this will vary by distro. For CentOS and other Redhat derivatives you would use the below command

yum install screen

  • Make a user account for starbound (Must use sudo or root to accomplish this).

adduser starbound

passwd starbound

  • login as user (If you need instructions for that you should probably put down your keyboard and find the closest sys admin)

  • Create directory for SteamCMD and switch to it

mkdir SteamCMD

cd SteamCMD

  • Retrieve and decompress SteamCMD

wget http://media.steampowered.com/client/steamcmd_linux.tar.gz

tar -xvzf steamcmd_linux.tar.gz

  • Launch SteamCMD and allow it to update

./steamcmd.sh

When you see a prompt that looks like

Steam>

Press CTRL and C on your keyboard at the same time to stop the program.

  • Create a script to install and update Starbound and the folder to hold the server files

mkdir ../server

touch update_starbound.sh

echo "./steamcmd.sh +login USERHERE PASSWORDHERE +force_install_dir /home/starbound/server +app_update 211820 +exit" > update_starbound.sh

chmod +x update_starbound.sh

  • Run the script to download latest version of Starbound

./update_starbound.sh

  • Go to server directory

cd ~/server/linux32

  • Start a screen session so the server can run without the terminal being open

screen -S starbound

The above starts the screen session and names it starbound

  • Start the server

./launch_starbound_server.sh

  • After this the server should now bootup successfully although you will see some warning messages (not errors). To disconnect from the screen session you need to press

Ctrl+a+d

All at once. At a regular terminal session you can type

screen -r

To reconnect to the server terminal

After this just make sure you're firewall is open (or ports are forwarded) and you should be good to go!

IMPORTANT NOTE: If you are on CentOS and receive errors about libs then please try the below command before posting errors.

cp /home/starbound/SteamCMD/linux32/libstdc++.so.6 /home/starbound/server/linux32/

NOTE: If you appreciated the guide consider taking a moment to check out some of my music productions and mixes on Soundcloud. Would be great to listen to while playing on your new server :P

https://soundcloud.com/djtisdale

103 Upvotes

208 comments sorted by

View all comments

Show parent comment

3

u/elricsfate Dec 07 '13

The SteamCMD stuff is completely unnecessary -- the server binaries are unprotected. Bonus: it automatically downloads Linux binaries on Windows systems for some reason. So you can just copy the Starbound folder to your server, run linux{32,64}/starbound_server and be off to the races.

So you can upload to the server at residential home speeds, often less than 100 kilobytes per second or you can download to a dedicated server with a likely 100Mbit up and down?

That's the reason for using SteamCMD.

1

u/cereal7802 Dec 10 '13

or in the case of people like me, the windows steam client downloads the game to a server at considerable speed (over 100Mbit) but the steamcmd setup under linux takes hours at less than 10Mbit. In both cases the server system is on a gigabit connection perfectly capable of being maxed out, but for some reason under linux with steamcmd its slow for no good reason.

1

u/roothorick Dec 07 '13

I host the server on my home server, which is ~50ft of Gigabit Ethernet away. So this was way faster. The upstream bandwidth isn't a huge issue since it's just a small server for friends.

2

u/JaspahX Dec 12 '13

Great, but OP's method is universal and works for everyone. SteamCMD is the right way to go.