apt-get update\r\napt-get install x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 curl libglib2.0-0 nano sudo screen\r\n<\/code><\/pre>\nSince it is dangerous to run the program as root, create a user exclusively for Sinusbot and give it a password:<\/p>\n
adduser --disabled-login ts3bot\r\npasswd ts3bot\r\n<\/code><\/pre>\nMake a directory for the program, I recommend\u00a0\/opt\/ts3soundboard<\/code>. Give ownership to the\u00a0ts3bot<\/code>\u00a0user:<\/p>\nmkdir -p \/opt\/ts3soundboard\r\nchown ts3bot:ts3bot \/opt\/ts3soundboard\r\n<\/code><\/pre>\nGoing forward, we will be working with the\u00a0ts3bot<\/code>\u00a0user. Let’s give permissions to run some required commands as root:<\/p>\nvisudo\r\n<\/code><\/pre>\nYou will see a file similar to the following appear in a text editor:<\/p>\n
#\r\n# This file MUST be edited with the 'visudo' command as root.\r\n#\r\n# Please consider adding local content in \/etc\/sudoers.d\/ instead of\r\n# directly modifying this file.\r\n#\r\n# See the man page for details on how to write a sudoers file.\r\n#\r\nDefaults env_reset\r\nDefaults mail_badpass\r\nDefaults secure_path=\"\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:$\r\n\r\n# Host alias specification\r\n\r\n# User alias specification\r\n\r\n# Cmnd alias specification\r\n\r\n# User privilege specification\r\n<\/code><\/pre>\nAt the end of the file, add the following line:<\/p>\n
ts3bot ALL=(ALL:ALL) ALL\r\n<\/code><\/pre>\nNow, save your changes with\u00a0Ctrl+O<\/code>\u00a0and\u00a0Enter<\/code>, then\u00a0Ctrl+X<\/code>\u00a0and\u00a0Enter<\/code>. Then, login as\u00a0ts3bot<\/code>\u00a0with following command:<\/p>\nsu ts3bot\r\ncd \/opt\/ts3soundboard\r\n<\/code><\/pre>\nWe are now in the directory where we will install Sinusbot and Teamspeak, so let’s start with Sinusbot:<\/p>\n
curl -O https:\/\/frie.se\/ts3bot\/sinusbot-0.9.8.tar.bz2\r\ntar -xjf sinusbot-0.9.8.tar.bz2 \r\ncp config.ini.dist config.ini\r\n<\/code><\/pre>\nDone. Continue to the next section for Teamspeak.<\/p>\n
Installing Teamspeak and Youtube-DL<\/h3>\n
As we are setting up a music bot for Teamspeak 3, we also need the Teamspeak 3 application and\u00a0youtube-dl<\/code>\u00a0to play the music to server. Download both and give them permissions to run the set-up:<\/p>\nwget https:\/\/yt-dl.org\/downloads\/latest\/youtube-dl -O \/usr\/local\/bin\/youtube-dl\r\nwget http:\/\/dl.4players.de\/ts\/releases\/3.0.18.2\/TeamSpeak3-Client-linux_amd64-3.0.18.2.run\r\nsudo chmod 755 TeamSpeak3-Client-linux_amd64-3.0.18.2.run\r\nsudo chmod a+rx \/usr\/local\/bin\/youtube-dl\r\n<\/code><\/pre>\nRun the TS installer:<\/p>\n
.\/TeamSpeak3-Client-linux_amd64-3.0.18.2.run\r\n<\/code><\/pre>\nFinal configuration<\/h3>\n
Now, we have all we need for running the bot, let’s configure it to run properly:<\/p>\n
nano config.ini\r\n<\/code><\/pre>\nUpdate the\u00a0config.ini<\/code>\u00a0file to include the directories of Teamspeak3 and\u00a0youtube-dl<\/code>:<\/p>\nTS3Path = \"\/opt\/ts3soundboard\/TeamSpeak3-Client-linux_amd64\/ts3client_linux_amd64\"\r\n\r\nYoutubeDLPath = \"\/usr\/local\/bin\/youtube-dl\"\r\n<\/code><\/pre>\nSave the file and exit\u00a0nano<\/code>. Move a music-playing plugin to the Teamspeak directory:<\/p>\ncp plugin\/libsoundbot_plugin.so \/opt\/ts3soundboard\/TeamSpeak3-Client-linux_amd64\/plugins\r\n<\/code><\/pre>\nEdit permissions for the Sinusbot program and check for updates:<\/p>\n
sudo chmod 755 ts3bot\r\n.\/ts3bot -update\r\n<\/code><\/pre>\nYou can start the program and play music now, but it will close after closing your SSH client. You may run it in a screen session to prevent it from closing when you quit your SSH session.<\/p>\n
su root\r\nscreen\r\nsu ts3bot\r\n<\/code><\/pre>\nRun the following command to start Sinusbot:<\/p>\n
xinit \/opt\/ts3soundboard\/ts3bot -- \/usr\/bin\/Xvfb :1 -screen 0 800x600x16 -ac\r\n<\/code><\/pre>\nYou will see the program output some start-up information. At this point, it’s running. You can now access the web-interface with your browser, where you can upload and play songs. Navigate to:<\/p>\n
http:\/\/your-server-ip:8087\/\r\n<\/code><\/pre>\nThe default login for the web interface is\u00a0admin<\/code>\u00a0as the user, and\u00a0foobar<\/code>\u00a0for the password. Newer versions of Sinusbot do not use the\u00a0foobar<\/code>\u00a0password, instead they print a random password to the console on the first startup. Remember to change the password immediately.<\/p>\nEnjoy your music bot!<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[105,233,245],"manual_kb_tag":[158],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2194"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2194"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2194\/revisions"}],"predecessor-version":[{"id":2195,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2194\/revisions\/2195"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2194"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2194"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}