If you are new to Linux and/or wish to have everything installed for you in a more convenient way, we encourage you to use the Installer Script.
|SinusBot Version||TS3 Version||Linux Kernel Version|
|1.0.0-beta5, 1.0.0-beta4, 1.0.0-beta3||3.3||3.17+|
Let's start by installing several dependencies:
TS3.3+ requires at least a Linux Kernel of version 3.17 or higher!
apt-get update apt-get install -y x11vnc xvfb libxcursor1 ca-certificates bzip2 libnss3 libegl1-mesa x11-xkb-utils libasound2 libpci3 libxslt1.1 libxkbcommon0 libxss1 curl update-ca-certificates
On Debian and some Ubuntu versions you might as well have to install, so at least try
apt-get install libglib2.0-0
In case of Ubuntu 18.04: Depending on the Ubuntu installation the
universe repository of Ubuntu is not activated, resulting in missing packages for required dependencies x11vnc and xvfb. When said problem ocurrs, enable the
universe repository by using following command:
add-apt-repository universe apt-get update
After all required dependencies are installed, let's assume that you're going to install the bot to
/opt/sinusbot and are using the user
sinusbot with the group
sinusbot. We will install the bot with root then switch to this user account when running the bot.
You will need to create an new user
sinusbot on your server, so to do so type the following command.
adduser --disabled-login sinusbot
This created user is used to start the bot with usual user privileges (which is highly recommended!), as the bot should not run as root for security-reasons.
Next we will create and prepare the folder where Sinusbot will be installed to, by issuing following commands as the root user:
mkdir -p /opt/sinusbot # create folder chown -R sinusbot:sinusbot /opt/sinusbot # grant sinusbot user permissions on specified folder
(If you're using another user/group than "sinusbot", replace sinusbot:sinusbot with yourusername:yourusergroup)
Then we will switch over to the recently created user dedicated for the sinusbot, change the working directory and to download the latest Sinusbot release:
su sinusbot cd /opt/sinusbot wget https://www.sinusbot.com/dl/sinusbot.current.tar.bz2
If that command results in SSL-Errors, you can alternatively try
curl -O https://www.sinusbot.com/dl/sinusbot.current.tar.bz2
Next, extract the bot:
tar -xjf sinusbot.current.tar.bz2
Copy the configuration (if you haven't started the bot before)
cp config.ini.dist config.ini
Now you need to download the TeamSpeak 3 Client and install it.
wget https://files.teamspeak-services.com/releases/client/3.3.0/TeamSpeak3-Client-linux_amd64-3.3.0.run chmod 0755 TeamSpeak3-Client-linux_amd64-3.3.0.run ./TeamSpeak3-Client-linux_amd64-3.3.0.run
You will need to accept the terms. You do this by pressing enter to scroll through the text or press q to simply go to the end.
Now you need to configure the ini-File of the bot to match your directories.
Make sure that the TS3Path is correct (if you followed this tutorial step by step, it should already match):
TS3Path = "/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
Close the editor (Ctrl+O, Enter, Ctrl+X).
Remove the file 'libqxcb-glx-integration.so' from the clients 'xcbglintegrations' directory:
Create the plugins folder in the ts3client directory:
And finally copy the plugin to the plugins-directory of the TeamSpeak-Installation
cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins/
Just to make sure that the bot is executable, enter
chmod 755 sinusbot
(This instructions needs to be done using the sinusbot user.)
Make sure you're using the latest version:
cd /opt/sinusbot wget https://www.sinusbot.com/dl/sinusbot.current.tar.bz2 tar -xjvf sinusbot.current.tar.bz2 cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins/
If you are updating from
3.1.X then you need to remove the
data/ts3 directory and the
libqxcb-glx-integration.so file as well:
rm -rf data/ts3 rm TeamSpeak3-Client-linux_amd64/xcbglintegrations/libqxcb-glx-integration.so
As the bot won't run as root you will need to switch to the user that you have installed the bot on, if you followed the tutorial, this will be 'sinusbot". To do this use the following command:
Starting the bot
Stopping the bot with Ctrl+C
If you want to keep the bot running when you exit out of the terminal follow the instruction on how to install a startscript.
Now login at
http://<your ip>:8087/ with user admin and the password provided on first run. (see FAQ on how to reset)
Look for any errors in the sinusbot/instance log and try to look-up solutions on our forum or your favourite search engine.
If you used the startscript you can check the status with
systemctl status sinusbot.service.
Logs can be viewed using
journalctl -u sinusbot.service -f --since "1 hour ago".
Using a startscript
These instructions need to be done as the
Download the startscript:
curl -o /lib/systemd/system/sinusbot.service https://raw.githubusercontent.com/SinusBot/linux-startscript/master/sinusbot.service
Then edit the file:
And replace the following placeholders to match your installation:
|YOUR_USER||Your user who starts the bot||sinusbot|
|YOURPATH_TO_THE_BOT_BINARY||Your path to the SinusBot binary||/opt/sinusbot/sinusbot|
|YOURPATH_TO_THE_BOT||Your path to the SinusBot install directory||/opt/sinusbot|
Enable autostart (optional):
systemctl enable sinusbot
Start the sinusbot:
systemctl start sinusbot