
Teamspeak server is a popular voice and chat communication software among online game users and other communities. It is a proprietary VOIP application for voice communication between users on a chat channel.
It offers some features like mobile connectivity, an advanced permission system, perfect voice quality, etc. Both Teamspeak server and client can be installed on multiple operating systems like Linux, FreeBSD, MacOS, and Windows in both 32 and 64-bit. In this article, we will show you how to install the Teamspeak server on Ubuntu 22.04.
Table of Contents
Prerequisites
- An Ubuntu VPS
- Root access or regular system user with sudo privileges
Step 1. Log in to your server via SSH
First, you will need to log in to your AlmaLinux 8 VPS via SSH as the root user:
You will need to substitute the ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Additionally, replace ‘root’ with the username of the system user with sudo privileges.
You can check whether you have the proper AlmaLinux version installed on your server with the following command:
It will return an output like this.
Step 2. Create User
In this step, we are going to create a new system user to run the TeamSpeak server. Let’s execute the command below, you can substitute ‘teamspeak’ with any username you like.
The command above will automatically create the directory /opt/teamspeak as the home directory for user ‘teamspeak’. We will use this directory for installation purposes.
Step 3. Download and Install Teamspeak Server
We created a new user to run the Teamspeak server in the last step, Now let’s switch to that account and download the Teamspreak server.
For a more recent version of the server, you can check the Teamspeak download page and make sure to download the 64bit version for Linux.
Once downloaded, we can extract the file.
The command above will extract all contents directly in the path where we execute the command, /opt/teamspeak.
Now, let’s accept the license agreement by creating a blank file.
Once created, let’s logout from user ‘teamspeak’
Step 4. Create Systemd Service File
We need to create a systemd service file to manage our Teamspeak service. Let’s create a systemd service file for Teamspeak.
Paste the following into the systemd service file, then save it.
Save the file, exit from nano editor then reload systemd for changes to take effect.
Now, let’s enable Teamspeak to run on boot and run the service now.
The command above will return an output like this:
At this point, the Teamspeak server should be up and running, and it will automatically run on boot. To verify, run this command:
You will see an output similar to this
Please make a note of the token shown there. You will need it to connect from the Teamspeak client for the first time.
The token key is unique; you will see your own token key.
Step 5. Create Admin Password
In this step, we will need to set an admin password for TeamSpeak. We need this password to connect from a Teamspeak client.
First, stop the TeamSpeak service with the following command:
Then, let’s switch to user ‘teamspeak’ and start the TeamSpeak service by passing the password parameter:
Next, we also need to whitelist your Teamspeak server and client IP addresses. Let’s add your server IP and client IP to the TeamSpeak allowlist file:
Add the IPs, one IP per line.
Step 6. Connect to Teamspeak Server
In this step, we can download a Teamspeak client for our desktop machine. Please go to their download page and download the correct installation file that suits your desktop operating system.
Once downloaded and installed, you will be asked to create a nickname
Then you need to input your Teamspeak server IP address and its password; the password is the one we created earlier.
Click Connect to connect to the Teamspeak server
Then, you will be prompted for the privilege/token key. It is the key we mentioned earlier when running the systemctl status teamspeak. You can also find this token key by running this command.
Click OK to proceed.
That’s it; you are successfully connected to your Teamspeak server. After connecting to the Teamspeak server, you can stop it and use the systemd service to manage the service.
Finally, run the Teamspeak server using the systemd service file
Congratulation! You followed this article, and now you have successfully installed the Teamspeak server on your Ubuntu 22.04 machine.
Of course, you don’t have to spend your time and follow this article to install the Teamspeak server on Ubuntu 22.04 if you have an active Ubuntu VPS Hosting service with us, in which case you can simply ask our expert Linux admins to install the Teamspeak server for you. Our admins are available 24×7 and will respond to your request immediately.
PS. If you liked this post on how to install the TeamSpeak server on Ubuntu 22.04, please share it with your friends on social networks or simply leave a reply below. Thanks.