How to setup a Teamspeak 3 Server under Debian 9

From steamWiki
Jump to: navigation, search

Teamspeak 3 is a Server/Client program that delivers voice chat functionality (and secondarily text chat functionality) over a TCP/IP connection. Teamspeak is proprietary software, but for small groups (up to 32 people) you can host your own server for free. This article will show you how to setup a Teamspeak 3 server on a Debian 9 system.

Setup the Server

  1. Log in to your Debian 9 machine as a sudo capable user
  2. Run sudo apt update
  3. Run sudo apt upgrade
  4. Run sudo adduser teamspeak3 to create a dedicated user to run your Teamspeak Server instance
  5. Run cd ~ to ensure you're in your home directory
  6. Visit and copy the download link for either 64-bit or 32-bit version of the Linux Server code
  7. Run wget (replacing the download link with what you just copied
  8. Run tar xfvj teamspeak3-server_linux_*.tar.bz2
  9. Run sudo mv teamspeak3-server_linux_amd64 /opt/teamspeak3-server/
  10. Run sudo chown -R teamspeak3:teamspeak3 teamspeak3-server/
  11. Run su teamspeak3
  12. Run cd /opt/teampspeak3-server
  13. Run touch .ts3server_license_accepted
  14. Run ./ start
    • You'll need the token to give yourself admin privileges the first time you log into the server
    1. Highlight and copy the text that is printed to your console showing the loginname, password, and token
    2. Hit Enter
  15. Run nano /home/teamspeak3/ts3_admin_info.txt and paste in what you just copied down (just in case)
  16. Run exit to get back to your sudo user
  17. Run sudo nano /etc/init.d/ts3 and fill the file with the following
# Provides:          ts3
# Required-Start:    $network mysql
# Required-Stop:     $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: TeamSpeak3 Server Daemon
# Description:       Starts/Stops/Restarts the TeamSpeak Server Daemon

set -e

DESC="TeamSpeak 3 Server"

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

sleep 2
  1. Run sudo chmod +x /etc/init.d/ts3
  2. Run sudo update-rc.d ts3 defaults

Log In To The Server and Finish Setup

  • Ideally this is done on another machine with a GUI
  • Make sure you have the Teamspeak 3 Client installed
  1. Run your teamspeak 3 client
  2. Click Connections and Connect
  3. Enter the hostname or IP address of your server
  4. Click Connect
  5. You will be prompted for an Privilege Token. Enter the number that you saved in /home/teamspeak3/ts3_admin_info.txt on the server machine

Now you can configure the name, welcome message, permissions, rooms, etc of your new Teamspeak 3 server from the Client GUI!