Git Product home page Git Product logo

cloudeebus's Introduction

Cloudeebus

Cloudeebus - DBus for the Cloud - is a component which enables calling DBus methods and registering on DBus signals from Javascript.

Install

Installing Cloudeebus from the project root directory:

Cloudeebus will install itself in Python's dist-packages folder. The cloudeebus.py wrapper shell goes in the executables path.

sudo python setup.py install

See the Getting Started section of the Cloudeebus wiki for a list of dependencies to install.

Running Cloudeebus:

The Cloudeebus server must be run either with credentials and a whitelist to restrict access to DBus services, or in opendoor mode.

usage: cloudeebus.py [-h] [-v] [-d] [-o] [-p PORT] [-c CREDENTIALS]
	             [-w WHITELIST] [-s SERVICELIST] [-n NETMASK]

Javascript DBus bridge.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         print version and exit
  -d, --debug           log debug info on standard output
  -o, --opendoor        allow anonymous access to all services
  -p PORT, --port PORT  port number
  -c CREDENTIALS, --credentials CREDENTIALS
	                path to credentials file
  -w WHITELIST, --whitelist WHITELIST
	                path to whitelist file (DBus services to use)
  -s SERVICELIST, --servicelist SERVICELIST
	                path to servicelist file (DBus services to export)
  -n NETMASK, --netmask NETMASK
	                netmask,IP filter (comma separated.) eg. : -n
	                127.0.0.1,192.168.2.0/24,10.12.16.0/255.255.255.0

Documentation

Examples

dbus-tools

The /doc/dbus-tools folder contains dbus-send and dbus-register test pages. Cloudeebus runs in opendoor mode, the dbus-tools pages have no manifest.

cloudeebus.py --debug --opendoor --port=9001 &
firefox ./doc/dbus-tools/dbus-register.html ./doc/dbus-tools/dbus-send.html &

sample

The /doc/sample folder contains a working sample using credentials, whitelist and manifest. Cloudeebus runs with credentials and a whitelist that are matched by the sample page manifest.

cloudeebus.py --debug --credentials=./doc/sample/CREDENTIALS --whitelist=./doc/sample/WHITELIST &
firefox ./doc/sample/cloudeebus.html &

The sample page is also online as a live demo.

agent

The /doc/agent folder contains a working client sample using credentials, whitelist and manifest and a working service sample using credentials, servicelist and manifest. One instance of cloudeebus runs with credentials and a whitelist that are matched by the client page manifest.

cloudeebus.py --debug --credentials=./doc/agent/CREDENTIALS --whitelist=./doc/agent/SAMPLELIST -p 9002 &
firefox ./doc/agent/client.html &

The other instance of cloudeebus runs with credentials and a servicelist that are matched by the server page manifest.

cloudeebus.py --debug --credentials=./doc/agent/CREDENTIALS --servicelist=./doc/agent/SAMPLELIST -p 9003 &
firefox ./doc/agent/server.html &

Acknowledgements

Cloudeebus uses code from the following open-source projects:

cloudeebus's People

Contributors

lyriarte avatar fpaut avatar mayio avatar pohly avatar enzuguri avatar

Watchers

Long Dao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.