Sinusbot

Music bot for TeamSpeak: install, configure and update Sinusbot.

Downloads


Installation

apt-get update
apt-get install -y x11vnc xvfb libxcursor1 ca-certificates curl bzip2 \
  libnss3 libegl1-mesa x11-xkb-utils libasound2 libpci3 libxslt1.1 \
  libxkbcommon0 libxss1 libxcomposite1 libglib2.0-0 nano screen
update-ca-certificates

The next step is optional and only needs to be installed if you want to use the YouTube feature. Instead of the deprecated youtube-dl (the domain yt-dl.org is offline) we use the actively maintained successor yt-dlp:

apt-get install -y python3
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlp

After the first start of Sinusbot, the following has to be replaced in the config.ini. Sinusbot then has to be restarted:

YoutubeDLPath = "/usr/local/bin/yt-dlp"

Now we can continue with the installation:

adduser --disabled-login sinusbot
mkdir -p /opt/sinusbot
cd /opt/sinusbot/
 
wget https://www.sinusbot.com/pre/sinusbot-1.0.2-amd64.tar.bz2
tar -xjf sinusbot-1.0.2-amd64.tar.bz2
 
cp config.ini.dist config.ini
 
wget https://files.teamspeak-services.com/releases/client/3.5.3/TeamSpeak3-Client-linux_amd64-3.5.3.run
chmod +x TeamSpeak3-Client-linux_amd64-3.5.3.run
./TeamSpeak3-Client-linux_amd64-3.5.3.run
rm TeamSpeak3-Client-linux_amd64/xcbglintegrations/libqxcb-glx-integration.so
mkdir TeamSpeak3-Client-linux_amd64/plugins
cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins/
 
chmod 755 sinusbot
chown -R sinusbot:sinusbot /opt/sinusbot/
screen -S sinusbot
su sinusbot && cd /opt/sinusbot/sinusbot

With the command su sinusbot we log in to the sinusbot user, since we don't want to start as the root user.

To leave the screen, simply press Ctrl+A+D and you're back in the normal server console.

To get back into the screen and stop the bot:

screen -r sinusbot   # Enters the screen
# Ctrl+C (press twice to stop Sinusbot)

To open the Sinusbot web interface, simply enter the following in the browser:

http://www.your-domain.com:8087

Updates

Sinusbot Update

cd /opt/sinusbot
wget https://www.sinusbot.com/pre/sinusbot-1.0.2-amd64.tar.bz2
tar -xjvf sinusbot-1.0.2-amd64.tar.bz2
cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins/
chown -R sinusbot:sinusbot /opt/sinusbot

TeamSpeak Client Update

cd /opt/sinusbot
wget https://files.teamspeak-services.com/releases/client/3.5.3/TeamSpeak3-Client-linux_amd64-3.5.3.run
chmod +x TeamSpeak3-Client-linux_amd64-3.5.3.run
./TeamSpeak3-Client-linux_amd64-3.5.3.run

Now the new terms of use have to be accepted. Next, a folder and a file have to be deleted:

rm -rf data/ts3
rm TeamSpeak3-Client-linux_amd64/xcbglintegrations/libqxcb-glx-integration.so

Now we have to copy the TeamSpeak client plugin again so that Sinusbot connects to the TeamSpeak client, and set the appropriate permissions again:

cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins/
chown -R sinusbot:sinusbot /opt/sinusbot

Now Sinusbot can be started again as usual.