summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorSimeon Simeonov2014-08-31 13:28:22 +0200
committerSimeon Simeonov2014-08-31 13:28:22 +0200
commit472f3d3bf50b352165bc192ce5d0ffa45d81ce00 (patch)
tree56d35f027b7939284871a10a57223a768b738f51 /INSTALL
parentfa1aacfde8679551cebda346a2c45d04204441eb (diff)
Version 1.0 completed
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL97
1 files changed, 96 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
index 9ca334f..2749b34 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,3 +1,98 @@
1Installation Instructions 1Installation Instructions
2--------------------------------------- 2-------------------------
3 3
4Refer to README for a basic information about the differents BEINC components
5and their software requirements!
6
7
8Installing the dependencies
9~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
11
12
13Gentoo GNU/Linux 2013, 2014
14..........................
15
16# emerge -va dev-python/pyopenssl dev-python/cherrypy dev-python/notify-python dev-python/pyosd
17
18
19Ubuntu GNU/Linux
20................
21
22# apt-get install python-openssl python-cherrypy python-notify2 python-pyosd
23
24
25FreeBSD 9, 10
26.............
27
28# cd /usr/ports/security/py-openssl
29# make install clean
30
31# cd /usr/ports/www/py-cherrypy
32# make install clean
33
34# cd /usr/ports/devel/py-notify
35# make install clean
36
37# cd /usr/ports/misc/py-osd
38# make install clean
39
40
41Intallation using virtualenv and pip
42....................................
43
44Very often you are not the administrator of the server hosting your BEINC server
45This is where virtualenv may become handy (provided that it has been installed):
46$ virtualenv beinc_installation
47$ cd beinc_installation
48$ source bin/activate
49$ pip install cherrypy
50$ pip install pyopenssl
51$ cd beinc-<version>
52$ ./beinc_server.py -h
53
54
55Installing and setting up BEINC
56~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57
58Unpack the latest version of BEINC
59$ tar zxvf beinc-<version>.tar.gz
60
61$cd beinc-<version>
62Read the README file
63
64You should now have a basic understanding about the different BEINC components
65and how they interact with each other.
66beinc_server.py and beinc_weechat.py are using a .json configuration file.
67Read beinc_config_sample.json.readme where every configuration option is explined.
68Decide on a use-strategy and place the different components to their locations:
69
70beinc_server.py:
71Create a configuration file based on beinc_config_sample.json, defining your instances
72Start the BEINC server:
73$ ./beinc_server.py -H 10.0.0.44 -p 9678
74The example loads the server listening on 10.0.0.44, port 9678 using the default
75~/.beinc_server.json as a configuration file
76
77beinc_poller.py:
78$ ./beinc_poller.py -h
79The example lists all available command options
80$ ./beinc_poller.py -t 10 -f 7 --cert-file /home/sgs/weechat_cert.crt \
81 -P /home/sgs/.weechat_beinc_passwd https://10.0.0.44:9678/pull/weechat
82Starts polling from the instance (target) defined above,
83defining an OSD timeout of 10 seconds, polling frequency of 7 seconds,
84checking whether the server's SSL certificate was signed (issued) by /home/sgs/weechat_cert.crt,
85extracting the target's password from /home/sgs/.weechat_beinc_passwd
86
87beinc_generic_client.py:
88$ ./beinc_generic_client.py -h
89The example lists all available command options
90
91beinc_weechat.py:
92Create a configuration file based on beinc_config_sample.json, defining your targets
93and copy it (or symlink it) to ~/<weechat-dir>/beinc_weechat.json
94(weechat-dir is usually ~/.weechat)
95Copy (or symlink) beinc_weechat.py to ~/<weechat-dir>/python/autoload/
96Load the script in Weechat by typing: /python load beinc_weechat.py
97Make sure that all your targets look as they should: /beinc target list
98Test if your targets are displaying / relaying your messages: /beinc broadcast Test