From: dvn Date: Wed, 1 Aug 2018 12:19:41 +0000 (+0200) Subject: README.md: Add file transfer via cadet usage example. X-Git-Tag: v0.11.0~322^2~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8f2201c8fcf359623fb90d876937054e7f01cf8b;p=oweals%2Fgnunet.git README.md: Add file transfer via cadet usage example. --- diff --git a/README.md b/README.md index abaed5134..4e18660ce 100644 --- a/README.md +++ b/README.md @@ -77,22 +77,19 @@ docker build -t gnunet . -## Using GNUnet +Using GNUnet +------------- -There are many possible ways to use the subsystems of GNUnet, we will provide a few examples in this section. +There are many possible ways to use the subsystems of GNUnet, so we will provide a few examples in this section.

- GNUnet Modular Architecture + GNUnet Modular Architecture

>***GNUnet is composed of over 30 modular subsystems*** -### GNS - -*coming soon* - ### Cadet #### Examples @@ -101,14 +98,14 @@ Open a Cadet connection: ```shell # Node 1 -cadet -o +gnunet-cadet -o ``` Conect to peer: ```shell # Node 2 -cadet +gnunet-cadet ``` #### Sharing Files @@ -117,20 +114,43 @@ With the cli tool, you can also share files: ```shell # Node 1 -cadet -o > filename +gnunet-cadet -o > filename ``` +On the Node 2 we're going to send the file to Node 1, and to do this we need to make use of [coprocesses](https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html). +The syntax for using coprocesses varies per shell. In our example we are assuming Bash. More info for different shells can be found [here](https://unix.stackexchange.com/questions/86270/how-do-you-use-the-command-coproc-in-various-shells) + ```shell # Node 2 -cadet +coproc gnunet-cadet +cat >&"${COPROC[1]}" ``` +Now this enables us to do some fun things, such as streaming video by piping to a media player: -VPN ---- +```shell +# Node 1 +gnunet-cadet -o | vlc - +``` -Running a Hostlist Server --------------------------- +```shell +# Node 2 +coproc gnunet-cadet +cat >&"${COPROC[1]}" +``` + +### GNS + +*coming soon* + + +### VPN + +*coming soon* + +### Running a Hostlist Server + +*coming soon* GNUnet Configuration --------------------------