How To Install TeamSpeak to Your Ubuntu VPS

TeamSpeak is a proprietary, cross-platform Voice over Internet Protocol (VoIP) software widely used by the gaming and tech communities. A description will now be provided of how it will be possible to install a TeamSpeak server on your VPS using Ubuntu 20.04. Before you install TeamSpeak, you must create a separate user to run the server. In this tutorial “user_for_teamspeak” is the username, you can choose any username you want. Please follow the following links.

adduser --disabled-login user_for_teamspeak

Then switch to this user to make certain manipulations and changes. This can be done like this:

su user_for_teamspeak

Before you click on the link below, check the official TeamSpeak website for versions and updates. If it does not match, change the number in the version number of this utility.

Now is using the last version – 3.5.6

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

After successfully installation, unpack the downloaded archive.

tar xvfj teamspeak3-server_linux_amd64-*.tar.bz2

Copy all contents from the extracted directory to the teampeak user’s home directory.

cp teamspeak3-server_linux_amd64/* -R /home/user_for_teamspeak/

The download file isn’t required from now. It means, that you can delete it.

teamspeak3-server_linux_amd64-*.tar.bz2

Then you need to accept the license agreement. You will be able to create a special file

/home/user_for_teamspeak/.ts3server_license_accepted

Log out of the user’s TeamSpeak session. You can use the following command:

exit

Then, after successfully log out, you can create a systemd service file to start Teamspeak on boot.

nano /lib/systemd/system/ts3server.service

Then you need to add the following text. After adding, you need to save it

[Unit]
Description=TeamSpeak 3 Server
After=network.target

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

[Install]
WantedBy=multi-user.target

Then please restart systemd system

systemctl daemon-reload

Launch and enable your installed TeamSpeak utilite to start on boot.

systemctl start ts3server
systemctl enable ts3server

Then you’ll be able to switch to user teampeak

su user_for_teamspeak

The last step is to get the ServerAdmin privilege key needed to connect to the server for the first time

/home/user_for_teamspeak/logs/ts3server_*

To download, also you can use this link

Was this article helpful?

Related Articles

Leave A Comment?