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