Advertisement
Justman10000

Manage Sinusbot

Apr 2nd, 2023 (edited)
528
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.05 KB | None | 0 1
  1. !!!NOTE: CURRENTLY SINUSBOT HAS A FATAL CODE ERROR, WHICH CAUSES SINUSBOT TO STOP PLAYING AUDIO AFTER A CERTAIN TIME, EVEN THOUGH SINUSBOT IS ONLINE! IF THIS SHOULD BE THE CASE, SIMPLY RESTART...
  2.  
  3. # Tips
  4. ## The error "Is SinusBot already running?" comes?
  5. rm -r /tmp/.sinusbot.lock
  6. ## The error "Could not open X11 socket" comes?
  7. rm -r /tmp/.X11-unix
  8.  
  9. # Prepaire setup
  10. apt install x11vnc xvfb libxcursor1 ca-certificates bzip2 libnss3 libegl1-mesa x11-xkb-utils libasound2 libpci3 libxslt1.1 libxkbcommon0 libxss1 libglib2.0-0 libxcomposite1 curl screen python3-pyqt5 -y
  11.  
  12. pip install build
  13.  
  14. adduser --gecos --no-create-home --disabled-login --disabled-password sinusbot
  15.  
  16. # Get YouTube DL (depraced)
  17. wget https://youtube-dl.org/downloads/latest/youtube-dl
  18. mv youtube-dl /usr/bin/youtube-dl
  19. chmod -R 755 /usr/bin/youtube-dl
  20.  
  21. # Get yt-dlp (You need Python! Get it here: https://pastebin.com/7GJYFSQm)
  22. mkdir /home/ytdlp
  23. cd /home/ytdlp
  24. git init
  25. git remote add origin https://github.com/yt-dlp/yt-dlp.git
  26. git pull origin master
  27. python -m build .
  28. rm -r /home/ytdlp
  29.  
  30. # Get SinusBot
  31. mkdir /home/MusicBot
  32. cd /home/MusicBot
  33. wget https://www.sinusbot.com/dl/sinusbot.current.tar.bz2
  34. bunzip2 sinusbot*.tar.bz2
  35. tar xvf sinusbot*.tar
  36. rm -r sinusbot*.tar README.md
  37.  
  38. # Prepaire config
  39. rm -r config.ini.dist
  40. wget https://pastebin.com/raw/d2D6wcPF -O config.ini
  41.  
  42. # Get TeamSpeak Client
  43. wget https://files.teamspeak-services.com/releases/client/3.6.1/TeamSpeak3-Client-linux_amd64-3.6.1.run
  44. bash TeamSpeak3-Client-linux_amd64-3.6.1.run --accept
  45. rm -r TeamSpeak3-Client-linux_amd64-3.6.1.run
  46. mv TeamSpeak3-Client-linux_amd64 ts3
  47.  
  48. # Prepaire libary
  49. rm -r ts3/xcbglintegrations/libqxcb-glx-integration.so
  50. mkdir ts3/plugins
  51. cp plugin/libsoundbot_plugin.so ts3/plugins
  52. chmod -R 777 .
  53.  
  54. # Start bot
  55. chmod -R 777 .
  56. sudo -u sinusbot ./sinusbot
  57. # For background
  58. screen -S Sinusbot
  59. # For Background, but as process
  60. sudo -u sinusbot ./sinusbot &
  61. echo $! > pid
  62. ## For a new admin password; replace "YourPassword"
  63. sudo -u sinusbot ./sinusbot -override-password 'YourPassword'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement