thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: How to Set up BigBrotherBot B3 on Debian Linux  (Read 19155 times)

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
How to Set up BigBrotherBot B3 on Debian Linux
« on: April 28, 2010, 05:34:20 PM »
I've recently written a howto for installing B3 on a Debian Linux. I tried to cover all steps from database creation to bot configuration. I guess, that should also work on other debian based systems. I hope it helps especially beginners.

If you have questions, you can use this thread.

EDIT: This article was removed as it's lost in space and it was outdated anyways. Please check other articles on this forum.
« Last Edit: August 07, 2014, 09:42:12 AM by Freelander »

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #1 on: April 29, 2010, 07:31:10 AM »
Quote
Error establishing a database connection
is what I got when I poked the link

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #2 on: April 30, 2010, 03:02:50 PM »
Yep, sorry database server was down. Should be ok now!  :-[

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #3 on: April 30, 2010, 03:45:55 PM »
monit is your friend

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #4 on: April 30, 2010, 05:57:48 PM »
I don't have control over the db server. It's my lousy hosting company. But thanks anyway, I didn't know about monit.  ;)

Offline Armani

  • Jr. Member
  • **
  • Posts: 20
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #5 on: June 21, 2010, 06:49:26 PM »
Thanks for this tutorial, I followed it some weeks ago when I  first found B3 and installed it on my servers :)
But there is a little mistake that any reader can fall for, and I have fallen in it too :P
at the beginning of the tutorial you created the database and named it cod4db and later on when you were configuring B3 and you were asked for the database info you typed :
mysql://freelander:[email protected]/b3
while it should be
mysql://freelander:[email protected]/cod4db
I remember  it drove my crazy because I kept getting connection to DB failure :P
« Last Edit: June 21, 2010, 06:54:46 PM by Armani »

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #6 on: June 22, 2010, 10:20:30 AM »
Good Catch! Corrected.

Thanks for the heads up.  :)

Offline neil

  • Jr. Member
  • **
  • Posts: 19
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #7 on: August 07, 2011, 08:54:29 AM »
edit:
thanks for the tuorial
but i have a little problem now
it dosnt recognize !iamgod command :(
see picture ?
http://www.freeimagehosting.net/ffef7
edit:
game : urban terror
bot version 1.6.1

edit 2 :
found this in my log :(
Quote
110807 13:35:02   DEBUG   'SELECT * FROM groups WHERE `keyword` = "superadmin" LIMIT 1'
110807 13:35:02   DEBUG   "Storage: getClientsMatching {'&group_bits': 128}"
110807 13:35:02   DEBUG   'AdminPlugin: 1 superadmins found in database'
110807 13:35:02   VERBOSE   'AdminPlugin: SuperAdmin(s) found, no need for !iamgod'
« Last Edit: August 07, 2011, 12:14:19 PM by neil »

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #8 on: August 07, 2011, 08:10:35 PM »
Once you issued the command !iamgod, it's automatically disabled for security.

Offline neil

  • Jr. Member
  • **
  • Posts: 19
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #9 on: August 08, 2011, 07:14:09 AM »
Once you issued the command !iamgod, it's automatically disabled for security.
no, i am not able to do any commands either ,
look at picture ?
http://www.freeimagehosting.net/969db


edit2:
could it be because my local ip changes everytime i restart my router ?
see picture ?
http://www.freeimagehosting.net/ce400

also to get admin rights i edited the group bits row to 128 of the most recent join,
anything else i might have to edit to get superadmin rights ?
because some commands like !veto ,!slap etc are not recognized :(
« Last Edit: August 08, 2011, 07:29:22 AM by neil »

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #10 on: August 08, 2011, 08:46:34 AM »
As far as I know, when the server IP changes in Urban Terror, all player guids are changed as well. If that's the case, B3 will not recognise you anymore and that's why you get "insufficient access" message. You will only be able to use commands that unregistered users are allowed to use.

I think the only thing you can do is to have a static IP for your server.

Offline neil

  • Jr. Member
  • **
  • Posts: 19
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #11 on: August 08, 2011, 10:56:55 AM »
As far as I know, when the server IP changes in Urban Terror, all player guids are changed as well. If that's the case, B3 will not recognise you anymore and that's why you get "insufficient access" message. You will only be able to use commands that unregistered users are allowed to use.

I think the only thing you can do is to have a static IP for your server.
how do i get a static ip for my server ?
something to do with the router ?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #12 on: August 08, 2011, 11:22:59 AM »
it is something to do with your ISP. Some of them gives you only dynamic IPs, others offer you (for free or paid) the choice to have a fixed IP

Offline neil

  • Jr. Member
  • **
  • Posts: 19
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #13 on: August 08, 2011, 02:41:02 PM »
it is something to do with your ISP. Some of them gives you only dynamic IPs, others offer you (for free or paid) the choice to have a fixed IP
i live in dubai ,our isp's dosnt give a rats a** about its customers
so im goin to have to re admin myself through the db ?

Offline MordyT

  • Moderator
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: How to Set up BigBrotherBot B3 on Debian Linux
« Reply #14 on: August 08, 2011, 02:53:23 PM »
The way URT works is the "GUID" or the way to ID a person is based off the IP of the server and the QKey of the player. If the IP of the server changes, well then everyones "GUID" changes and B3 doesn't know who is who.

In short, yes, you will have to re-admin yourself, either through !iamgod (you will need to manually enable it) or through the DB.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

 


Rate this page +1 at Google Search

anything