Starbound

Starbound

Not enough ratings
How to make a cloud VPS for Starbound
By Kerrigan
Step by Step on how to make a cloud vps for starbound
 
Rate  
Favorite
Favorited
Unfavorite
Banner


https://www.digitalocean.com/?refcode=602b8fcc8c76


If you like this guide then please give a
Setting up a digitalocean server
For this I used https://www.digitalocean.com/?refcode=602b8fcc8c76 because I was able to get free $10 (Also if you are a college student then you can get $100 free to use from their Student Developer Pack) Check Github page for more infomation.

1. Create an account on https://www.digitalocean.com/?refcode=602b8fcc8c76 and add some funds
2. Go to Droplets and click on Create Droplet
3. Enter a name in the hostname field
4. Pick the size of of server you want

1GB for 1-3 users
2GB for more and so on

5. Pick Region close to you or where ever
6. Select Ubuntu 12.04 x 32
7. Click Create Droplet at the bottom

You'll be emailed the IP and login

1. Download putty[the.earth.li] and open putty
2. in the Host Name field enter the IP address you got in the email and click open

3. Type in the terminal that just opened
root
4. Enter in the long password you got in the email
5. It should look like this root@yourhostname:~# and if so type
passwd
enter in a new password that you choose

Then type in terminal
apt-get update
Installing Starbound on ubuntu 12.04 x32
Start downloading steam and extract it

Type in terminal
mkdir steam
then type in terminal
cd steam/
then type in terminal
then type in terminal
tar xzf steamcmd_linux.tar.gz


Cleaning up and move files

Type in terminal
rm steamcmd_linux.tar.gz
then type in terminal
cd ..
then type in terminal
mv steam/ /opt/

Create and appoint the steam user:

Type in terminal
adduser --disabled-login steam
then type in terminal
chown -R steam:steam /opt/steam/

Update the Steam client:

Type in terminal
su - steam -c "/opt/steam/steamcmd.sh"

Now we need to login into steam and download starbound

Type in terminal
login yourusername yourpassword
(You might have to enter in your steam guard code after this as well)

then type in terminal
app_update 211820
Let it finish downloading everything

then type in terminal
quit

Now lets make a service so the server starts up when the cloud vps starts

Type in terminal
nano /etc/init.d/starbound

copy this
#! /bin/sh ### BEGIN INIT INFO # Provides: starbound # Required-Start: networking # Default-Start: 2 3 4 5 # Default-Stop: S 0 1 6 # Short-Description: Starbound Server Daemon # Description: Starts/Stops/Restarts the Starbound Server Daemon ### END INIT INFO PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Starbound Server Daemon" NAME=starbound DIR=/home/steam/Steam/SteamApps/common/Starbound/linux32 DAEMON=$DIR/starbound_server PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME USER=steam GROUP=steam DAEMON_ARGS="" STEAM_DIR=/opt/steam STEAM_DAEMON=$STEAM_DIR/steamcmd.sh STEAM_USER=anonymous STEAM_PASS= STEAM_APP=211820 [ -x "$DAEMON" ] || exit 0 . /lib/init/vars.sh . /lib/lsb/init-functions do_start() { if [ -e $PIDFILE ]; then PID=`cat $PIDFILE` if ( ps -p $PID > /dev/null ); then log_failure_msg "$DESC '$NAME' is already running." return 1 else rm -f $PIDFILE start-stop-daemon --start --background --chdir $DIR --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --quiet --exec $DAEMON --test > /dev/null || return 1 start-stop-daemon --start --background --chdir $DIR --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --quiet --exec $DAEMON -- $DAEMON_ARGS || return 2 fi else start-stop-daemon --start --background --chdir $DIR --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --quiet --exec $DAEMON --test > /dev/null || return 1 start-stop-daemon --start --background --chdir $DIR --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --quiet --exec $DAEMON -- $DAEMON_ARGS || return 2 fi } do_stop() { if [ -e $PIDFILE ]; then PID=`cat $PIDFILE` if ( ps -p $PID > /dev/null ); then start-stop-daemon --stop --signal 2 --quiet --pidfile $PIDFILE [ "$?" = 2 ] && return 2 else log_failure_msg "$DESC '$NAME' is not running." rm -f $PIDFILE return 1 fi else log_failure_msg "$DESC '$NAME' is not running." return 1 fi } case "$1" in start) log_daemon_msg "Starting $DESC..." "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 1) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC..." "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; restart) log_daemon_msg "Restarting $DESC..." "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; *) log_end_msg 1 ;; esac ;; *) log_end_msg 1 ;; esac ;; status) if [ -e $PIDFILE ]; then PID=`cat $PIDFILE` if ( ps -p $PID > /dev/null ); then log_success_msg "$DESC '$NAME' is running (pid $PID)." exit 0 else log_failure_msg "$DESC '$NAME' is not running." rm -f $PIDFILE exit 1 fi else log_failure_msg "$DESC '$NAME' is not running." exit 1 fi ;; update) su - $USER -c "$STEAM_DAEMON +login $STEAM_USER $STEAM_PASS +app_update $STEAM_APP +quit" ;; *) log_action_msg "Usage: $SCRIPTNAME {start|stop|restart|status|update}" exit 0 ;; esac
then right click in the terminal to paste and then hit Ctrl+x then hit Y and then hit enter

then type in terminal
chmod +x /etc/init.d/starbound

then type in terminal (start the server) (replace start with stop to stop server)
service starbound start
then type in terminal
update-rc.d starbound defaults

Now you should have a working server and should be able to join it with the IP that was given to you in your digitalocean's email.

If you are using linux64 then replace the 32 with 64 in the guide

Source [community.playstarbound.com]
If running x64
run
sudo apt-get install lib32gcc1
Editing Starbound files
You have two options to edit the starbound files.

1. Use FTP which will allow you to download and upload files to your starbound folder (For noobies)
Just follow the FTP setup below

2. Use Putty(SSH) to edit files.

In the terminal you have several ways to edit files but what I find is the easiest is to use nano.
sudo nano /pathtofile/file
So it would look like this
sudo nano /home/steam/Steam/SteamApps/common/Starbound/assets/server.config

You arrow around and change what you need then hit Ctrl+x and it will prompt you to hit Y or N to save the file and then askes you the location and filetype.
How to update Starbound
We need to stop the server by typing in terminal
sudo service starbound stop

We need to check for update for steam by typing in terminal
su - steam -c "/opt/steam/steamcmd.sh"
You should now see Steam> in the terminal

We need to log into steam by typing in terminal
login yourusername yourpassword

Once logged into steam we can now check for updates by typing in terminal
app_update 211820

Now to close steam on the server by typing in terminal
quit

Now we are start the server backup by typing in terminal
sudo service starbound start
Add FTP to your server
Want to add a map to the server or edit files easily?

1. Type in terminal and install package
sudo apt-get install vsftpd

2. Type in terminal
sudo nano /etc/vsftpd.conf

Arrow down and change
anonymous_enable=YES to anonymous_enable=NO

Remove the # in front of
local_enable=YES write_enable=YES chroot_local_user=YES

Once that is done hit Ctrl+x and hit y then enter

3. Type in terminal
passwd steam
Enter in a password of your choosing

4. Type in terminal
sudo service starbound stop

5. Download Filezilla[filezilla-project.org] and open it
6 . In host enter the IP Address of your server you got in the email
7. In Username enter "steam" without quotes and enter your password in the password field then click quickconnect
8. in the Remote site on the right side enter
/home/steam/Steam/SteamApps/common/Starbound/linux32

Delete the old universe if there is one and drag and drop the universe you want into the right window under Filename
Drag and drop your universe folder there

Start starbound by typing in terminal it should load the new map
sudo service starbound start
Adding mumble to your server
Type in terminal
sudo apt-get update
then
sudo apt-get install mumble-server
then
sudo dpkg-reconfigure mumble-server

Select these settings
Autostart mumble server on boot: YES
use higher priority: YES
Set a SuperUser password: yourpassword

Now you have a mumble server


If you like this guide then please give a
Running Starbound with screen
We need to install screen by typing in terminal
apt-get install screen
And follow the instructions.

type in terminal to access a screen to start starbound
screen -d -R starbound

load starbound and then you can close the screen

If you are ready to stop the server you just type this command in terminal
screen -S starbound -X quit
< >
30 Comments
Kerrigan  [author] 17 Sep, 2014 @ 6:39am 
Well ty

The guide was made when starbound was first released so I wouldn't be shocked if something has changed since then
Maid Sandi 16 Sep, 2014 @ 8:38pm 
Sorry, I looked into another guide and figured out my error. I THINK I didn't follow the screen step, and closed my PuTTY console, shutting down the server. (In my confusion I followed a different guide and method and got it to work, and comparing the two, I'd say yours is accurate, while theirs does need to update the mention of the command to start it up, but it's doable.) All in all, a decent guide?
Kerrigan  [author] 16 Sep, 2014 @ 7:37pm 
If you did everything correct yes. Type the following service iptables stop and see if you can connect. You shouldn't have iptables installed by default with 12.04.


Maid Sandi 16 Sep, 2014 @ 7:28am 
Hmm. Bit of a problem. Either I am not entering the right commands to start the server, or it doesn't have Starbound's default port open.

To be clear, to start the SB Server up after it's been installed on the DO Cloud Server, I enter

sudo service starbound start

Correct or incorrect?
Darkness of Daddy 9 Jul, 2014 @ 8:16pm 
At first I was gonna say that it was fishy you used your referral link, but after reading it all you actually have a nice guide. Thumbs up.
Kerrigan  [author] 1 Feb, 2014 @ 6:16am 
lol
Expired PotatoTomato 1 Feb, 2014 @ 1:38am 
Oh shit. thats not what this guide was for.
Expired PotatoTomato 1 Feb, 2014 @ 1:37am 
Are you sure there arent other ways to get cloud weapons?
scottymac 26 Jan, 2014 @ 10:37am 
If you want to get this working on a 64bit droplet, also include this command in the install process:

sudo apt-get install lib32gcc1

as outlined here:

Steam 32-bit libraries on 64-bit Linux systems
Kerrigan  [author] 10 Dec, 2013 @ 3:32pm 
Good! Glad you found how to install nano. Some linux distro packages don't have it installed by default but of course this guide is cater torward using DigitalOcean but gives you an idea how to general.