{"id":1444,"date":"2023-12-06T15:26:49","date_gmt":"2023-12-06T14:26:49","guid":{"rendered":"https:\/\/remidurand.eu\/blog\/?p=1444"},"modified":"2023-12-06T15:35:01","modified_gmt":"2023-12-06T14:35:01","slug":"how-to-install-big-brother-bot-b3-on-debian-for-urt-urbanterror-43","status":"publish","type":"post","link":"https:\/\/remidurand.eu\/blog\/how-to-install-big-brother-bot-b3-on-debian-for-urt-urbanterror-43\/","title":{"rendered":"How to install big-brother-bot b3 on Debian for UrT UrbanTerror 43"},"content":{"rendered":"\n<p>Quick and dirty guide on how to install big-brother-bot b3 for <strong>urbanterror<\/strong>.<\/p>\n\n\n\n<p><em><strong>I don&rsquo;t provide assistance!<\/strong><\/em><\/p>\n\n\n\n<p>System: Debian<\/p>\n\n\n\n<p>This is in two parts:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install<\/li>\n\n\n\n<li>Config<\/li>\n<\/ol>\n\n\n\n<p>I will not detail how to install MySQL, Python, etc. here, check digital ocean guide:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-nginx-mariadb-php-lemp-stack-on-debian-10\" class=\"ek-link\">https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-nginx-mariadb-php-lemp-stack-on-debian-10<\/a><\/em><\/li>\n\n\n\n<li><em><em><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-20-04-server\" class=\"ek-link\">https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-20-04-server<\/a><\/em><\/em><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Install<\/h1>\n\n\n\n<p>Following <a href=\"https:\/\/github.com\/BigBrotherBot\/big-brother-bot\/wiki\/installation\" class=\"ek-link\">https:\/\/github.com\/BigBrotherBot\/big-brother-bot\/wiki\/installation<\/a> and <a href=\"https:\/\/github.com\/BigBrotherBot\/big-brother-bot\/wiki\" class=\"ek-link\">https:\/\/github.com\/BigBrotherBot\/big-brother-bot\/wiki<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Python 2.7 &amp; PIP<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">MySQL or MariaDB<\/h4>\n\n\n\n<p><em>You can install phpMyAdmin.<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">setuptools<\/h4>\n\n\n\n<p><code>pip install setuptools<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install B3<\/h4>\n\n\n\n<p><code>easy_install -U b3<\/code><\/p>\n\n\n\n<p>If you get a <strong>error with pymysql, delete it from requirements.txt<\/strong><\/p>\n\n\n\n<p>Then install it separtly with<\/p>\n\n\n\n<p><code>pip install PyMySQL==0.10.1<\/code><\/p>\n\n\n\n<p>Don&rsquo;t follow the doc, it&rsquo;s outdated <a href=\"https:\/\/bigbrotherbot-user-documentation.readthedocs.io\/en\/latest\/getting-started\/first_run.html\" class=\"ek-link\">https:\/\/bigbrotherbot-user-documentation.readthedocs.io\/en\/latest\/getting-started\/first_run.html<\/a><\/p>\n\n\n\n<p><em>In doubt, check the code\u2026<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Dump Database<\/h4>\n\n\n\n<p>Dump path: <strong>b3\/sql\/mysql<\/strong><\/p>\n\n\n\n<p>Dump order:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>b3-db.sql don&rsquo;t forget to change the password<\/li>\n\n\n\n<li>b3.sql (note: you need to select the database or add USE b3; in beging of all the following files)<\/li>\n\n\n\n<li>b3-update-1.10.0.sql<\/li>\n\n\n\n<li>b3-update-1.3.0.sql<\/li>\n\n\n\n<li>b3-update-1.6.0.sql<\/li>\n\n\n\n<li>b3-update-1.7.0.sql<\/li>\n\n\n\n<li>b3-update-1.8.1.sql<\/li>\n\n\n\n<li>b3-update-1.9.0.sql<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Config<\/h1>\n\n\n\n<p>You need to create a config file .ini or .xml<\/p>\n\n\n\n<p>Use a generator: <a href=\"https:\/\/b3configs.reactiongaming.us\/ \" class=\"ek-link\">https:\/\/b3configs.reactiongaming.us\/<\/a> (ini export bug) or my file: config.xml.<\/p>\n\n\n\n<p><em>Note I&rsquo;m in Europe, so my time_zone is CET.<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;configuration&gt;\n  &lt;settings name=\"b3\"&gt;\n    &lt;set name=\"bot_name\"&gt;b3&lt;\/set&gt;\n    &lt;set name=\"bot_prefix\"&gt;^0(^2b3^0)^7:&lt;\/set&gt;\n    &lt;set name=\"time_format\"&gt;%I:%M%p %Z %y-%m-%d&lt;\/set&gt;\n    &lt;set name=\"time_zone\"&gt;CET&lt;\/set&gt;\n    &lt;set name=\"log_level\"&gt;9&lt;\/set&gt;\n    &lt;set name=\"logfile\"&gt;<strong>YOUR_LOG_PATH<\/strong>\/b3.log&lt;\/set&gt;\n    &lt;set name=\"parser\"&gt;iourt43&lt;\/set&gt;\n    &lt;set name=\"database\"&gt;mysql:\/\/<strong>YOUR_DATABASE_USER:YOUR_DATABASE_PASSWORD@localhost\/YOUR_DATABASE_NAME<\/strong>&lt;\/set&gt;\n  &lt;\/settings&gt;\n  &lt;settings name=\"server\"&gt;\n    &lt;set name=\"public_ip\"&gt;<strong>YOUR_IP<\/strong>&lt;\/set&gt;\n    &lt;set name=\"port\"&gt;<strong>YOUR_PORT<\/strong>&lt;\/set&gt;\n    &lt;set name=\"rcon_ip\"&gt;127.0.0.1&lt;\/set&gt;\n    &lt;set name=\"rcon_password\"&gt;<strong>YOUR_RCON_PASSWORD<\/strong>&lt;\/set&gt;\n    &lt;set name=\"delay\"&gt;0.33&lt;\/set&gt;\n    &lt;set name=\"lines_per_second\"&gt;50&lt;\/set&gt;\n    &lt;set name=\"max_line_length\"&gt;80&lt;\/set&gt;\n    &lt;set name=\"game_log\"&gt;<strong>YOUR_URT_LOG_FILE<\/strong>\/.q3a\/q3ut4\/games.log&lt;\/set&gt;\n    &lt;set name=\"permban_with_frozensand\"&gt;no&lt;\/set&gt;\n    &lt;set name=\"tempban_with_frozensand\"&gt;no&lt;\/set&gt;\n  &lt;\/settings&gt;\n  &lt;settings name=\"autodoc\"&gt;\n    &lt;set name=\"type\"&gt;html&lt;\/set&gt;\n    &lt;set name=\"maxlevel\"&gt;100&lt;\/set&gt;\n    &lt;set name=\"destination\"&gt;@conf\/b3_doc.html&lt;\/set&gt;\n  &lt;\/settings&gt;\n  &lt;settings name=\"update\"&gt;\n    &lt;set name=\"channel\"&gt;iourt43&lt;\/set&gt;\n  &lt;\/settings&gt;\n  &lt;settings name=\"messages\"&gt;\n    &lt;set name=\"kicked_by\"&gt;$clientname^7 was kicked $reason&lt;\/set&gt;\n    &lt;set name=\"kicked\"&gt;$clientname^7 was kicked $reason&lt;\/set&gt;\n    &lt;set name=\"banned_by\"&gt;$clientname^7 was banned $reason&lt;\/set&gt;\n    &lt;set name=\"banned\"&gt;$clientname^7 was banned $reason&lt;\/set&gt;\n    &lt;set name=\"temp_banned_by\"&gt;$clientname^7 was temp banned for $banduration^7 $reason&lt;\/set&gt;\n    &lt;set name=\"temp_banned\"&gt;$clientname^7 was temp banned for $banduration^7 $reason&lt;\/set&gt;\n    &lt;set name=\"unbanned_by\"&gt;$clientname^7 was un-banned $reason&lt;\/set&gt;\n    &lt;set name=\"unbanned\"&gt;$clientname^7 was un-banned $reason&lt;\/set&gt;\n  &lt;\/settings&gt;\n  &lt;settings name=\"plugins\"&gt;\n    &lt;set name=\"external_dir\"&gt;@b3\/extplugins&lt;\/set&gt;\n  &lt;\/settings&gt;\n&lt;plugins&gt;\n    &lt;plugin name=\"admin\" config=\"b3\/conf\/plugin_admin.ini\"\/&gt;\n  &lt;\/plugins&gt;\n&lt;\/configuration&gt;\n<\/code><\/pre>\n\n\n\n<p>Sometime you get an error: \u00ab\u00a0plugin not found\u00a0\u00bb. A quick fix: don&rsquo;t use @home, @b3 or @config but a relative or absolute path.<\/p>\n\n\n\n<p>Launch it<\/p>\n\n\n\n<p><strong>python .\/b3_run.py -c conf.xml<\/strong><\/p>\n\n\n\n<p>I try without a conf file or with conf.xml in different place, it doesn&rsquo;t work, so add -c pathToConfFile<\/p>\n\n\n\n<p><em>If you need more launching options, check b3\/run.py file line 254<\/em><\/p>\n\n\n\n<p>If it works great you will get something like the screen below, otherwise check your B3 log file : b3.log<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"370\" src=\"https:\/\/remidurand.eu\/blog\/wp-content\/uploads\/2023\/12\/image-1.png\" alt=\"\" class=\"wp-image-1453\"\/><\/figure>\n<\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<p>If everything is ok, launch it in screen and enjoy!<\/p>\n\n\n\n<p>In game, don&rsquo;t forget to become a SuperAdmin with: <strong>!iamgod<\/strong><\/p>\n\n\n\n<p>Hope it was usefull!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick and dirty guide on how to install big-brother-bot b3 for urbanterror. I don&rsquo;t provide assistance! System: Debian This is in two parts: I will not detail how to install MySQL, Python, etc. here, check digital ocean guide: Install Following https:\/\/github.com\/BigBrotherBot\/big-brother-bot\/wiki\/installation and https:\/\/github.com\/BigBrotherBot\/big-brother-bot\/wiki Python 2.7 &amp; PIP MySQL or MariaDB You can install phpMyAdmin. setuptools [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1458,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-1444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-autre"],"_links":{"self":[{"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/posts\/1444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/comments?post=1444"}],"version-history":[{"count":20,"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":1471,"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/posts\/1444\/revisions\/1471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/media\/1458"}],"wp:attachment":[{"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/media?parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/categories?post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/remidurand.eu\/blog\/wp-json\/wp\/v2\/tags?post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}