Skip to content

Commit 0d53367

Browse files
author
Matt Dees
committed
Add installation doc for Centos7
1 parent 02ca49a commit 0d53367

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

INSTALL-CENTOS7

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Install on CentOS7:
2+
This bot is intended to run in a dedicated host/container.
3+
4+
yum groupinstall "Development Tools"
5+
yum install mariadb mariadb-libs mariadb-server aspell aspell-devel perl-App-cpanminus
6+
7+
# SETUP DB SERVER
8+
9+
$ secure_mysql_setup
10+
11+
$ mysql -uroot -p
12+
13+
CREATE DATABASE skagbot
14+
CREATE USER 'skagbot'@'localhost';
15+
GRANT ALL ON skagbot.* to 'skagbot'@'localhost';
16+
SET PASSWORD for 'skagbot'@'localhost' = PASSWORD('l0lzb4lls!');
17+
18+
$ sudo -u $user
19+
$ vi .my.cnf (create .my.cnf)
20+
$ exit
21+
22+
# INSTALL PERL DEPS
23+
24+
$ cpanm Bot::BasicBot DBIx::Class JSON Net::Twitter DBD::mysql DateTime::Format::MySQL DateTime JSON Hailo Date::Parse Text::Aspell URI::Find HTML::TreeBuilder::XPath JSON::XS HTTP::Tiny WWW::Wunderground::API File::Cache SQL::Translator Hail Text::
25+
26+
# git clone
27+
28+
29+
# Install mysql schema
30+
perl create_scemas.pl
31+
mysql freenode_towele dbscriptdir/GeckBot-Logger-0.2-MySQL.sql
32+
33+
dsn is:
34+
'dsn' => ['DBI:mysql:database=freenode_towele;host=localhost', 'towele', 'l0lzb4lls!', {}, { 'quote_names' => 1 }],
35+
36+
37+
38+
# edit config file
39+
required fields to edit:
40+
41+
#plugin specific configs:
42+
WUNDERGOURND:
43+
wunderground_api => { 'key' => '8f48ff94176c5427' },
44+
Reddit:
45+
reddit_config => {
46+
'#geckbot' => 'funny',
47+
},
48+
Hailo:
49+
'hailo' => { brn_path => 'towel-e-new.brn' },
50+

0 commit comments

Comments
 (0)