Terraria: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Create a user for running Terraria == {{Root|useradd -m -s /bin/bash terraria}} Become the terraria user so that any file you download is owned by the correct user. {{Ro..." |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
== Install the [[Steam]] command line interface == | == Install the [[Steam]] command line interface == | ||
{{Command|mkdir ~/ | {{Command|mkdir ~/steamcmd}} | ||
{{Command|cd ~/ | {{Command|cd ~/steamcmd}} | ||
{{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}} | ||
| Line 16: | Line 16: | ||
{{Command|./steamcmd.sh}} | {{Command|./steamcmd.sh}} | ||
{{Command|Ctrl-c}} | {{Command|Ctrl-c}} | ||
== Obtain and run the server binary == | |||
{{Command|mkdir ~/server}} | |||
{{Command|cd ~/steamcmd}} | |||
{{File|~/steamcmd/update_terraria.sh| | |||
<pre> | |||
./steamcmd.sh +login STEAMLOGIN STEAMPASSWORD +force_install_dir ~/server +app_update 105600 +exit | |||
</pre> | |||
}} | |||
{{Command|chmod +x update_terraria.sh}} | |||
{{Command|./update_terraria.sh}} | |||
== Run the server == | |||
{{Command|tmux new -s terraria}} | |||
{{Command|cd ~/server}} | |||
{{Command|./TerrariaServer.bin.x86_64}} | |||
{{Command|exit}} | |||
Latest revision as of 01:52, 10 September 2015
Create a user for running Terraria
# useradd -m -s /bin/bash terraria
Become the terraria user so that any file you download is owned by the correct user.
# su -l terraria
Install the Steam command line interface
$ mkdir ~/steamcmd
$ cd ~/steamcmd
$ 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_terraria.sh
./steamcmd.sh +login STEAMLOGIN STEAMPASSWORD +force_install_dir ~/server +app_update 105600 +exit
$ chmod +x update_terraria.sh
$ ./update_terraria.sh
Run the server
$ tmux new -s terraria
$ cd ~/server
$ ./TerrariaServer.bin.x86_64
$ exit