Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Latest commit

 

History

History
92 lines (78 loc) · 2.01 KB

Terraria.org

File metadata and controls

92 lines (78 loc) · 2.01 KB

Terraria

AUR

yaourt -S terraria-server

Edit PKGBUILD, install, and below, replace /opt with /mnt/extra

sudo sed -i 's@/opt@/mnt/extra@g' /usr/lib/systemd/system/[email protected] /usr/bin/terraria-server
cat <<EOF | sudo -u terraria tee /mnt/extra/terraria-server/Re.conf
maxplayers=8
world=/mnt/extra/terraria-server/Worlds/Re.wld
port=7777
password=a
worldpath=/mnt/extra/terraria-server/Worlds
difficulty=0
secure=1
EOF
sudo systemctl start terraria-server@Re
sudo systemctl enable terraria-server@Re
sudo -u terraria screen -r

Basic Terraria Server

好像下面的调用有错误,用AUR吧

sudo pacman -S --needed wget p7zip tmux
mkdir -p Terraria
cd Terraria
# Amazon S3
wget http://terraria.org/server/terraria-server-1353.zip
7z x terraria-server-1353.zip
chmod +x ./1353/Linux/TerrariaServer.bin.x86_64
TERM=linux tmux new-session -s Terraria
#mkdir -p Worlds
cat >config.ini <<EOF
maxplayers=8
world=re
port=7777
password=a
motd=Hey
worldpath=/home/wenxin/Terraria/Worlds
autocreate=2
difficulty=0
worldname=Re
secure=1
EOF
#./1353/Linux/TerrariaServer.bin.x86_64 -config /home/wenxin/Terraria/Worlds
# 但是它并不理会你的配置文件,还是要再配一遍,开心吗
./1353/Linux/TerrariaServer.bin.x86_64
# 不如干脆不配了……这怎么回事

Tshock

Installation

sudo pacman -S --needed wget p7zip tmux mono
mkdir -p tshock
cd tshock
# Amazon S3
wget https://github.com/NyxStudios/TShock/releases/download/v4.3.23/tshock_4.3.23.zip
7z x tshock_4.3.23.zip
tmux new-session -s tshock
mono TerrariaServer.exe

Become admin

In game:

/auth [authcode]
/user add [username] [password] superadmin
/login [username] [password]
/auth

Proper permissions

In game or at console

/group addperm * tshock.warp tshock.whisper tshock.npc.spawnboss tshock.npc.summonboss tshock.world.movenpc