|
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:- #!/bin/sh
- ### BEGIN INIT INFO
- # Provides: teamspeak3
- # 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
- # INIT Script by http://www.SysADMINsLife.com
- ######################################
- # Customize values for your needs: "User"; "DIR"
- USER="teamspeak"
- DIR="/opt/exagear/images/ubuntu-1204lts/usr/local/teamspeak/teamspeak3-server_linux-x86"
- ###### 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: {start|stop|restart|status}" >&2
- exit 1
- ;;
- esac
- 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  |
|