aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorAnonymized <anonymous@example.com>2018-01-19 23:40:27 +0100
committerAnonymized <anonymous@example.com>2018-01-19 23:40:27 +0100
commitfacdb0f95037a3bc09fa62d0dae462d6dd6b7ec8 (patch)
tree2cd4d7aae14545390b9110e5119cc758c5845c8f /README
parent181af609eb4065d8e2393aca41520c9d1be0538d (diff)
downloadgnunet-guile2-facdb0f95037a3bc09fa62d0dae462d6dd6b7ec8.tar.gz
gnunet-guile2-facdb0f95037a3bc09fa62d0dae462d6dd6b7ec8.zip
README: rework it
Diffstat (limited to 'README')
-rw-r--r--README37
1 files changed, 21 insertions, 16 deletions
diff --git a/README b/README
index c1110b7..5f6f799 100644
--- a/README
+++ b/README
@@ -1,26 +1,31 @@
1Guile bindings for GNUnet 1* gnunet-guile
2—————————————————————————
3 2
4Work in progress! 3Install recent gnunet using the following command:
5 4
6To try the stub gnunet-search clone, you must have a working GNUnet 5 $ guix package -f guix.scm
7configuration. Edit the file `examples/search.scm` and modify the line
8 6
9 (define config-file "~/.gnunet/gnunet.conf") 7Then use the usual cli dance:
10 8
11to match your current GNUnet configuration file. 9 $ ./bootstrap && ./configure && make
12 10
13Then, go inside the bindings directory and run `search.scm` as a 11You must first run gnunet services with the following command:
14script. For instance, to run a search on the keywords "foo" and "bar":
15 12
16 $ cd guix/gnunet/ 13 $ gnunet-arm -c etc/p2.conf -s
17 $ examples/search.scm "foo" "bar"
18 14
19This will start a 5 seconds search on the given keywords. Here’s the 15Then you can publish a file with the following command:
20output when exactly one find matches the keyword “foo”:
21 16
22 gnunet-download -o "foo.txt" gnunet://fs/chk/M976V69FDSQDH74AORDDLB… 17 $ echo "Héllo, world!" > hello
18 $ ./pre-inst-env ./gnunet-guile publish etc/p2.conf hello hello
23 19
24You can also check your bindings with the command: 20This will publish the hello file under the hello keyword.
25 21
26 $ ./run-tests.scm 22You can download it using the URI given in the output for instance:
23
24 $ ./pre-inst-env ./gnunet-guile download etc/p2.conf gnunet://fs/chk/QBZFVRKCKAW95XW5ZB33QKHNR25S5SV3JWC0RKZ53DKH1J6B0YRC0F185KVPWPRB0M8PZDYK8QMDRM0F56RNQ94NSA2E8YVRZWQQQ4G.RHKB5KF1G8SRV610AMSJ7K5XH66T3F5J53JW2BWFXJXJXGB919AJRYF6FD2HKSKT6QDN2BF3D1XS307WY3DBS92FN7WX9HQQ1MP3P40.15 out.txt
25
26You can lookup the files that are tagged as 'hello' with the following
27commmand:
28
29 $ ./pre-inst-env ./gnunet-guile search etc/p2.conf hello
30
31Use Ctrl+C to kill the search command. \ No newline at end of file