Create Teamspeak User
Create user, set password and become user
useradd ts3 passwd ts3 su ts3 cd /home/ts3
Install Teamspeak
Download Teamspeak 3. Alternatively, you can check for the latest version here
wget http://dl.4players.de/ts/releases/3.0.11.1/teamspeak3-server_linux-amd64-3.0.11.1.tar.gz
Untar and rename
tar -zxvf teamspeak3-server_linux-amd64-3.0.11.1.tar.gz mv teamspeak3-server_linux-amd64 ts3-server rm teamspeak3-server_linux-amd64-3.0.11.1.tar.gz
Configure and Start the Server
Create a configuration file and generate your credentials. Make a note of the Server Query Admin Account and ServerAdmin privilege key
cd /home/ts3/ts3-server ./ts3server_minimal_runscript.sh createinifile=1 nano ts3server.ini
You can configure all of the following settings
machine_id= default_voice_port=9987 voice_ip=0.0.0.0 licensepath= filetransfer_port=30033 filetransfer_ip=0.0.0.0 query_port=10011 query_ip=0.0.0.0 query_ip_whitelist=query_ip_whitelist.txt query_ip_blacklist=query_ip_blacklist.txt dbplugin=ts3db_sqlite3 dbpluginparameter= dbsqlpath=sql/ dbsqlcreatepath=create_sqlite/ dbconnections=10 logpath=logs logquerycommands=0 dbclientkeepdays=30 logappend=0 query_skipbruteforcecheck=0
Start Teamspeak on Boot
Download startup script
wget -O ts3.zip http://addons.teamspeak.com/directory/addon/download/TS3-server-init-d-startup-script.html unzip ts3.zip
Configure the startup script with the following details
nano ts3server
USER=ts3 ROOT_DIRECTORY=/home/ts3/ts3-server
Install script and make Teamspeak start on boot - If the install fails, restart the server and try again
mv ts3server /etc/init.d/ts3server exit chown root:root /etc/init.d/ts3server bash /etc/init.d/ts3server --install chkconfig ts3server on
Configure Firewall
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 service iptables save
Start Teamspeak
Finally, we want to whitelist the IP that you'll be performing server queries from and then start the server
Add your IP (not the server's IP) under localhost
nano /home/ts3/ts3-server/query_ip_whitelist.txt
Start the server
su ts3 /home/ts3/ts3-server/ts3server_startscript.sh start
- Updated