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
1
u/derickjmurray Dec 05 '13 edited Dec 05 '13
So I'm getting a bit of an error dump when I try to start the server, here it is
Info: Loading Star::Assets from: '../assets' Error: Fatal Exception Caught: AssetBackendException: Asset database ../assets is missing
./starbound_server(_ZN4Star13StarExceptionC2ERKSs+0xe7) [0x867c6e7]
./starbound_server() [0x817da62]
./starbound_server() [0x817db30]
./starbound_server() [0x816e69a]
./starbound_server() [0x81ae61c]
./starbound_server() [0x81ad0f1]
./starbound_server() [0x81adf58]
./starbound_server() [0x815dc16]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb73de4d3]
./starbound_server() [0x81629ed]
The assets folder is there, and as far as I can tell does have all the data in it. If anyone can help please do let me know.
I'm running Ubuntu 12.04 currently since I have a feeling that will end up mattering.
(Edited for format)