Terraria: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
No edit summary
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>
}}

Revision as of 01:22, 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
$ 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_terraria.sh
./steamcmd.sh +login STEAMLOGIN STEAMPASSWORD +force_install_dir ~/server +app_update 105600 +exit