Skocz do zawartości

Dołącz do społeczności!

👋 Witaj na MPCForum!

Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

  • ✅ Pełny dostęp do działów i ukrytych treści
  • ✅ Możliwość pisania i odpowiadania w tematach
  • ✅ System prywatnych wiadomości
  • ✅ Zbieranie reputacji i rozwijanie swojego profilu
  • ✅ Członkostwo w jednej z największych społeczności graczy

👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

Zarejestruj się teraz

Instalacja SinusBot'a (Bota muzycznego)

Rekomendowane odpowiedzi

Opublikowano

Witam,

Chciałbym zaprezentować jak zainstalować SinusBota na VPS'ie

 

 

Instalacja wymaganych bibliotek

 

Logujemy się do SSH jako root i wpisujemy:

apt-get install x11vnc xinit xvfb libxcursor1 ca-certificates bzip2

Nastepnie wpisujemy:

update-ca-certificates

Instalacja bota

Teraz musimy stworzyc uzytkownika, na ktorym bedziemy odpalac bota. Wpisujemy:

useradd musicbot

Dobra, teraz trzeba stworzyc folder dla naszego bota

mkdir -p /home/musicbot/bot

Przechodzimy do stworzonego folderu:

cd /home/musicbot/bot

W koncu pobieramy bota:

curl -O https://frie.se/ts3bot/sinusbot-0.9.8.tar.bz2

Teraz przydałoby się go rozpakowac

tar -xjf sinusbot-0.9.8.tar.bz2

Instalacja klienta TS3

Aby nasz bot mógł połączyć sie z naszym serwerem, musimy miec Klienta TS3.

 

Pobieramy go:

wget http://dl.4players.de/ts/releases/3.0.18.1/TeamSpeak3-Client-linux_amd64-3.0.18.1.run

Nadajemy prawa plikowi instalacyjnemu:

chmod 0755 TeamSpeak3-Client-linux_amd64-3.0.18.1.run

I uruchamiamy skrypt instalujący:

./TeamSpeak3-Client-linux_amd64-3.0.18.1.run

Podczas instalacji musimy zaakceptowac warunki umowy.

 

Znajdujac sie w folderze /home/musicbot/bot otwieramy plik config.ini:

nano config.ini

Ustawiamy sciezke do klienta TS3:
 

TS3Path = "/home/musicbot/bot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"

Zamykamy edytor i zapisujemy plik (Ctrl+O, Enter, Ctrl+X)

Teraz kopiujemy plugin do folderu klienta TS3:

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

Nadajemy prawa plikowi startujacemu bota:

chmod 0755 ts3bot

Startowanie bota

Aby odpalic naszego bota przechodzimy do folderu /home/musicbot/bot i wpisujemy:

xinit /home/musicbot/bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

Gratulacje! Wlasnie uruchomiles bota. Aby dodac do niego muzyke w przegladarce wpisz: adres_ip_twojego_serwera:8087

Zaloguj sie do panelu wpisujac w pole login: admin, a w pole haslo: foobar. Tam mozesz skonfigurowac swojego bota (tego chyba nie musze tlumaczyc bo to bardzo proste ;))

 

Mam nadzieje, ze tut sie spodobal!

Pozdrawiam

 

Poradnik wykonałem sam, ale komendy skopiowałem z tąd: https://github.com/flyth/ts3soundbot/wiki/Installation---Debian-&-Ubuntu

Edytowane przez artur8889


Pozdrawiam, ArrMeeR

  • Odpowiedzi 99
  • Wyświetleń 37,4 tys.
  • Dodano
  • Ostatnia odpowiedź
Opublikowano

2015-11-11T21:26:56+01:00 Could not insert into Profiles-Tableno such table: Profiles
2015-11-11T21:26:56+01:00 Could not delete from Profilesno such table: Profiles
2015-11-11T21:26:56+01:00 Could not insert into Profiles-Tableno such table: Profiles
2015-11-11T21:26:56+01:00 Starting instance ts3server://tosieg.com.pl?port=9987&nickname=Radio%20-%20TOSIEG.PL&password=&channel=&channelpassword=
2015-11-11T21:26:56+01:00 TSClient quit.

 

ktoś pomoże?

  • 3 tygodnie później...
Opublikowano

OpenVZ to nie system linux lecz wizualizacja, więc pytanie nie ma sensu. Nie działa ci ta komenda ? Pokaż co ci wyskakuje.

GaduGadu: 42834379


 

Opublikowano

@B3ANS

 

Skąd Ty wziąłeś taki układ komendy?

 

Poprawnie.

$ cd /opt/ts3soundboard

$ ./ts3bot -update

 

Jeżeli chcesz uruchomić permanentnie skrypt używasz komendy:

-> screen xinit /home/musicbot/bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

 

UWAGA! Jeżeli nie masz zainstalowanego screen, użyj komendy "apt-get install screen".

Opublikowano

@B3ANS

Fakt, VPS net-speak są blokowane, ze względu na celowe kupowanie jednego bota za 21 zł z ich usług.

Osobiście korzystam z VPS (hosteam) na którym stoi 6 botów muzycznych, gdyż ns obiwnia za to skrypty php/java, nawet gdy ich nie ma na VPS xp

  • 2 tygodnie później...
Opublikowano

@Itan

Mam problem:

[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost

waiting for X server to shut down

I bot się nie włącza

Edytowane przez PolskiRiko

hex.svg

 PLAYBASE - Nowoczesna lista serwerów gier

Opublikowano

@Itan

Mam problem:

[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost

waiting for X server to shut down

I bot się nie włącza

Jaki system?

Opublikowano

Jaki system?

Debian 7 32bit,

sprawdzałem z ruskim ;p poradnikiem jak odpalić na 32bit i teoretycznie powinno działać jednak się nie odpala....

Edytowane przez PolskiRiko

hex.svg

 PLAYBASE - Nowoczesna lista serwerów gier

Opublikowano

Problem:

Fatal server error:

Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.
 
root@teespl:/home/musicbot/bot# XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 6 requests (6 known processed) with 0 events remaining.

LQyn8jq.png

Opublikowano

 

Problem:

Fatal server error:

Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.
 
root@teespl:/home/musicbot/bot# XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 6 requests (6 known processed) with 0 events remaining.

 

Bot musi już działać ;p Zabij proces i spróbuj ponownie.

 

PS: Pomoże mi ktoś?

 

@Itan

Mam problem:

[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost

waiting for X server to shut down

I bot się nie włącza

hex.svg

 PLAYBASE - Nowoczesna lista serwerów gier

Opublikowano

Ehhh.

 

Autor tematu źle skopiował komendę na start musicbot'a....

 

xinit /home/musicbot/bot/ts3bot  -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac

 

Ps. Jeżeli odpalacie z Root'a dodajemy "-RunningAsRootIsEvilAndIKnowThat" do komendy startowej.

 

Powinno wam zadziałać.

GaduGadu: 42834379


 

Opublikowano

Czy do działania bota są wymagane dodatkowe pakiety (PHP etc.) czy tylko te które podałeś?

Opublikowano

Ok, zainstalowałem ale po wejściu na panel www mam just a second, please... ciągle

 

To nie wina bota, tylko maszyny na której postawiłeś go.

Filtruje twoje połączenie.

­

Opublikowano

Błąd:

 
root@microvps:~/musicbot/bot# xinit /root/musicbot/bot/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac


[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/Type1, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!
[dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
2015/12/24 17:20:25 The bot will not run as root-user if you don't run it with the parameter '-RunningAsRootIsEvilAndIKnowThat'
xinit: connection to X server lost


waiting for X server to shut down
Jak dodaję ten parametr -RunningAsRootIsEvilAndIKnowThat to:

Unrecognized option: -RunningAsRootIsEvilAndIKnowThat
use: X [:<display>] [option]
-a #                   default pointer acceleration (factor)
-ac                    disable access control restrictions
-audit int             set audit trail level
-auth file             select authorization file
-br                    create root window with black background
+bs                    enable any backing store support
-bs                    disable any backing store support
-c                     turns off key-click
c #                    key-click volume (0-100)
-cc int                default color visual class
-nocursor              disable the cursor
-core                  generate core dump on fatal error
-dpi int               screen resolution in dots per inch
-dpms                  disables VESA DPMS monitor control
-deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs
-f #                   bell base (0-100)
-fc string             cursor font
-fn string             default font name
-fp string             default font path
-help                  prints message with these options
-I                     ignore all remaining arguments
-ld int                limit data space to N Kb
-lf int                limit number of open files to N
-ls int                limit stack space to N Kb
-nolock                disable the locking mechanism
-nolisten string       don't listen on protocol
-noreset               don't reset after last client exists
-background [none]     create root window with no background
-reset                 reset after last client exists
-p #                   screen-saver pattern duration (minutes)
-pn                    accept failure to listen on all ports
-nopn                  reject failure to listen on all ports
-r                     turns off auto-repeat
r                      turns on auto-repeat
-render [default|mono|gray|color] set render color alloc policy
-retro                 start with classic stipple and cursor
-s #                   screen-saver timeout (minutes)
-seat string           seat to run on
-t #                   default pointer threshold (pixels/t)
-terminate             terminate at server reset
-to #                  connection time out
-tst                   disable testing extensions
ttyxx                  server started from init on /dev/ttyxx
v                      video blanking for screen-saver
-v                     screen-saver without video blanking
-wm                    WhenMapped default backing-store
-wr                    create root window with white background
-maxbigreqsize         set maximal bigrequest size
+xinerama              Enable XINERAMA extension
-xinerama              Disable XINERAMA extension
-dumbSched             Disable smart scheduling, enable old behavior
-schedInterval int     Set scheduler interval in msec
-sigstop               Enable SIGSTOP based startup
+extension name        Enable extension
-extension name        Disable extension
-query host-name       contact named host for XDMCP
-broadcast             broadcast for XDMCP
-multicast [addr [hops]] IPv6 multicast for XDMCP
-indirect host-name    contact named host for indirect XDMCP
-port port-num         UDP port number to send messages to
-from local-address    specify the local address to connect from
-once                  Terminate server after one session
-class display-class   specify display class to send in manage
-cookie xdm-auth-bits  specify the magic cookie for XDMCP
-displayID display-id  manufacturer display ID for request
[+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
                       enable/disable accessx key sequences
-ardelay               set XKB autorepeat delay
-arinterval            set XKB autorepeat interval
-screen scrn WxHxD     set screen's width, height, depth
-pixdepths list-of-int support given pixmap depths
+/-render                  turn on/off RENDER extension support(default on)
-linebias n            adjust thin line pixelization
-blackpixel n          pixel value for black
-whitepixel n          pixel value for white
-fbdir directory       put framebuffers in mmap'ed files in directory
-shmem                 put framebuffers in shared memory

Fatal server error:
Unrecognized option: -RunningAsRootIsEvilAndIKnowThat

 

 

Edytowane przez Biumrk

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.