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
Next revision
Previous revision
esxi:terraria_server [2020/07/02 14:20]
derek
esxi:terraria_server [2024/09/22 19:51] (current)
Line 10: Line 10:
   * Memory: 2GB   * Memory: 2GB
  
-{{page>esxi:photon_os#Setup}}+{{page>esxi:photon_os#Setup&noheader}}
  
 ===Install Terraria Server:=== ===Install Terraria Server:===
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 "1402references 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>
Line 74: Line 72:
  
 ====Update==== ====Update====
-{{page>esxi:photon_os#Update}}+{{page>esxi:photon_os#Update&noheader}}
  
   * 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 and link   * 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 and link
esxi/terraria_server.1593699628.txt.gz · Last modified: 2024/09/22 19:51 (external edit)