Terraria: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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