Methods of payment Abuse

TeamSpeak server installation and configuration on Ubuntu 24.04: detailed guide

  • Main
  • Knowledge base
  • TeamSpeak server installation and configuration on Ubuntu 24.04: detailed guide
08.10.2024, 20:38

TeamSpeak is a popular voice and text communication software that is widely used in gamer communities and other collectives. This closed VOIP application allows users to communicate in a single chat room using voice channels. TeamSpeak is known for features such as mobile connectivity, advanced permissions system, high sound quality and others. TeamSpeak server and client can be installed on various operating systems such as Linux, FreeBSD, macOS and Windows (32- and 64-bit versions).

Requirements

Step 1: Login to the server via SSH

First, you need to connect to your server via SSH under the root user. Run the following command, replacing IP_Address with the IP address of your server and Port_number with the SSH port number:

ssh root@IP_Address -p Port_number

To make sure you have the correct version of Ubuntu installed, run the command:

lsb_release -a

Expected Result:

Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:      noble

Step 2: Create a new user

Now let's create a new system user to run the TeamSpeak server. Type the command:

useradd -mrd /opt/teamspeak teamspeak -s "$(which bash)"

This command will create the directory /opt/teamspeak, which will be the home directory for the teamspeak user. We will use it to install the server.

Step 3: Download and install TeamSpeak server

Type the command:

apt install bzip2

Change the user to the newly created teamspeak user and download the server:

su - teamspeak
wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2 -O teamspeak-server.tar.bz2

Unpack the archive:

tar xvfj teamspeak-server.tar.bz2 --strip-components 1

Now you need to accept the license agreement. Create an empty file:

touch ~/.ts3server_license_accepted

After that, log out of the teamspeak user:

exit

Step 4: Create a system service

To manage the TeamSpeak server, let's create a system service. Open the editor to create a service file:

nano /etc/systemd/system/teamspeak.service

Add the following code:

[Unit]
Description=Teamspeak Service
Wants=network.target

[Service]
WorkingDirectory=/opt/teamspeak
User=teamspeak
ExecStart=/opt/teamspeak/ts3server_minimal_runscript.sh
ExecStop=/opt/teamspeak/ts3server_startscript.sh stop
ExecReload=/opt/teamspeak/ts3server_startscript.sh restart
Restart=always
RestartSec=15

[Install]
WantedBy=multi-user.target

Save the file and exit the editor. Apply the changes with the command:

systemctl daemon-reload

Activate the service to run at system startup and start it now:

systemctl enable --now teamspeak

To check the status of the server, use the command:

systemctl status teamspeak

Step 5: Set the administrator password

Let's stop the server:

systemctl stop teamspeak.service

Now let's start the server with the administrator password:

su - teamspeak
./ts3server_startscript.sh start serveradmin_password=YourPass

After setting the password, stop the TeamSpeak service:

./ts3server_startscript.sh stop

Next, exit by typing:

exit

Start the TeamSpeak service:

systemctl start teamspeak.service

Step 6: Connect to the TeamSpeak server

Download and install the TeamSpeak client on your computer. At startup, enter the IP address of your server and the password you created in the previous step. After connecting, enter the token that was created when starting the service. This token can be found using the command executed on the server:

grep -i token /opt/teamspeak/logs/*

Important: Save this token, it is required for the administrator to connect to the server!

Conclusion

Now TeamSpeak server is installed and running on your Ubuntu 24.04 server.