User Tools

Site Tools


esxi:terraria_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
esxi:terraria_server [2020/07/02 14:25]
derek
esxi:terraria_server [2020/07/03 18:37] (current)
derek
Line 19: Line 19:
 <code bash> <code bash>
 # Allow port 7777 through iptables # Allow port 7777 through iptables
-echo "-A INPUT -p tcp -m tcp --dport 7777 -j ACCEPT" >> /​etc/​systemd/​scripts/​ip4save +sed -i "s/COMMIT/-A INPUT -p tcp -m tcp --dport 7777 -j ACCEPT\n-A INPUT -p udp -m udp --dport 7777 -j ACCEPT\nCOMMIT/" /​etc/​systemd/​scripts/​ip4save 
-echo "-A INPUT -p udp -m udp --dport 7777 -j ACCEPT" ​>> ​/​etc/​systemd/​scripts/​ip4save+reboot ​ # And then reconnect the SSH client
  
 tdnf install unzip tmux less tdnf install unzip tmux less
  
-# Download and place the server in /terraria (Check the PC Dedicated Server link at the bottom of https://​terraria.org for the latest server file and change all the 1402 references to the correct version)+# Download and place the server in /terraria (Check the PC Dedicated Server link at the bottom of https://​terraria.org for the latest server file and change all the "1402" ​references to the correct version)
 cd /tmp cd /tmp
 curl --output terraria-server.zip https://​terraria.org/​system/​dedicated_servers/​archives/​000/​000/​036/​original/​terraria-server-1402.zip?​1589675482 curl --output terraria-server.zip https://​terraria.org/​system/​dedicated_servers/​archives/​000/​000/​036/​original/​terraria-server-1402.zip?​1589675482
Line 48: Line 48:
 ## ##
 <esc> :wq <esc> :wq
-</​code>​ 
  
-Run the following to start the server+# Start the server
-<code bash>+
 tmux new -s terraria "/​terraria/​server/​TerrariaServer.bin.x86_64 -config /​terraria/​serverconfig.txt"​ \; pipe-pane -o -t terraria "cat >>/​terraria/​server.log"​ tmux new -s terraria "/​terraria/​server/​TerrariaServer.bin.x86_64 -config /​terraria/​serverconfig.txt"​ \; pipe-pane -o -t terraria "cat >>/​terraria/​server.log"​
 </​code>​ </​code>​
esxi/terraria_server.txt · Last modified: 2020/07/03 18:37 by derek