Teamspeak 3 installation script for Debian/Ubuntu

I installed a Teamspeak server today, and because I had a little time and wanted to brush up my bash scripting skills anyway, I coded a Teamspeak 3 server installation script that should work on most Debian systems (such as Ubuntu). Because of possible legal issues I didn’t include the download of the installation files itself in the script, so you’ll have to download those yourself (use either “Server amd64″ or “Server x86″ depending on your system).

After downloading the installation archive (don’t extract), you can execute the following to install your very own Teamspeak 3 server:

wget https://raw.github.com/gist/3730343/39db4465b5f7f97213f015bedb888e74c7db8526/install_teamspeak.sh && \
    chmod +x install_teamspeak.sh && \
    ./install_teamspeak.sh <insert path to installation archive here>

If you’d like to take a look at the script, don’t let me keep you. If you run into any problems, please leave me a comment :)

13 thoughts on “Teamspeak 3 installation script for Debian/Ubuntu

  1. Could it be that you do not have the patch package installed? It is not installed OOTB in Debian Squeeze and I doubt it is in wheezy either.

  2. Hi,

    Just wondering how I should do if I want to uninstall teamspeak and remove all contents after using this install script?

  3. Hello, I’ve installed TS3 with your script, but it does not seem to work… It did install it, it even run it, and listening on ports, but when I try to connect I’m just getting: Failed to connect to server. Any ideas whats going on? Should I do something more than running Your script? In TS3 logs there is nothing special…

    2013-05-08 07:53:52.610896|INFO |ServerLibPriv | | TeamSpeak 3 Server 3.0.7.1 (2013-03-18 10:56:27) 2013-05-08 07:53:52.691959|INFO |DatabaseQuery | | dbPlugin name: SQLite3 plugin, Version 2, (c)TeamSpeak Systems GmbH 2013-05-08 07:53:52.692905|INFO |DatabaseQuery | | dbPlugin version: 3.7.3 2013-05-08 07:53:52.746672|INFO |DatabaseQuery | | checking database integrity (may take a while) 2013-05-08 07:53:52.884097|WARNING |Accounting | | Unable to find valid license key, falling back to limited functionality 2013-05-08 07:53:52.947031|INFO |FileManager | | listening on 0.0.0.0:30033 2013-05-08 07:53:53.312798|INFO |CIDRManager | | updated query_ip_whitelist ips: 127.0.0.1, 217.153.xxx.xxx,. 2013-05-08 07:53:53.314082|INFO |Query | | listening on 0.0.0.0:10011

    Any help would be appreciated, Best regards, FlashT

    • Sorry for the very late reply, but maybe it helps others having the same issue. This sounds a lot like a problem with your firewall. I’d check if you can reach the port on which the server is listening using telnet, and if not check both the firewall rules on your server (iptables?) and on your local machine.

  4. Thanks a lot! It works perfect on Ubuntu server 13.04 – Had the teamspeak server 3 running in a few minutes.

  5. This was incredibly easy! Thank you very much for taking your time to share this. Made everything a lot easier than having to do it manually! :)

  6. Getting:

    ./installts3.sh /tmp/teamspeak3-server_linux-amd64-3.0.10.tar.gz Extracting /tmp/teamspeak3-server_linux-amd64-3.0.10.tar.gz to /tmp/teamspeak/ Moving directory /tmp/teamspeak/teamspeak3-server_linux-amd64/ to /usr/local/teamspeak3/ Patching /usr/local/teamspeak3/ts3server_startscript.sh with LSB tags ./installts3.sh: line 64: patch: command not found Patching the startscript failed :(

    Tried on a couple different builds, same error. Anything up with the patch command?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>