dbus service : removing the method cloudeebus.Service.add
[contrib/cloudeebus.git] / README.md
1
2 Cloudeebus
3 ==========
4
5 Cloudeebus - DBus for the Cloud - is a component which enables calling DBus
6  methods and registering on DBus signals from Javascript.
7
8
9 Install
10 -------
11
12 ### Installing Cloudeebus from the project root directory:
13
14 Cloudeebus will install itself in Python's dist-packages folder. The
15  cloudeebus.py wrapper shell goes in the executables path.
16
17         sudo python setup.py install
18
19 See the [Getting Started](https://github.com/01org/cloudeebus/wiki/Getting-started)
20  section of the [Cloudeebus wiki](https://github.com/01org/cloudeebus/wiki)
21  for a list of dependencies to install.
22
23
24 ### Running Cloudeebus:
25
26 The Cloudeebus server must be run either with credentials and a whitelist to
27  restrict access to DBus services, or in opendoor mode.
28
29         usage: cloudeebus.py [-h] [-v] [-d] [-o] [-p PORT] [-c CREDENTIALS] [-w WHITELIST] [-n NETMASK,IP ADDRESS]
30         
31         Javascript DBus bridge.
32         
33         optional arguments:
34           -h, --help            show this help message and exit
35           -d, --debug           log debug info on standard output
36           -v, --version         print version and exit
37           -o, --opendoor        allow anonymous access to all services
38           -p PORT, --port PORT  port number
39           -c CREDENTIALS, --credentials CREDENTIALS
40                                 path to credentials file
41           -w WHITELIST, --whitelist WHITELIST
42                                 path to whitelist file
43           -n NETMASK, --netmask NETMASK
44                                 netmask,IP filter (comma separated.) eg. :
45                                 -n 127.0.0.1,192.168.2.0/24,10.12.16.0/255.255.255.0
46
47
48 Documentation
49 -------------
50
51   * [Cloudeebus](http://01.org/cloudeebus) project home page on [01.org](http://01.org)
52   * [Javascript API](https://github.com/01org/cloudeebus/wiki/API) reference.
53   * [Architecture](https://github.com/01org/cloudeebus/wiki/Architecture) block diagram.
54
55
56 Examples
57 --------
58
59 ### dbus-tools
60
61 The /doc/dbus-tools folder contains dbus-send and dbus-register test pages.
62 Cloudeebus runs in opendoor mode, the dbus-tools pages have no manifest.
63
64         cloudeebus.py --debug --opendoor --port=9001 &
65         firefox ./doc/dbus-tools/dbus-register.html ./doc/dbus-tools/dbus-send.html &
66
67 ### sample
68
69 The /doc/sample folder contains a working sample using credentials, whitelist and manifest.
70 Cloudeebus runs with credentials and a whitelist that are matched by the
71  sample page manifest.
72
73         cloudeebus.py --debug --credentials=./doc/sample/CREDENTIALS --whitelist=./doc/sample/WHITELIST &
74         firefox ./doc/sample/cloudeebus.html &
75
76 The sample page is also online as a [live demo](http://01org.github.com/cloudeebus/).
77
78
79 Acknowledgements
80 ----------------
81
82 Cloudeebus uses code from the following open-source projects:
83
84   * [AutobahnJS](http://autobahn.ws/js) ([MIT](http://opensource.org/licenses/MIT) License)
85   * [AutobahnPython](http://autobahn.ws/python) ([Apache 2.0](http://opensource.org/licenses/Apache-2.0) License)