Starbound: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Install required libraries to run the server binary ==
{{Root|emerge libpng:1.2}}
== Create a user for running Starbound ==
== Create a user for running Starbound ==


Line 17: Line 13:
{{Command|wget http://media.steampowered.com/client/steamcmd_linux.tar.gz}}
{{Command|wget http://media.steampowered.com/client/steamcmd_linux.tar.gz}}
{{Command|tar -xf steamcmd_linux.tar.gz}}
{{Command|tar -xf steamcmd_linux.tar.gz}}
Test:
Test Steam.
{{Command|./steamcmd.sh}}
{{Command|./steamcmd.sh}}
{{Command|Ctrl+C}}
{{Command|Ctrl-c}}


== Obtain and run the server binary ==
== Obtain and run the server binary ==
Line 25: Line 21:
{{Command|mkdir ~/server}}
{{Command|mkdir ~/server}}
{{Command|cd ~/SteamCMD}}
{{Command|cd ~/SteamCMD}}
{{Command|./steamcmd.sh +login STEAMLOGIN STEAMPASSWORD +force_install_dir /home/starbound/server +app_update 211820 +exit}}
 
{{File|~/SteamCMD/update_starbound.sh|
<pre>
./steamcmd.sh +login STEAMLOGIN STEAMPASSWORD +force_install_dir ~/server +app_update 211820 +exit
</pre>
}}
 
{{Command|chmod 0700 update_starbound.sh}}
 
{{Command|./update_starbound.sh}}


== Run the server ==
== Run the server ==


{{Command|tmux new -s starbound}}
{{Command|tmux new -s starbound}}
{{Command|cd ~/server/linux64}}
{{Command|cd ~/server/linux}}
{{Command|./launch_starbound_server.sh}}
{{Command|./starbound_server}}
{{Command|Ctrl-C}}
{{Command|Ctrl-c}}
 
Edit configuration (the file is created when starting the server for the first time).


Edit configuration (The file is created when starting the server for the first time)
{{File|~/server/storage/starbound_server.config|
{{Command|nano -w ~/server/linux64/starbound.config}}
<pre>
{
  [...]
  "allowAdminCommands" : false,
  "allowAdminCommandsFromAnyone" : false,
  "allowAnonymousConnections" : false,
  "anonymousConnectionsAreAdmin" : false,
  "gameServerPort" : 21025,
  "serverName" : "A Starbound Server",
  "serverUsers" : {
    "user1" : {
      "admin" : true,
      "password" : "password1"
    },
    "user2" : {
      "admin" : false,
      "password" : "password2"
    },
    "user3" : {
      "admin" : false,
      "password" : "password3"
    },
    "user4" : {
      "admin" : false,
      "password" : "password4"
    }
  },
  [...]
}
</pre>
}}


== Stopping the server ==
== Stopping the server ==
Line 42: Line 79:
{{Command|tmux attach -t starbound}}
{{Command|tmux attach -t starbound}}
On the Starbound server command-line.
On the Starbound server command-line.
{{Command|Ctrl-C}}
{{Command|Ctrl-c}}

Latest revision as of 21:51, 22 May 2017

Create a user for running Starbound

# useradd -m -s /bin/bash starbound

Become the starbound user so that any file you download is owned by the correct user.

# su -l starbound

Install the Steam command line interface

$ mkdir ~/SteamCMD
$ cd ~/SteamCMD
$ wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
$ tar -xf steamcmd_linux.tar.gz

Test Steam.

$ ./steamcmd.sh
$ Ctrl-c

Obtain and run the server binary

$ mkdir ~/server
$ cd ~/SteamCMD
File: ~/SteamCMD/update_starbound.sh
./steamcmd.sh +login STEAMLOGIN STEAMPASSWORD +force_install_dir ~/server +app_update 211820 +exit
$ chmod 0700 update_starbound.sh
$ ./update_starbound.sh

Run the server

$ tmux new -s starbound
$ cd ~/server/linux
$ ./starbound_server
$ Ctrl-c

Edit configuration (the file is created when starting the server for the first time).

File: ~/server/storage/starbound_server.config
{
  [...]
  "allowAdminCommands" : false,
  "allowAdminCommandsFromAnyone" : false,
  "allowAnonymousConnections" : false,
  "anonymousConnectionsAreAdmin" : false,
  "gameServerPort" : 21025,
  "serverName" : "A Starbound Server",
  "serverUsers" : {
    "user1" : {
      "admin" : true,
      "password" : "password1"
    },
    "user2" : {
      "admin" : false,
      "password" : "password2"
    },
    "user3" : {
      "admin" : false,
      "password" : "password3"
    },
    "user4" : {
      "admin" : false,
      "password" : "password4"
    } 
  },
  [...]
}

Stopping the server

# su -l starbound
$ tmux attach -t starbound

On the Starbound server command-line.

$ Ctrl-c