How to Set Up a TeamSpeak 3 Server(Linux)
If you haven't already done so, download the program "PuTTY"
- Connect to your root server or VPS/vServer via SSH using PuTTY. To do this, open PuTTY and enter the domain or IP address of your server in the text box named "Host Name (or IP address)". Then click the "OK" button below.
- Update your package lists with the command
apt update
. - Now install any available updates of the packages already installed on your server using the command
apt upgrade -y
. - Then add a user who will run the TeamSpeak 3 server. Use the following command:
adduser --disabled-login ts3
. In this example, the user is called "ts3". You can use a different name, but make sure to always use your own chosen username instead of "ts3" when you follow the next steps of this tutorial (e.g. "teamspeak"). - You can skip all further information such as the name, telephone number, etc. by pressing enter as well.
- Now use the command
su ts3
to switch to your TeamSpeak 3 user. - Go to the home directory of this user by executing the command
cd
. The home directory is named exactly like the user himself, so the path is "/home/ts3". - Next, visit the TeamSpeak download page and copy the download link of the TeamSpeak 3 server. To do this, click on the copy icon to the right of the corresponding server version (32-bit or 64-bit) under the headline "Linux". If you have a 64-bit server, which should be the case most of the time, then of course you have use the 64-bit version.
- Now open PuTTY again and enter the command "wget", followed by a space, and then right-click in the PuTTY window. By doing this, you paste the download link and the command should look like this:
wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2
. After that, press enter to start the download. - After the download is completed, you should see the downloaded .tar.bz2 archive using the command
ls
. Extract the archive you just downloaded by executing the command "tar xfvj", followed by a space and the archive name (e.g.tar xfvj teamspeak3-server_linux_amd64-3.13.7.tar.bz2
). - After unpacking the archive, delete it using the command "rm", followed by a space and the archive name (e.g.
rm teamspeak3-server_linux_amd64-3.13.7.tar.bz2
) - Then go to the TeamSpeak 3 directory using the command "cd", followed by a space and the directory name (e.g.
cd teamspeak3-server_linux_amd64
). - In order to be able to start the TeamSpeak 3 server, you must accept the TeamSpeak license terms. To do this, execute the command
touch .ts3server_license_accepted
. This creates a file which indicates that you accepted these license terms. - Now you can execute the start script to start the TeamSpeak 3 server. To do this, use the following command:
./ts3server_startscript.sh start
- You will now see the server admin password and an admin token. Remember or write down the server admin password and copy the admin token. With the admin token you can get admin permissions on your TeamSpeak 3 server within the client. Connect to your TeamSpeak 3 server and click "Permissions" -> "Use Privilege Key" in the top menu of your TeamSpeak 3 client. The server admin password is needed if you, for example, also want to install a TeamSpeak 3 web interface.
- Your TeamSpeak 3 server is now ready to use. You can start and stop it at any time. Just log in as the TeamSpeak 3 user by executing the command
su ts3
, go to the TeamSpeak 3 directory using the commandcd /home/ts3/teamspeak3-server_linux_amd64
and execute the script (./ts3server_startscript.sh start
or./ts3server_startscript.sh stop
).