How to setup a Teamspeak 3 Server under Debian 9
From steamWiki
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
- Log in to your Debian 9 machine as a sudo capable user
- Run sudo apt update
- Run sudo apt upgrade
- Run sudo adduser teamspeak3 to create a dedicated user to run your Teamspeak Server instance
- Run cd ~ to ensure you're in your home directory
- 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
- 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)
- Run tar xfvj teamspeak3-server_linux_*.tar.bz2
- Run sudo mv teamspeak3-server_linux_amd64 /opt/teamspeak3-server/
- Run sudo chown -R teamspeak3:teamspeak3 /opt/teamspeak3-server/
- Run su teamspeak3
- Run cd /opt/teampspeak3-server
- Run touch .ts3server_license_accepted
- Run ./ts3server_startscript.sh start
- You'll need the token to give yourself admin privileges the first time you log into the server
- Highlight and copy the text that is printed to your console showing the loginname, password, and token
- Hit Enter
- Run nano /home/teamspeak3/ts3_admin_info.txt and paste in what you just copied down (just in case)
- Run exit to get back to your sudo user
- 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
- Run sudo chmod +x /etc/init.d/ts3
- 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
- Run your teamspeak 3 client
- Click Connections and Connect
- Enter the hostname or IP address of your server
- Click Connect
- 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!
- A lot of this How To was created based on https://unixblogger.com/setup-a-teamspeak-3-server-on-linux-ubuntu-debian/