How to Make a TeamSpeak Server
Create a New System User
$ adduser --disabled-login teamspeak
$ sudo su teamspeak
$ cd /home/teamspeak
Download and Extract TeamSpeak 3 Server
Use the download link to get the latest TeamSpeak server software.
$ wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2
$ tar xvf teamspeak3-server_linux_amd64-3.13.7.tar.bz2
$ rm teamspeak3-server_linux_amd64-3.13.7.tar.bz2
Accept the TeamSpeak 3 License Agreement
Make sure you are in the teamspeak3-serverlinuxamd64 directory first and:
$ touch .ts3server_license_accepted
Start the TeamSpeak Server on Startup
$ sudo nano /lib/systemd/system/teamspeak.service
Here’s an example of what the file should consist of:
[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/teamspeak3-server_linux_amd64
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target
$ systemctl enable teamspeak.service
$ systemctl start teamspeak.service
$ systemctl | grep teamspeak.service
$ service teamspeak status
Retrieve the Privilege Key
$ sudo su teamspeak
$ cat /home/teamspeak/teamspeak3-server_linux_amd64/logs/ts3server_*
Find the ServerAdmin line and copy the token. It will look something like this:
ServerAdmin privilege key created, please use the line below
token=ZyQqAIGrZyQqAIGrZyQqAIGrZyQqAIGrZyQqAIGr
Connect via the TeamSpeak Client
The last step is to connect to the newly created TS3 server and apply the privilege key. Use the server address of your dedicated VPS when connecting. You will be immediately prompted to enter the server admin token.
Great work – you have successfully created and connected to a TeamSpeak server on Ubuntu.