In this post, I will guide you on how to install a Terraria server on a Linux server running Debian or Ubuntu. if you are looking for a place to buy server then check this website Linode starts with $100 free credits.
Table of Contents:
- Step 1: Update Your System
- Step 2: Install Dependencies
- Step 3: Download the Terraria Server Files
- Step 4: Unzip the Server Files
- Step 5: Run the Server on Screen
- Step 6: Detach from Screen Session
- Step 7: Reattach to Screen Session
- Step 8: Connect to the Terraria Server
Step 1: Update Your System
Update your system’s packages:
sudo apt update sudo apt upgrade
Step 2: Install Dependencies
The screen allows you to run multiple terminal sessions within a single window. It is useful for running background processes like game servers. install Screen and unzip:
sudo apt-get install screen unzip
Step 3: Download the Terraria Server Files
Download the latest version of the Terraria server files:
you can find the release versions here https://terraria.fandom.com/wiki/Server#Downloads
Step 4: Unzip the Server Files
Unzip the server files:
Step 5: Run the Server on Screen
Navigate to the Terraria server directory:
Start a new Screen session using the following command:
screen -S terraria
Start the Terraria server on the Screen session:
Note: If you encounter a permission denied error, run the following command to make the server executable:
chmod +x TerrariaServer.bin.x86_64
Configure your server settings by following the on-screen prompts. You will be asked to set the server name, server password, maximum number of players, world size, and difficulty level.
Step 6: Detach from Screen Session
To detach from the Screen session and leave the server running in the background, press the following key combination:
CTRL + A, D
This will detach you from the Screen session.
Step 7: Reattach to Screen Session
To reattach to the Screen session and view the Terraria server console output:
screen -r terraria
This will reattach you to the Screen session named terraria and show you the Terraria server console.
Step 8: Connect to the Terraria Server
Now that you have successfully installed the Terraria server, you can connect to it using the Terraria game client. Simply launch the game client and click on the “Join via IP” button. Enter the IP address of your server and the port number that the server is running on (by default, this is 7777), and click “Join”. You should now be connected to your Terraria server!
By following these steps, you should now have a fully functional Terraria server that you can enjoy with friends and other players from around the world. If you have any questions leave a comment and share this post with your friends.