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 https://www.teamspeak.com/en/downloads/#server and copy the download link for either 64-bit or 32-bit version of the Linux Server code
  7. Run wget https://files.teamspeak-services.com/releases/server/3.9.0/teamspeak3-server_linux_amd64-3.9.0.tar.bz2 (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 ./ts3server_startscript.sh 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
### BEGIN INIT INFO
# 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
### END INIT INFO

set -e

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="TeamSpeak 3 Server"
NAME=teamspeak3-server
USER=teamspeak3
DIR=/opt/teamspeak3-server
DAEMON=$DIR/ts3server_startscript.sh
#PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

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

sleep 2
sudo -u $USER $DAEMON $1 $OPTIONS
  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!