From bbeea90150e2ee4f2295bd7b043803cfd9d24511 Mon Sep 17 00:00:00 2001 From: traumschule Date: Thu, 4 Oct 2018 02:57:43 +0200 Subject: globalist: Improve README intro, document default ControlPort --- globalist/README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'globalist') diff --git a/globalist/README.md b/globalist/README.md index ba098cc7..a0ff6458 100644 --- a/globalist/README.md +++ b/globalist/README.md @@ -1,16 +1,24 @@ # Globalist -Idea: distributed githubless repository sharing. Yes, this is the official home ;-) +Globalist provides distributed sharing of repositories without the need of central instances (like GitHub). -Globalist is an attempt to ease the distribution of git repos, away from central points of failure. +This is an attempt to ease the distribution of git repos, to overcome the risk of a central points of failure. Globalist stands for "Global List" and aims at replacing any EtherPads of more than transient value. -Globalist is also meant to evolve into an experimental distributed asynchronous wiki facility. +It is also meant to evolve into an experimental distributed asynchronous wiki facility. Nodes can come and go, and network topology only depends on the peers entries in the nodes' config files. Changes that are merged by one's peers propagate by diffusion. +The official repository can be found at https://notabug.org/themusicgod1/cloudflare-tor + ## Usage +To use Globalist.py python3 is needed. Either run it from globalist directory with `python3 Globalist.py` or or install it as described below. + +Per default an open tor ControlPort at 9151 without authentication is expected. You can choose another port with `-C`. For a list of option see `--help`. + +### Create repository + Make a new directory and put this in the file ./repo.cfg (when creating a new repository instead of cloning from a peer, the list or indeed the repo.cfg file can remain empty) ``` @@ -22,6 +30,8 @@ For a public repository, no authentication is needed (option -X). In case authen For each shared repo, Globalist will create one .onion service. Note that it is possible to use either bare repos or not-bare repos. +### Clone a repository + To clone a bare repo: ``` -- cgit v1.2.3 From 2daa8328802ac0c8b369364a5eb8e13181513b2d Mon Sep 17 00:00:00 2001 From: traumschule Date: Thu, 4 Oct 2018 03:00:23 +0200 Subject: globalist: IDEA to implement Tor ControlPort authentication --- globalist/globalist/__init__.py | 7 +++++++ globalist/globalist/__pycache__/__init__.cpython-36.pyc | Bin 0 -> 9716 bytes 2 files changed, 7 insertions(+) create mode 100644 globalist/globalist/__pycache__/__init__.cpython-36.pyc (limited to 'globalist') diff --git a/globalist/globalist/__init__.py b/globalist/globalist/__init__.py index a2e7e5f0..172edfb2 100755 --- a/globalist/globalist/__init__.py +++ b/globalist/globalist/__init__.py @@ -336,6 +336,12 @@ def main(args=[]): opt.add_option("-C", "--control-port", dest="a_controlport", action="store", type="int", default=9151, metavar="PORT", help="Tor controlport") +# opt.add_option("-CP", "--control-password", dest="a_controlpassword", action="store", type="int", +# default="", help="Tor Control Password") + +# opt.add_option("-CC", "--control-cookie", dest="a_controlcookie", action="store", type="int", +# default="", help="Tor Control Cookie") + opt.add_option("-a", "--await", dest="o_ap", action="store_true", default=False, help="await publication of .onion in DHT before proceeding") @@ -362,6 +368,7 @@ def main(args=[]): options.a_controlport = DEFAULT_CONTROLPORT # Extract socksport via c.get_conf and use this (-P in torsocks) + # TODO implement authentication token / cookie controller = Controller.from_port(port = options.a_controlport) controller.authenticate() STATUS['socksport'] = controller.get_conf('SocksPort').split(" ",1)[0] diff --git a/globalist/globalist/__pycache__/__init__.cpython-36.pyc b/globalist/globalist/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 00000000..fc0520c6 Binary files /dev/null and b/globalist/globalist/__pycache__/__init__.cpython-36.pyc differ -- cgit v1.2.3