collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Gentoo Linux Install Guide  (Read 4959 times)

0 Members and 1 Guest are viewing this topic.

Offline Ixiaan

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Gentoo Linux Install Guide
« on: June 03, 2010, 05:08:39 pm »
Some of this is missing from the install documentation so I though I would post it.

Installing php:
# echo "dev-lang/php sockets curl mysql bcmath" >> /etc/portage/package.use
# emerge php

Installing mysql:
# emerge mysql
Set the mysql root password using
# emerge --config =dev-db/mysql-[version]
# mysql -u root -p
Proceed with the mysql setup directions provided in the bebot documentation.

Starting the bot:
# cd /<whatever directory bebot was extracted to>
$ php StartBot.php

If you want to have bebot started automatically create the following files:
Code: (/etc/init.d/bebot) [Select]
#!/sbin/runscript                                       
# /etc/init.d/bebot                                     
# $Header: $                                             

depend() {
       use net
       need mysql
}

start() {
       ebegin "Starting bebot"
       #
       start-stop-daemon --background --start --pidfile /tmp/bebot.pid --make-pidfile -c ${BEBOT_USER} --exec /bin/bebot
       sleep 5
       eend $? "Failed to start bebot"
}

stop() {
       ebegin "Stopping bebot"
       start-stop-daemon -v --stop --pidfile /tmp/bebot.pid
       sleep 5
       eend $? "Failed to stop bebot"
}

Code: (/etc/conf.d/bebot) [Select]
#/etc/conf.d/bebot

BEBOT_USER="name of user you want to run bebot as"

Code: (/bin/bebot) [Select]
#!/bin/bash
cd /<whatever directory bebot was extracted to>
php StartBot.php
# Optionally start more bots:
# cd /<other bebot directory>
# php StartBot.php

# chmod +x /bin/bebot
# chmod +x /etc/init.d/bebot
# rc-update add bebot default
# /etc/init.d/bebot start

Offline chek

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Gentoo Linux Install Guide
« Reply #1 on: January 29, 2012, 06:20:02 pm »
I have a problem installing a bot

Code: [Select]
-bash: $: command not found
« Last Edit: January 29, 2012, 06:21:36 pm by chek »

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 263
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal