Install a TeamSpeak Server on Linode
Updated by Linode Contributed by Scott Somner
Dedicated CPU instances are available!Linode's Dedicated CPU instances are ideal for CPU-intensive workloads like those discussed in this guide. To learn more about Dedicated CPU, read our blog post. To upgrade an existing Linode to a Dedicated CPU instance, review the Resizing a Linode guide.
This guide will show you how to install a TeamSpeak Server on your Linode. TeamSpeak is a voice server or a “virtual intercom” that lets you talk to others online. It’s commonly used for gaming, but people also use it to collaborate with their work groups, hobby projects, or just to chat with friends and family.
Before You Begin
We suggest following the Getting Started and Securing Your Server guides.
Install the TeamSpeak client on your local computer.
While Teamspeak should run on any Linux distribution, the instructions provided here are tested on Ubuntu / Debian.
Install TeamSpeak
Getting the TeamSpeak Download
On your own computer visit teamspeak.com.
From the Downloads menu in the upper right click on TeamSpeak 3.
Under Linux, select Server AMD64
Click the download button.
Read and agree to the license agreement, then click Submit.
On the download page copy the download link; you can quit the automatic download.
Fetch and Extract Teamspeak
Log into your Linode via SSH, and create a new directory:
mkdir teamspeak
Change to the new directory:
cd teamspeak
Download the teamspeak package, replacing the URL with the one copied in the previous section:
wget http://dl.4players.de/ts/releases/3.0.11.3/teamspeak3-server_linux-amd64-3.0.11.3.tar.gz
Extract the package with tar:
tar -xvf teamspeak3-server_linux-amd64-3.0.11.3.tar.gz
Running TeamSpeak
Once TeamSpeak is downloaded, you’re ready to start the server. TeamSpeak comes pre-compiled so no configuration or building is required.
Change to the newly-extracted directory
cd teamspeak3-server_linux-amd64
Run the server startup script
./ts3server_startscript.sh start
Make note of the login name, password, and token that are printed the first time the server is started. You’ll need them when you connect the first time:
------------------------------------------------------------------ I M P O R T A N T ------------------------------------------------------------------ Server Query Admin Account created loginname= "serveradmin", password= "RQkvl+Ip" ------------------------------------------------------------------ ------------------------------------------------------------------ I M P O R T A N T ------------------------------------------------------------------ ServerAdmin privilege key created, please use it to gain serveradmin rights for your virtualserver. please also check the doc/privilegekey_guide.txt for details. token=nfV+rTxhgQRR6m1Nn3royO08Sljeh1Ysm9bZ5JNw ------------------------------------------------------------------
From your computer, open your TeamSpeak client, and open the connect dialog.
Enter the IP address of your Linode or a domain pointed to it, the nickname
serveradmin
and the password as provided.Once the connection is successful the client will ask you for the security token. Copy it from the SSH session and paste it into the dialog box in the client.
Making TeamSpeak Start Automatically
If you want TeamSpeak to automatically start every time your Linode boots, follow these instructions.
Check the server path to your TeamSpeak directory:
pwd
The output should be similar to:
/home/user/teamspeak/teamspeak3-server_linux-amd64
As
root
or withsudo
, create a new file called/etc/init/teamspeak.conf
and insert the following code, replacinguser
with your username and/home/user/teamspeak/teamspeak3-server_linux-amd64/
with the path noted above:- /etc/init/teamspeak.conf
-
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh chdir /home/user/teamspeak/teamspeak3-server_linux-amd64/ respawn setuid user setgid user exec /home/user/teamspeak/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh start on runlevel [2] stop on runlevel [013456]
The next time your Linode reboots TeamSpeak will start automatically.
Firewall Configuration
If you use a firewall the following ports will need to be opened: 9987, 30033, 10011, and 41144. Here’s the commands to open those ports in IPtables. Run each line as a separate command.
iptables -A INPUT -p udp --dport 9987 -j ACCEPT
iptables -A INPUT -p tcp --dport 30033 -j ACCEPT
iptables -A INPUT -p tcp --dport 10011 -j ACCEPT
iptables -A INPUT -p tcp --dport 41144 -j ACCEPT
NoteIf you’ve configured your firewall according to our Securing Your Server guide, you’ll need to add these exceptions to/etc/iptables.firewall.rules
to be reboot-persistent.
More Information
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
Join our Community
Find answers, ask questions, and help others.
This guide is published under a CC BY-ND 4.0 license.