Before We Begin
Please note: This article assumes basic Linux knowledge, shell usage familiarity, and access to a VPS for site hosting. While the installation process is straightforward, root account usage is necessary. If you’re not operating from the root account, add ‘sudo’ before your commands to gain root privileges.
Preparing for Installation
Make sure you have the following before starting the installation:
- A server operating Fedora 39. A fresh OS installation is recommended to prevent potential issues.
- Access to the terminal for command execution. The Terminal application is available in your Applications menu.
- A network or internet connection for downloading the TeamSpeak repository.
- A non-root sudo user or root user access. We advise using a non-root sudo user for system protection.
Installing TeamSpeak on Fedora 39
Step 1: System Preparation
Start by updating your Fedora system and installing necessary dependencies. Use the following commands:
sudo dnf clean all sudo dnf update
Step 2: Dependency Installation
For security, TeamSpeak should run under a dedicated user. This minimizes potential system impact in case of vulnerabilities. Install the required dependencies with:
sudo dnf install nano wget perl tar net-tools bzip2
Step 3: Creating a Dedicated User
Create a dedicated user account for running TeamSpeak:
sudo adduser teamspeak -d /opt/teamspeak
This command creates a new user named ‘teamspeak’ and sets ‘/opt/teamspeak’ as the home directory.
Step 4: TeamSpeak Installation
To install TeamSpeak, first download the server version from the official website. The command below downloads version 3.13.7:
wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2
Next, extract the downloaded archive and move TeamSpeak files to the dedicated directory:
tar -xvjf teamspeak3-server_linux_amd64-3.13.7.tar.bz2 mv teamspeak3-server_linux_amd64/* /opt/teamspeak/ chown -R teamspeak: /opt/teamspeak
Finally, create a file to indicate acceptance of the TeamSpeak license agreement:
touch /opt/teamspeak/.ts3server_license_accepted
Step 5: Creating a Systemd Service File
A systemd service file simplifies TeamSpeak service management. Create this file using:
nano /lib/systemd/system/teamspeak.service
Add the following configurations:
[Unit] Description=Team Speak 3 Server After=network.target [Service] WorkingDirectory=/opt/teamspeak/ User=teamspeak Group=teamspeak ExecStart=/opt/teamspeak/ts3server [Install] WantedBy=multi-user.target
Reload the systemd daemon, start TeamSpeak, and enable it to start at boot:
sudo systemctl --system daemon-reload sudo systemctl start teamspeak sudo systemctl enable teamspeak
Check TeamSpeak’s status with:
sudo systemctl status teamspeak
Step 6: Firewall Configuration
Lastly, allow TeamSpeak server ports through the firewall:
firewall-cmd --zone=public --add-port=9987/udp --permanent firewall-cmd --zone=public --add-port=10011/tcp --permanent firewall-cmd --reload
These commands open TeamSpeak’s default voice (UDP 9987) and server query (TCP 10011) ports.
Congratulations! You’ve successfully installed TeamSpeak on Fedora 39. For further information, visit the official TeamSpeak website.
If you’re short on time or lack expertise in VPS management, consider using the Shape.host services. They offer Linux SSD VPS, providing an excellent solution for efficient, scalable, and secure cloud hosting.