This post is about install Sinusbot on Ubuntu / Debian.
Sinusbot is a music bot made for TeamSpeak3 and Discord servers which allows you to listen to music with your friends through channels. It uses YTDL Extension to directly feed music from Youtube and also it can support soundcloud songs. It has many custom made scripts and resources that enhances the experience of Discord and TeamSpeak in many ways, Like automatic channel creation, Automatic kick, No Recording plugins etc. There are tons of scripts available for Sinusbot on their forum.
Requirements :
- 1GB or more RAM (The more the better performance)
- 1-2vCore CPU
- 10-20GB of DiskSpace (Unless you are using Download Function)
- Ubuntu 16.04 or greater or Debian 8 or greater
Step 1 : Update your server
First step is to update your server and look for any new packages and security releases for you distribution
apt-get update -y
apt-get upgrade -y
Step 2 : Installing Required Dependencies
There are some required dependencies to install, Run the command to install them
apt-get install -y x11vnc xvfb libxcursor1 ca-certificates curl bzip2 libnss3 libegl1-mesa x11-xkb-utils libasound2 libpci3 libxslt1.1 libxkbcommon0 libxss1 libxcomposite1
Step 3 : Installing Sinusbot
We have everything installed in order to run Sinusbot on our server. Run the following commands to install Sinusbot.
First we will add a new user by running the following command:
adduser –disabled-login sinusbot
We will create a new directory and give the user its permission
mkdir -p /opt/sinusbot
chown -R sinusbot:sinusbot /opt/sinusbot
Change to the user and download the files from official mirror
su sinusbot
cd /opt/sinusbot
curl -O https://www.sinusbot.com/dl/sinusbot.current.tar.bz2
Extract the file and change the config file name :
tar -xjf sinusbot.current.tar.bz2
cp config.ini.dist config.ini
Now it’s time to install TeamSpeak3 client. The latest version for now is 3.5.6
wget http://files.teamspeak-services.com/releases/client/3.5.6/TeamSpeak3-Client-linux_amd64-3.5.6.run
chmod 0755 TeamSpeak3-Client-linux_amd64-3.5.6.run
./TeamSpeak3-Client-linux_amd64-3.5.6.run
In this step, You need to first press ENTER then press Q and then press Y
Edit the configuration file and make sure the path is correct for TeamSpeak3 client
nano config.ini
Next step to copy the plugin :
mkdir TeamSpeak3-Client-linux_amd64/plugins
cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins/
chmod 755 sinusbot
Remove the following file :
rm TeamSpeak3-Client-linux_amd64/xcbglintegrations/libqxcb-glx-integration.so
Now run the sinusbot by running the following command as non-root user :
./sinusbot
You will see the following output also note down the password shown at the top in yellow text
You can access your SinusBot at 8087 port
http://localhost:8087
You will see a screen like this :
Conclusion :
You have installed Sinusbot on your Ubuntu/Debian Servers, This tutorial first assumes you are root, While running the bot you have to be non-root as the bot runs on non-root users.