Skocz do zawartoś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

[Problem] z SinusBotem


Rekomendowane odpowiedzi

Opublikowano

Hej.

W zarządzanius erwerem TS3 najlepszy nie jestem, ale potrzebuję bota na serwer drużyny.

 

Mój 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

 

 

Opublikowano

Spróbuj zainstalować od nowa według tego poradnika
 

https://github.com/flyth/ts3soundbot/wiki/Installation---Debian-&-Ubuntu

Ew. zobacz starszą/nową wersje.
Jak sobie nie poradzisz odzywaj się na pw.

zapoznaj się też z:
 

https://forum.sinusbot.com/threads/bot-doesnt-connect-to-server.179/

Sprawdź swój config czy wszystko się zgadza m.in " security level "

Opublikowano

Spróbuj zainstalować od nowa według tego poradnika

 

https://github.com/flyth/ts3soundbot/wiki/Installation---Debian-&-Ubuntu

Ew. zobacz starszą/nową wersje.

Jak sobie nie poradzisz odzywaj się na pw.

 

zapoznaj się też z:

 

https://forum.sinusbot.com/threads/bot-doesnt-connect-to-server.179/

Sprawdź swój config czy wszystko się zgadza m.in " security level "

Chodzi o security serwera, tak?

Skoro to nawet nie łączy się z serwerem. :D

Opublikowano

Chodzi o security serwera, tak?

Skoro to nawet nie łączy się z serwerem. :D

zmieniałeś domyśle security? 

No jak się nie łączy to może to być jedna z przyczyn  ^^

Opublikowano

zmieniałeś domyśle security? 

No jak się nie łączy to może to być jedna z przyczyn  ^^

Tak, zmieniłem na 16 jeżeli dobrze zrozumiałem(edit virtual server -> Security).

Kopiowałem komendy z poradnika(bo niezbyt rozumiałem xD) i to samo.

Opublikowano

Tak, zmieniłem na 16 jeżeli dobrze zrozumiałem(edit virtual server -> Security).

Kopiowałem komendy z poradnika(bo niezbyt rozumiałem xD) i to samo.

tak tak czyli to może być problem, domyślny to 8 zmień na 8 u siebie i spróbuj odpalić bota :)

Opublikowano

tak tak czyli to może być problem, domyślny to 8 zmień na 8 u siebie i spróbuj odpalić bota :)

Było 8 tylko zmieniłem na 16, bo tak zrozumiałem. xD

 

Więc nadal nie działa. :/

Opublikowano

Teraz wyskakuje taki błąd:

root@microvps:~/bot# ./ts3bot
-bash: ./ts3bot: No such file or directory
root@microvps:~/bot#

Mimo, że plik jest w folderze bot. :O

Opublikowano

Wpisz polecenie "ls" w folderze bot

Zobacz czy wyświetli Ci się na liście plik ts3bot. Jeżeli wyświetli, sprawdź chmody.

Opublikowano

Odpal bota z innego konta - powinno zadziałać. Odpalanie jakiegokolwiek skryptu z roota jest niebezpieczne.

Mam na VPS tylko TS i bota, więc co może się stać? ;v

Opublikowano

Czysty, wymyślony, ale możliwy przykład:

 

Jak w bocie będzie błąd i ktoś go wykorzysta, to istnieje możliwość, że uzyska dostęp do roota co za tym idzie całego serwera. Jak zacznie DDoSować z Twojej maszyny i przyjdą do Ciebie smutni panowie, to wtedy zaczniesz się martwić :D

Opublikowano

Czysty, wymyślony, ale możliwy przykład:

 

Jak w bocie będzie błąd i ktoś go wykorzysta, to istnieje możliwość, że uzyska dostęp do roota co za tym idzie całego serwera. Jak zacznie DDoSować z Twojej maszyny i przyjdą do Ciebie smutni panowie, to wtedy zaczniesz się martwić :D

W takim razie powiedz mi jeszcze jak przenieść na innego usera bota. xD

Opublikowano

W takim razie powiedz mi jeszcze jak przenieść na innego usera bota. xD

 

Podaj ścieżkę w jakiej znajduje się folder z botem

Opublikowano

/root/bot

W takim razie robisz to tak:

 

Z konta root

adduser biumrk --disabled-login
mv /root/bot /home/biumrk/bot
chown biumrk /home/biumrk/bot -R
su biumrk
chmod 0755 /home/biumrk/bot/ts3bot

I z już zalogowanego użytkownika spróbuj odpalić

Opublikowano
biumrk@microvps:/root$ cd /home/biumrk/bot
biumrk@microvps:~/bot$ screen xinit /home/biumrk/bot/ts3bot -RunningAsRootIsEvilAndIKnowThat -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
Cannot open your terminal '/dev/pts/1' - please check.
biumrk@microvps:~/bot$ ./ts3bot -update -RunningAsRootIsEvilAndIKnowThat
Could not find TeamSpeak 3 Client: stat /root/bot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: permission denied
Sanity checks failed, unable to run. Please read the installation-guide carefully and contact support if necessary.
biumrk@microvps:~/bot$ xinit /home/biumrk/bot/ts3bot -RunningAsRootIsEvilAndIKnowThat -- /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
Could not find TeamSpeak 3 Client: stat /root/bot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: permission denied
Sanity checks failed, unable to run. Please read the installation-guide carefully and contact support if necessary.
xinit: connection to X server lost

waiting for X server to shut down
biumrk@microvps:~/bot$ screen xinit /home/biumrk/bot/ts3bot -RunningAsRootIsEvilAndIKnowThat -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
Cannot open your terminal '/dev/pts/1' - please check.
biumrk@microvps:~/bot$

To ja chyba dam sobie już z tym spokój. xD

Temat do zamknięcia.

Opublikowano
biumrk@microvps:/root$ cd /home/biumrk/bot
biumrk@microvps:~/bot$ screen xinit /home/biumrk/bot/ts3bot -RunningAsRootIsEvilAndIKnowThat -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
Cannot open your terminal '/dev/pts/1' - please check.
biumrk@microvps:~/bot$ ./ts3bot -update -RunningAsRootIsEvilAndIKnowThat
Could not find TeamSpeak 3 Client: stat /root/bot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: permission denied
Sanity checks failed, unable to run. Please read the installation-guide carefully and contact support if necessary.
biumrk@microvps:~/bot$ xinit /home/biumrk/bot/ts3bot -RunningAsRootIsEvilAndIKnowThat -- /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
Could not find TeamSpeak 3 Client: stat /root/bot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: permission denied
Sanity checks failed, unable to run. Please read the installation-guide carefully and contact support if necessary.
xinit: connection to X server lost

waiting for X server to shut down
biumrk@microvps:~/bot$ screen xinit /home/biumrk/bot/ts3bot -RunningAsRootIsEvilAndIKnowThat -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
Cannot open your terminal '/dev/pts/1' - please check.
biumrk@microvps:~/bot$

To ja chyba dam sobie już z tym spokój. xD

Temat do zamknięcia.

 

Nie poddawaj się!

 

Zmień w pliku konfiguracyjnym ścieżkę do clienta Tsa (pomyśl, przecież przeniosłeś wszystko).

 

Potem wpisz w konsolę (jako biumrk)

script /dev/null

I potem dopiero odpalaj bota.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...