Mercurial > libervia-web
annotate INSTALL @ 419:454c7685471d
misc: updated setup.py and INSTALL
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 23 Mar 2014 23:06:42 +0100 |
parents | cb66dffdf9b2 |
children | ac0018e4391b |
rev | line source |
---|---|
379 | 1 Libervia's installation is currently a bit tricky. Full installation and |
2 configuration instructions are given on the Salut à Toi wiki: | |
3 | |
4 http://wiki.goffi.org/w/index.php?title=Libervia/en | |
5 | |
6 | |
7 == Prerequesites == | |
8 | |
9 These steps are detailed on the Salut à Toi wiki: | |
10 | |
11 * install and configure Salut à Toi | |
12 * install and configure a local XMPP server (we recommend using Prosody) | |
13 * install sat_pubsub | |
14 | |
15 == Dependencies == | |
16 | |
17 * you need to install the txJSON-RPC dependency. The installation script of the current | |
18 stable release is buggy, and it's fixed on the Bazaar repository, so you need to install | |
19 Bazaar or git and clone the repository: | |
20 | |
21 bzr branch lp:txjsonrpc | |
22 | |
23 or | |
24 | |
25 git clone git://github.com/oubiwann/txjsonrpc | |
26 | |
27 Then you can install it: | |
28 | |
29 cd txjsonrpc | |
30 python setup.py install '''(as root, "sudo python setup.py install" for *buntu)''' | |
31 | |
32 * install python2-gobject2 from your distribution repositories | |
33 * install the git version of pyjamas (http://pyj.be): | |
34 | |
35 git clone git://pyjs.org/git/pyjamas.git | |
36 cd pyjamas | |
37 python boostrap.py | |
38 | |
39 You can need to force a python version if libervia's compilation doesn't work, for example: | |
40 | |
410
cb66dffdf9b2
misc: fixed python version in INSTALL: on wheezy, only python2.6 works with pyjamas (on libervia.org, may change for different environment)
Goffi <goffi@goffi.org>
parents:
379
diff
changeset
|
41 python2.6 boostrap.py |
379 | 42 |
43 Salut à Toi and Libervia are being developped with Python 2.7.3. | |
44 You can check that it works by compiling the helloworld example: | |
45 | |
46 cd examples/helloworld | |
47 ./build.sh | |
48 | |
49 If you have no error message, it should be allright. | |
50 | |
51 == Install Libervia == | |
52 | |
53 * to install Libervia using setuptools, the pyjsbuild executable should be accessible | |
54 from your environment variable "PATH". The easiest would be: | |
55 | |
56 cd pyjamas | |
57 sudo ln -sf bin/pyjsbuild /usr/bin/pyjsbuild | |
58 | |
59 * clone libervia repository: | |
60 | |
61 hg clone http://repos.goffi.org/libervia | |
62 | |
63 * install Libervia: | |
64 | |
65 cd libervia | |
66 python setup.py install | |
67 | |
68 * create an account "libervia@yourserver.tld" (replace "yourserver.tld" by "example.net" | |
69 or something else) on your XMPP server, create a profile on SàT named "libervia", and | |
70 plug the SàT profile to this account. | |
71 | |
419
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
72 == Configuration == |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
73 |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
74 You can configure the Libervia service from the SàT configuration file, for example: |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
75 |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
76 [libervia] |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
77 connection_type=both |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
78 port=8080 |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
79 port_https=8443 |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
80 ssl_certificate=libervia.pem |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
81 redirect_to_https=1 |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
82 unsecure_warning=1 |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
83 |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
84 Check the wiki for more information: http://wiki.goffi.org/wiki/Configuration/en |
454c7685471d
misc: updated setup.py and INSTALL
souliane <souliane@mailoo.org>
parents:
410
diff
changeset
|
85 |
379 | 86 == Usage == |
87 | |
88 The four components must be launched in the following order: | |
89 | |
90 * prosody | |
91 * sat_pubsub (with the xmpp domain and password as declared in prosodi.cfg.lua) | |
92 * sat | |
93 * libervia's web server | |
94 | |
95 Your command input would look like that: | |
96 | |
97 cd prosody && prosodyctl start | |
98 twistd sat_pubsub --jid=sat-pubsub.<xmpp_domain> --secret=<password> | |
99 sat | |
100 libervia | |
101 | |
102 You can now drop your web browser on http://localhost:8080/libervia.html | |
103 | |
104 If you encounter any issue, you can ask for help on MUC room sat@chat.jabberfr.org | |
105 or use the dev mailing list: http://lists.goffi.org |