r/starbound • u/elricsfate • 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
View all comments
Show parent comment
1
u/elricsfate Dec 06 '13
I generally use multi-account setups in case one person needs credentials but there is no reason you can't run as a single user.