A few weeks ago I set up a Teamspeak server for me and some friends. I did not want to pay for anything so I decided to throw one on my already existing SVN server. Then I thought I would share the process. My server is running Debian so the process may not match up 100% for other distros. But it should be close.
Setting Up The Teamspeak Server
1. First step is to download the
2. Now we need to make a
sudo useradd -m -s /bin/bash teamspeak
3. Now we unpack the server files and put them in the
4. Make and put this file in /etc/init.d so we can make
#!/bin/sh ### BEGIN INIT INFO # Provides: teamspeak # Required-Start: $local_fs $network # Required-Stop: $local_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Description: Teamspeak 3 Server ### END INIT INFO USER="teamspeak" DIR="/home/teamspeak/teamspeak-server" ###### Teamspeak 3 server start/stop script ###### case "$1" in start) su $USER -c "$DIR/ts3server_startscript.sh start" ;; stop) su $USER -c "$DIR/ts3server_startscript.sh stop" ;; restart) su $USER -c "$DIR/ts3server_startscript.sh restart" ;; status) su $USER -c "$DIR/ts3server_startscript.sh status" ;; *) echo "Usage: " >&2 exit 1 ;; esac exit 0
5. Save and make the file executable
sudo chmod 700 /etc/init.d/teamspeak
sudo update-rc.d teamspeak defaults
7. Now before you do anything else make sure you start the server the first time from the command line so that you can get the random admin password it prints out.
8. Now we make sure the
chown -R teamspeak:teamspeak /home/teamspeak/teamspeak
9. Open up the firewall in
iptables -A INPUT -p udp --dport 9987 -j ACCEPT iptables -A INPUT -p udp --sport 9987 -j ACCEPT iptables -A INPUT -p tcp --dport 30033 -j ACCEPT iptables -A INPUT -p tcp --sport 30033 -j ACCEPT iptables -A INPUT -p tcp --dport 10011 -j ACCEPT iptables -A INPUT -p tcp --sport 10011 -j ACCEPT
10. Make sure you port forward the same ports in your router. I cannot give you a guide on this because every router has a different process for doing this.
11. Now start the service or just reboot and you should be able to connect with the client.
service teamspeak start