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/syberphunk Feb 03 '14 edited Feb 03 '14
Looks like an installation of debian can be updated to some extent if you use the experimental repo's (rather than messing about with arbitrary downloaded compiled library files that most solutions throughout the threads appear to do).
I'm just not certain of the relevant package names to grab from the experimental repo for the 32bit version of Debian for the following dependencies:
./starbound_server: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by ./starbound_server)
./starbound_server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ./starbound_server)
./starbound_server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./starbound_server)
Also every guide I've found states "launch_starbound_server.sh" when that isn't included in the linux server download archive.