How to install a Teamspeak server on Ubuntu/Debian

  • we create a TeamSpeak server (32 slots)

    To create your TeamSpeak please follow these steps :


    1 Create TeamSpeak user

    Once connected as root you will need to create an user :

    Code
    adduser teamspeak

    Identify yourself as user "teamspeak" :

    Code
    su teamspeak


    2 Teamspeak server install

    Go to teamspeak user directory and download the server (Here the link is for a 64-Bits OS using 3.13.6 teamspeak server version):

    Code
    cd /home/teamspeak
    wget https://files.teamspeak-services.com/releases/server/3.13.6/teamspeak3-server_linux_amd64-3.13.6.tar.bz2

    You can find the download link at this page : Download.

    Exctract the archive, then remove it and go to the server folder :

    Code
    tar xjf teamspeak3-server_linux_amd64-3.13.6.tar.bz2
    rm teamspeak3-server_linux_amd64-3.13.6.tar.bz2
    cd teamspeak3-server_linux_amd64


    3 Generate a configuration file

    To generate a configuration file you have to use :

    Code
    ./ts3server_minimal_runscript.sh createinifile=1

    It will show you the file content where you will be able to find the serveradmin username and password, as well as the Token to use at the first server connection. (Keep these informations, they are really important)

    Press ctrl+c to quit the generation tool.


    4 Start Teamspeak at server startup

    To start your Teamspeak server on the vps start, please follow these steps :

    Code
    crontab -e

    Then press i to edit your text file and add :

    Code
    @reboot cd /home/teamspeak/teamspeak3-server_linux_amd64 ; ./ts3server_startscript.sh start

    Press Escape to quit edition and insert :wq to valid your file editing.

    You also can start your sever manually using this command :

    Code
    ./ts3server_startscript.sh start



    5 Commands

    Here is a list of SSH commands you can use for your TeamSpeak.

    You must be logged as "teamspeak" user.

    First, go to the server folder

    Code
    cd /home/teamspeak/teamspeak3-server_linux_amd6

    Start the server :

    Code
    ./ts3server_startscript.sh start

    Stop the serveur :

    Code
    ./ts3server_startscript.sh stop

    Restart the serveur :

    Code
    ./ts3server_startscript.sh restart

    Get server status :

    Code
    ./ts3server_startscript.sh status

    Edit Server Admin Query password :

    Code
    ./ts3server_startscript.sh start serveradmin_password=NEWPASSWORD

Share