From Q
Revision as of 02:52, 10 September 2015 by Tgurr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
$ chmod +x update_terraria.sh
$ ./update_terraria.sh

Run the server

$ tmux new -s terraria
$ cd ~/server
$ ./TerrariaServer.bin.x86_64
$ exit