Skip to content

Instantly share code, notes, and snippets.

@deenski
Last active June 8, 2018 04:08
Show Gist options
  • Select an option

  • Save deenski/6a140a9786842499de7ccb73b4037513 to your computer and use it in GitHub Desktop.

Select an option

Save deenski/6a140a9786842499de7ccb73b4037513 to your computer and use it in GitHub Desktop.
install terraria server
#!/bin/bash
# by: Deenski
# instructions:
# Spin up gcp instance - 3.75gb ram - network tag = terraria
# allow port 7777 through the vpc firewall for network tag 'terraria'
#download
wget terraria.org/server/terraria-server-1353.zip
#unzip
sudo apt install -y unzip
unzip terraria-server-1353.zip
rm terraria-server-1353.zip
#make executeable
cd 1353/Linux/
chmod u+x TerrariaServer.bin.x86_64
# create symbolic link
sudo ln -s /home/$USER/1353/Linux/TerrariaServer.bin.x86_64 /usr/bin/start-terraria
#start the server
start-terraria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment