NAS

Teamspeak3 on BananaPi

1 6196
Hello,

i've created a tutorial for all of those who want to install a TS3-Server on a BananaPi (and probably other ARM-Devices) using Lubuntu and Exagear Desktop:
(BTW: Any tipps for layouting this? I've created this in a Office-Document and copy&paste is messing this up, actually :/

Installing Teamspeak3-Server on BananaPi:
(and most likely other (supported) ARM-Devices)

Requirements:
BananaPi with Lubuntu
Exagear Desktop (http://eltechs.com/product/exagear-desktop/ - about 30,-$)

Installing Lubuntu
First of all, you have to install Lubuntu on your BananaPI, to do so, download the image of the OS directly from LeMaker.org and install it with Win32DiskImager (Windows) or with dd (Unix).


Sometimes, you have to make the upcoming scripts executeable (if there is an error on first execution), do this by:

sudo chmod +x <FILE>

When finished, boot up your device and configure it for your needs. In this tutorial i only changed the hostname.

Download Exagear Desktop, unpack it and copy the licence key into the folder of your Exagear Install-Folder.
Run the Install-Script with elevated privileges:
sudo ./install-exagear.sh

This may take a while and install the guest-System onto your host.
When finished, start Exagear with
exagear

Create a new user (you dont want to run the Teamspeak-Server with root privileges)
Users are shared in Host and Guest – see manual for more information, thats the reason we dont have to create another user on the Host later

To add a user, type the following:.
sudo adduser teamspeak
and
sudo passwd teamspeak

The first line will create the Teamspeak User, the second one will prompt you for a password for the new account.

Now create the folder where teamspeak will be installed and give the user teamspeak some rights for it, for example
mkdir /usr/local/teamspeak
chown teamspeak /usr/local/teamspeak

Login as teamspeak and download the Server-Version of Teamspeak (his may vary, check the path to the file on the Teamspeak Download-Page) and unpack it:
su teamspeak
cd /usr/local/teamspeak
wget http://dl.4players.de/ts/releases/3.0.1 ... 1.3.tar.gz
tar –xzvf teamspeak3-server_linux-x86-3.0.11.3.tar.gz
rm teamspeak3-server_linux-x86-3.0.11.3.tar.gz


Let’s start the Server, using the following command:
sudo /usr/local/teamspeak/teamspeak3-server_linux-x86/ts3server_minimal_runscript.sh
This takes some time now.
Important: DON’T forget to copy the output oft he runscript, yourAdmin-Account and also the token for the Admin-Rights is listed in there!

Now you can already connect to your server and configure it to your needs, but keep in mind that the starting of the server may take some time (be patient – i reinstalled my system once because i thought i messed something up ;))
Probably you want to run the server without being logged in, so you have to start the Background Service of it:
Strg+C
and
sudo /usr/local/teamspeak/teamspeak3-server_linux-x86/ts3server_startscript.sh start

After a while, your server should be back up and running. You probably also want to run the server on startup, to do so follow these steps (these onces are a bit tricky because you want to start it on booting up IN YOUR HOST and not the installed (Exagear)guest).

Exit your Exagear-Session by typing
exit

I had to type it a few times because i changed the user-sessions via su, so make sure you are really working in your Host-System (otherwise you wont find the /opt/exagear/….. path anyway)

Create a new file with
sudo vi /etc/init.d/teamspeak3

and insert the following text:
  1. #!/bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:       teamspeak3
  4. # Required-Start:    $local_fs $network
  5. # Required-Stop:   $local_fs $network
  6. # Default-Start:    2 3 4 5
  7. # Default-Stop:    0 1 6
  8. # Description:       Teamspeak 3 Server
  9. ### END INIT INFO
  10. # INIT Script by http://www.SysADMINsLife.com
  11. ######################################
  12. # Customize values for your needs: "User"; "DIR"
  13. USER="teamspeak"
  14. DIR="/opt/exagear/images/ubuntu-1204lts/usr/local/teamspeak/teamspeak3-server_linux-x86"
  15. ###### Teamspeak 3 server start/stop script ######
  16. case "$1" in
  17. start)
  18. su $USER -c "${DIR}/ts3server_startscript.sh start"
  19. ;;
  20. stop)
  21. su $USER -c "${DIR}/ts3server_startscript.sh stop"
  22. ;;
  23. restart)
  24. su $USER -c "${DIR}/ts3server_startscript.sh restart"
  25. ;;
  26. status)
  27. su $USER -c "${DIR}/ts3server_startscript.sh status"
  28. ;;
  29. *)
  30. echo "Usage: {start|stop|restart|status}" >&2
  31. exit 1
  32. ;;
  33. esac
  34. exit 0
Copy the Code
Make sure your USER is set to „teamspeak“ and your DIR refers to
„/opt/exagear/images/ubuntu-1204lts/usr/local/teamspeak/teamspeak3-server_linux-x86“

Make the script executable
sudo chmod 755 /etc/init.d/teamspeak

Now, we can make the Script run automatically:
sudo update-rc.d teamspeak3 defaults

Thats it! – The TS3 Server should start up automatically after reboot.



Source:
All the credits goes to „Patrick Shoyswohl“ from http://www.sysadminslife.com for creating the german tutorial and especially his startup script where i made some changes for Exagear, here are the (german) Articles i used to create this How-To:
http://www.sysadminslife.com/linux/ubun ... ntu-linux/
http://www.sysadminslife.com/linux/team ... ntu-linux/
__
Also a thank you to "Chrimi8" for some hints
Edited by Fernandez at Jan 19, 2018 17:12

I install a TS3-Server on a BananaPi but i don't know that how to install it. I am working in company and there my profession is a website designer. Right now I am making https://www.paperwritingpro.com/our-services/proofreading-services/ website for my client/ and in this work I need BananaPi everyday. I got problem in my laptop and because of that i have lost my BananaPi. Before my friend has been installed it for me but now he is out of town and i want it urgently, so i was learning myself that how to install TS3-Server on a BananaPi.

You have to log in before you can reply Login | Sign Up

Points Rules