A lot of people use Raspberry Pi as a small, cheap, power-efficient home server. For $35 you can get a mini server for hosting your website or install your Minecraft server. But there are a couple of applications which are not available for and not ported on Raspberry Pi. One of them is TeamSpeak 3 Server – popular communication system that is available on many platforms but not on Raspberry Pi. So I decided to post a step-by-step instruction on how to install TS3 Server on Raspberry Pi 2 and Raspberry Pi 3 and how to automatically run TeamSpeak 3 on system startup.
Step 1: Get, Download and Install ExaGear Desktop Software
Unfortunately Teamspeak 3 Server is not available for Raspberry Pi. However, there is a way out, which will allow you to install and run not only TS3 Server, but many other x86 apps and games on your Raspberry Pi. It's called ExaGear Desktop software. You can get it on the corresponding website.
After you get it, you will receive an email with detailed instructions on how to download the software.
Download the ExaGear Desktop archive with installation packages and license key. Open Terminal (command line) and unpack the downloaded archive using the following command:
$ tar -xvzpf exagear-desktop-rpi3.tar.gz
Then install and activate ExaGear on your Raspberry Pi by running the 'install-exagear.sh' script in the directory with deb packages and one license key:
$ sudo ./install-exagear.sh
Step 2: Launch Guest X86 System
Enter the guest x86 system using the following command:
Starting the shell in the guest image /opt/exagear/images/debian-8
Make sure that you are in x86 environment by running the ‘arch’ command:
$ arch <p>i686</p>
It is recommended to update apt-get repositories on the first launch of the guest system:
$ sudo apt-get update
$ sudo apt-get install bzip2
Step 3: Install TeamSpeak 3 Server
The TeamSpeak Server should not run as root user for security reason. Therefore create a new user:
$ sudo adduser teamspeak
Enter new UNIX password: teamspeak
$ sudo passwd teamspeak
Then create installation directory and set permissions:
$ sudo mkdir /usr/local/teamspeak
$ sudo chown teamspeak /usr/local/teamspeak
Login as teamspeak user:
$ su teamspeak
Download TeamSpeak 3 Server for Linux 32-bit and unpack it:
$ cd /usr/local/teamspeak
$ wget http://dl.4players.de/ts/releases/220.127.116.11/teamspeak3-server_linux_x86-18.104.22.168.tar.bz2
$ tar -xjvf teamspeak3-server_linux_x86-22.214.171.124.tar.bz2
$ rm teamspeak3-server_linux_x86-126.96.36.199.tar.bz2
I provide the download link for the latest version at the time of writing (188.8.131.52), but you might want to replace it with the newer one that you can find here http://www.teamspeak.com/downloads in the Server tab.
Step 4: Run TeamSpeak 3 Server
Start the Server using the following command:
Now your TeamSpeak 3 Server is up and running. Highlighted credentials are required for connecting to the server via TeamSpeak 3 Client.
Press CTRL+C and then start the Server in the background using the following command:
$ /usr/local/teamspeak/teamspeak3-server_linux_x86/ts3server_startscript.sh start
Starting the TeamSpeak 3 server
TeamSpeak 3 server started, for details please view the log file
Now TeamSpeak 3 Server is running in the background and won’t be killed after logout from the Terminal. Go ahead and connect to it via TeamSpeak 3 client.
Step 5: Run TeamSpeak 3 Server Automatically on System Startup
Please note that the instruction above enables TeamSpeak 3 Server running, but you will need to start it manually each time after system reboot.
Although TeamSpeak 3 Server is installed inside the x86 environment, its startup script should run automatically on the host ARM system right after system startup. We have prepared the startup script and instruction for you so just follow the steps below:
1. Open Terminal (command line) and check that you are in ARM environment:
2. Download the file teamspeak3:
$ wget http://s3-us-west-2.amazonaws.com/exagear-ts3-3.0.13/teamspeak3
Move the file to /etc/init.d directory and make it executable:
$ sudo mv teamspeak3 /etc/init.d
$ sudo chmod 755 /etc/init.d/teamspeak3
3. Define the file as a startup script:
$ sudo update-rc.d teamspeak3 defaults
This is it. The next time you reboot the TeamSpeak 3 Server will start automatically.