Categories
Tutorials

SinusBot Installation Guide

Hello there, this is my guide on how to install SinusBot on a Debian based operating system.

You may also want to check out my youtube-dl guide or my bootscript guide (which automatically starts sinusbot for you).

You will need to start by installing some dependencies. So let’s run the commands to install those now.

apt-get update
apt-get install nano x11vnc xvfb xinit libxcursor1 ca-certificates bzip2 curl -y
update-ca-certificates

If you run into some issues on your server, try the following command as it can sometimes help.

apt-get install libglib2.0-0

 

We are now going to add a user for the bot. It can be anything but for this tutorial, I am going to use the username “sinusbot”.

adduser sinusbot

After you have typed this command it will then prompt you for a password, set it as whatever you’d like, but make sure you remember what it is! It will then prompt for some information, fill it out as you like and the finally create the user.

 

Next, we are going to extract the bot to a location on the server. I am going to install it in /opt but you can choose where you’d like to install it if you want.

su - sinusbot
curl https://www.sinusbot.com/dl/sinusbot-beta.tar.bz2 -o sinusbot.tar.bz2
tar -xjf sinusbot.tar.bz2

 

Now that is done we need to set the default config SinusBot will use

cp config.ini.dist config.ini

 

The next step is to install the TeamSpeak3 client for SinusBot. If you want a custom TeamSpeak3 version just change 3.0.19.4 in both places to the version you want!

curl http://dl.4players.de/ts/releases/3.0.19.4/TeamSpeak3-Client-linux_amd64-3.0.19.4.run -o teamspeak.run
chmod 777 teamspeak.run
./teamspeak.run

 

After TeamSpeak is installed we need to tell SinusBot where it is. So we need to edit the config.ini file in the Sinusbot directory like so.

nano config.ini

 

And then find this line:

TS3Path = "/opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"

and if you have used the directory like I used in this tutorial change it to

TS3Path = "/home/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"

 

Now we have to copy the SinusBot TeamSpeak plugin to the TeamSpeak clients directory. The bot WILL NOT WORK PROPERLY if you don’t do this command.

cp plugin/libsoundbot_plugin.so /home/sinusbot/TeamSpeak3-Client-linux_amd64/plugins

 

After that just chmod the sinusbot executable to 755 like so.

chmod 755 sinusbot

 

If you want to be tidy you can remove the files you used to install it with the following commands.

rm /home/sinusbot/sinusbot.tar.bz2
rm /home/sinusbot/teamspeak.run

 

And you are done! If you want you can just run it in a screen or tmux. Other than that you can check out my other tutorial that explains how to make it part of the init.d scripts in Ubuntu 14.04 or older.