How to: Set up a linux server on ubuntu

What you need:
1) An VPS or dedicated server with Linux on it.
2) SSH access to it.

First we need to login to SSH, we will be using Putty to do this. Simply download it, put it on your desktop and start it up. Then input the IP of your vps/dedi, press ‘open’ and continue to login.

We will be using SteamCMD to download the dedicated server, for more info check https://developer.valvesoftware.com/wiki/SteamCMD

First we need to move to our home directory, then make a Steam folder there.

Code:

cd /home

mkdir steam

cd steam

Now we need to download SteamCMD and unpack it.

Code:

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

tar -xvzf steamcmd_linux.tar.gz

Now we will remove the tar.gz file we downloaded and run SteamCMD.

Code:

rm steamcmd_linux.tar.gz

./steamcmd.sh

Let it update, and wait till you see “Steam>”, now you can type Steam commands, let’s login to our account first:

Code:

login your_steam_user_name your_steam_password

This will log you in into your Steam account. If you have Steam open on any other computer (like the one you are on right now), you will be logged out.
SteamCMD will now log you in using your account you bought Starbound on, and it will most likely ask you to input a Steamguard code if you have set that up, simply follow the instructions on screen to continue.

After logging in type:

Code:

force_install_dir ./starbound

Assuming you are in /home/steam this will make a folder called starbound inside /home/steam/starbound, now type:

Code:

app_update 211820

This will download and update Starbound, wait till it finishes (might take a while depending on how fast the connection is).

Now we can safely exit SteamCMD using the following command:

Code:

quit

After it’s downloaded we can now run the Starbound server. Depending on whether your Linux operating system is 32 or 64 bit we need to move to the correct directory.
I am using 64bit so I will type “cd /home/steam/starbound/linux64” to get to the right place. Now we can launch the startbound server using the following command:

Code:

./starbound_server

But before you do that I would suggest running that in screen, as followed:

Code:

screen -S starbound -d -m ./starbound_server

Using screen will basically run the Starbound server in another window (screen), you can enter and exit this screen at any time, might be a bit confusing at first but you’ll get the hang of it.

“starbound” is the screen name.

If you accidentally ran starbound_server before running it in screen press CTRL + Z to close it.

Type the following to enter the screen:

Code:

screen -d -R starbound

Press CTRL + A then CTRL + D to exit the screen without shutting down the starbound server.

Type the following to get a list of screens:

Code:

screen -ls

And type the following to shutdown (kill) the server and the screen at the same time:

Code:

screen -S starbound -X quit

To update the server repeat the following steps:

Code:

cd /home/steam

./steamcmd.sh

Then:

Code:

login your_steam_username your_steam_password

force_install_dir ./starbound

app_update 211820

quit

http://community.playstarbound.com/threads/how-to-set-up-a-linux-server-on-ubuntu.34623/
http://starbounder.org/Guide:LinuxServerSetup#Prerequisites
https://www.google.com/search?q=starbound+dedicated+server&oq=starbound+dedicated+server&aqs=chrome..69i57.6625j0j7&sourceid=chrome&ie=UTF-8#q=starbound+dedicated+server+ubuntu

Advertisements