In this article, we will show you how to install TeamSpeak 3 server for the most common operating systems.

TeamSpeak 3 on Windows

In the Windows operating system, the installation and configuration of the TeamSpeak 3 server is very simple. First you need to download the TeamSpeak 3 server program for the Windows operating system, unzip the archive into any convenient directory.

Next, open the folder with the extracted TS3 server files and run the ts3server.exe installer. After the launch, first of all, a licensing agreement will be provided for review, which must be accepted, you may also receive a request whether the firewall should allow this program to work.

After that, the privilege key will be displayed, which must be saved for future connections.

After the installer has done, the next step is connecting to the server. If you need to know the information about your IP that you need to use to connect, open a command prompt and enter the following command:

ipconfig

Find the value of your IPv4 address. You will need to use it when connecting.

When connecting, you must insert the privilege key in the field to obtain administrator rights. After that, you have successfully created a TeamSpeak 3 server and connected to it!

TeamSpeak 3 on Ubuntu OS

In this part, we will look at how to configure TeamSpeak 3 server on a server running Ubuntu 16.04. First you need to connect to your server via ssh and check if the system is updated. This can be done with the following command:

apt-get update && apt-get upgrade

After a successful update, you need to add a new user by running the following command:

adduser —disabled-login teamspeak

You will be asked for personal data about the user and confirmation that they are entered correctly. It is important to note that also, if desired, all fields can be left empty.

Then you need to go into the new user directory and download the latest current version of TeamSpeak 3 server software for LinuxOS, using for example the wget command:

cd / home / teamspeak

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

Once the download is complete, you need to unzip the files:

tar xvf teamspeak3-server_linux_amd64-3.12.1.tar.bz2

All content will appear in the teamspeak3-server_linux_amd64 directory. Now move everything to the / home / teamspeak directory and delete the downloaded archive:

cd teamspeak3-server_linux_amd64 && mv * / home / teamspeak && cd .. && rm -rf teamspeak3-server_linux_amd64-3.12.1.tar.bz2

Run the ls command to make sure that all the files necessary for the server to work were successfully unpacked and transferred:

For TeamSpeak 3 version 3.1.0 and higher, you must accept the license agreement and the easiest way to do this is to use the following combination:

touch /home/teamspeak/.ts3server_license_accepted

This command will create an empty file called .ts3server_license_accepted, which will act as a license agreement.

Now you need to install TeamSpeak 3 server in your server boot. To do this, you need to create a file called teamspeak.service in the / lib / systemd / system directory:

sudo nano /lib/systemd/system/teamspeak.service

Paste the following contents into this file:

[Service]

WorkingDirectory=/home/teamspeak/

User=teamspeak

Group=teamspeak

Type=forking

ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini

ExecStop=/home/teamspeak/ts3server_startscript.sh stop

PIDFile=/home/teamspeak/ts3server.pid

RestartSec=15

Restart=always

[Install]

WantedBy=multi-user.target

After that, you need to start the TS3 service:

systemctl enable teamspeak.service

systemctl start teamspeak.service

Now you can check whether the startup script is working and what server status is working:

systemctl | grep teamspeak.service

service teamspeak status

If everything works correctly, then the picture will be as follows:

After the TeamSpeak 3 server has been started, you need to add the privilege key. You will need to paste it when first time you connect to the server. You can view it with the following command:

cat / home / teamspeak / logs / ts3server_ *

After that, you have successfully connected to the TS3 server, which runs on Ubuntu 16.04.

TeamSpeak 3 Server on CentOS 7

Setting up a TeamSpeak 3 server on a server running CentOS 7 is a pretty similar procedure to setting up Ubuntu 16.04. After accessing the server via SSH and updating the system:

yum -y update

You need to create a new user TeamSpeak 3 server by running the command:

adduser teamspeak

Now you need to go to the new user’s home directory:

cd / home / teamspeak

In this directory you need to download the installation of the TeamSpeak 3 server program, in addition, you may need to install wget and bzip2.

After downloading, you will need to unzip the archive and transfer it to the user folder, while deleting the installation file:

cd teamspeak3-server_linux_amd64 && mv * / home / teamspeak && cd .. && rm -rf teamspeak3-server_linux_amd64-3.12.1.tar.bz2

After downloading all the files, TeamSpeak 3 requires you to accept the license agreement. We offer a simple way to create an empty file that will be responsible for accepting the license:

touch /home/teamspeak/.ts3server_license_accepted

After that, you need to turn on the TeamSpeak 3 server and add it to startup.

Create a server startup file, which should contain the following script:

sudo nano /lib/systemd/system/teamspeak.service

[Service]

WorkingDirectory=/home/teamspeak/

User=teamspeak

Group=teamspeak

Type=forking

ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini

ExecStop=/home/teamspeak/ts3server_startscript.sh stop

PIDFile=/home/teamspeak/ts3server.pid

RestartSec=15

Restart=always

[Install]

WantedBy=multi-user.target

After saving the startup file, you need to add TeamSpeak 3 to startup and start using the following commands:

systemctl enable teamspeak.service

systemctl start teamspeak.service

After that, you can check whether everything started successfully:

systemctl | grep teamspeak.service

service teamspeak status

The last thing to do for configuration is to copy the TeamSpeak 3 server token, the privilege key. You can get it by running this command:

cat / home / teamspeak / logs / ts3server_ *

After that, you can use the server for connections.

Establish a new connection using the TeamSpeak 3 client and enter the dedicated server IP address in the Server Nickname or Address field. If you do not know your IP address of the server, you can use the ip a or ifconfig commands.

Tagged: