diff options
| author | Simeon Simeonov | 2014-08-31 13:28:22 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2014-08-31 13:28:22 +0200 |
| commit | 472f3d3bf50b352165bc192ce5d0ffa45d81ce00 (patch) | |
| tree | 56d35f027b7939284871a10a57223a768b738f51 /INSTALL | |
| parent | fa1aacfde8679551cebda346a2c45d04204441eb (diff) | |
Version 1.0 completed
Diffstat (limited to 'INSTALL')
| -rw-r--r-- | INSTALL | 97 |
1 files changed, 96 insertions, 1 deletions
| @@ -1,3 +1,98 @@ | |||
| 1 | Installation Instructions | 1 | Installation Instructions |
| 2 | --------------------------------------- | 2 | ------------------------- |
| 3 | 3 | ||
| 4 | Refer to README for a basic information about the differents BEINC components | ||
| 5 | and their software requirements! | ||
| 6 | |||
| 7 | |||
| 8 | Installing the dependencies | ||
| 9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | Gentoo GNU/Linux 2013, 2014 | ||
| 14 | .......................... | ||
| 15 | |||
| 16 | # emerge -va dev-python/pyopenssl dev-python/cherrypy dev-python/notify-python dev-python/pyosd | ||
| 17 | |||
| 18 | |||
| 19 | Ubuntu GNU/Linux | ||
| 20 | ................ | ||
| 21 | |||
| 22 | # apt-get install python-openssl python-cherrypy python-notify2 python-pyosd | ||
| 23 | |||
| 24 | |||
| 25 | FreeBSD 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 | |||
| 41 | Intallation using virtualenv and pip | ||
| 42 | .................................... | ||
| 43 | |||
| 44 | Very often you are not the administrator of the server hosting your BEINC server | ||
| 45 | This 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 | |||
| 55 | Installing and setting up BEINC | ||
| 56 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 57 | |||
| 58 | Unpack the latest version of BEINC | ||
| 59 | $ tar zxvf beinc-<version>.tar.gz | ||
| 60 | |||
| 61 | $cd beinc-<version> | ||
| 62 | Read the README file | ||
| 63 | |||
| 64 | You should now have a basic understanding about the different BEINC components | ||
| 65 | and how they interact with each other. | ||
| 66 | beinc_server.py and beinc_weechat.py are using a .json configuration file. | ||
| 67 | Read beinc_config_sample.json.readme where every configuration option is explined. | ||
| 68 | Decide on a use-strategy and place the different components to their locations: | ||
| 69 | |||
| 70 | beinc_server.py: | ||
| 71 | Create a configuration file based on beinc_config_sample.json, defining your instances | ||
| 72 | Start the BEINC server: | ||
| 73 | $ ./beinc_server.py -H 10.0.0.44 -p 9678 | ||
| 74 | The example loads the server listening on 10.0.0.44, port 9678 using the default | ||
| 75 | ~/.beinc_server.json as a configuration file | ||
| 76 | |||
| 77 | beinc_poller.py: | ||
| 78 | $ ./beinc_poller.py -h | ||
| 79 | The 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 | ||
| 82 | Starts polling from the instance (target) defined above, | ||
| 83 | defining an OSD timeout of 10 seconds, polling frequency of 7 seconds, | ||
| 84 | checking whether the server's SSL certificate was signed (issued) by /home/sgs/weechat_cert.crt, | ||
| 85 | extracting the target's password from /home/sgs/.weechat_beinc_passwd | ||
| 86 | |||
| 87 | beinc_generic_client.py: | ||
| 88 | $ ./beinc_generic_client.py -h | ||
| 89 | The example lists all available command options | ||
| 90 | |||
| 91 | beinc_weechat.py: | ||
| 92 | Create a configuration file based on beinc_config_sample.json, defining your targets | ||
| 93 | and copy it (or symlink it) to ~/<weechat-dir>/beinc_weechat.json | ||
| 94 | (weechat-dir is usually ~/.weechat) | ||
| 95 | Copy (or symlink) beinc_weechat.py to ~/<weechat-dir>/python/autoload/ | ||
| 96 | Load the script in Weechat by typing: /python load beinc_weechat.py | ||
| 97 | Make sure that all your targets look as they should: /beinc target list | ||
| 98 | Test if your targets are displaying / relaying your messages: /beinc broadcast Test | ||
