From facdb0f95037a3bc09fa62d0dae462d6dd6b7ec8 Mon Sep 17 00:00:00 2001 From: Anonymized Date: Fri, 19 Jan 2018 23:40:27 +0100 Subject: README: rework it --- README | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'README') diff --git a/README b/README index c1110b7..5f6f799 100644 --- a/README +++ b/README @@ -1,26 +1,31 @@ -Guile bindings for GNUnet -————————————————————————— +* gnunet-guile -Work in progress! +Install recent gnunet using the following command: -To try the stub gnunet-search clone, you must have a working GNUnet -configuration. Edit the file `examples/search.scm` and modify the line + $ guix package -f guix.scm - (define config-file "~/.gnunet/gnunet.conf") +Then use the usual cli dance: -to match your current GNUnet configuration file. + $ ./bootstrap && ./configure && make -Then, go inside the bindings directory and run `search.scm` as a -script. For instance, to run a search on the keywords "foo" and "bar": +You must first run gnunet services with the following command: - $ cd guix/gnunet/ - $ examples/search.scm "foo" "bar" + $ gnunet-arm -c etc/p2.conf -s -This will start a 5 seconds search on the given keywords. Here’s the -output when exactly one find matches the keyword “foo”: +Then you can publish a file with the following command: - gnunet-download -o "foo.txt" gnunet://fs/chk/M976V69FDSQDH74AORDDLB… + $ echo "Héllo, world!" > hello + $ ./pre-inst-env ./gnunet-guile publish etc/p2.conf hello hello -You can also check your bindings with the command: +This will publish the hello file under the hello keyword. - $ ./run-tests.scm +You can download it using the URI given in the output for instance: + + $ ./pre-inst-env ./gnunet-guile download etc/p2.conf gnunet://fs/chk/QBZFVRKCKAW95XW5ZB33QKHNR25S5SV3JWC0RKZ53DKH1J6B0YRC0F185KVPWPRB0M8PZDYK8QMDRM0F56RNQ94NSA2E8YVRZWQQQ4G.RHKB5KF1G8SRV610AMSJ7K5XH66T3F5J53JW2BWFXJXJXGB919AJRYF6FD2HKSKT6QDN2BF3D1XS307WY3DBS92FN7WX9HQQ1MP3P40.15 out.txt + +You can lookup the files that are tagged as 'hello' with the following +commmand: + + $ ./pre-inst-env ./gnunet-guile search etc/p2.conf hello + +Use Ctrl+C to kill the search command. \ No newline at end of file -- cgit v1.2.3