Comment 4 for bug 836348

Revision history for this message
harrykar (harrykar) wrote :

Regard post #3 i forget the last janitor step
Don't forget before run gnunet server uninstall libextractor 0.5.23, libmicrohttpd-dev, libmicrohttpd5 4.4.1
because otherwise when you publish a file/directory you get errors from extractor:

gnunet-publish -m "title:Hacking The Art of Exploitation 2nd Feb.2008.chm" -m "mimetype:application/x-chm" -m "author:Jon Erickson" -k hack Hacking_The_Art_of_Exploitation_2nd_Feb.2008.chm

Unknown metadata type in metadata option `author:Jon Erickson'. Using metadata type `unknown' instead.
Resolving symbol `EXTRACTOR_oo_extract' failed, so I tried `_EXTRACTOR_oo_extract', but that failed also. Errors are: `/usr/lib/libextractor/libextractor_oo.so: undefined symbol: EXTRACTOR_oo_extract' and `/usr/lib/libextractor/libextractor_oo.so: undefined symbol: _EXTRACTOR_oo_extract'.
Resolving `extract' method of plugin `oo' failed: (null)
Plugin `oo' failed to load!
Resolving symbol `EXTRACTOR_printable_fi_extract' failed, so I tried `_EXTRACTOR_printable_fi_extract', but that failed also. Errors are: `/usr/lib/libextractor/libextractor_printable_fi.so: undefined symbol: EXTRACTOR_printable_fi_extract' and `/usr/lib/libextractor/libextractor_printable_fi.so: undefined symbol: _EXTRACTOR_printable_fi_extract'.
Resolving `extract' method of plugin `printable_fi' failed: (null)
Plugin `printable_fi' failed to load!

(test) Use: Start-stop-search-publish-stats

Before start the server we create a empty(The default configuration in /usr/share/gnunet/defaults.conf must be ok for now) config file
mkdir $HOME/.gnunet/ && touch $HOME/.gnunet/gnunet.conf

Start(as normal user)
$ gnunet-arm -s

Stop
$ gnunet-arm -e

search(without -tn option --number of seconds-- you must type Ctrl-C to get back the prompt)
here's their test file (GPL)
$ gnunet-search -t6 GPL

I too publish 2 file for testing (you can find & download them if my Gnunet server is on)

for the first file
$ gnunet-search "Hacking The Art of Exploitation 2nd Feb.2008.chm"

or trough the keywords extracted automatically from libextractor
$ gnunet-search hacking
or
$ gnunet-search exploit
or
$ gnunet-search application/x-chm
or
$ gnunet-search Jon Erickson

for the 2nd file
harrykar@harrysas:~$ gnunet-search application/pdf
#0:
gnunet-download -o "Gray Hat Hacking Second Edition.pdf" gnunet://fs/chk/FOD1NDAC56PI4J0SF638BM85P07BN2DD9IPDAT8S2Q96M6V816CEUASM99UAUKBHSS71K5VR5VCJD1E3NH316A5QEOM82TKA49JLTK8.5E3PAB8USRH7C8B4I065M44MQ63SDJALSF6G5267KS1N6SIHC41V2MPKAOLR35UVLRES2E0EPVAMN6TUENO57KVBRDMQC5OIV7O4200.13163167

#1:
gnunet-download -o "remote_BOF_explanation.pdf" gnunet://fs/chk/E5P5JN0RLU3480EPSNEABGV069F8V08N1LRNE8KNMNB45K6VKFQ7DSIBP41360PL4SPTI6HGIDN6CLFO9F413O2D1B23U0A8GP1F8MO.ADO4MVCO84JDLF29PRTT4SIJP6SU5EUPLSKEDN48FOCREELCHUIPLN7F8PV03TU1BBS1V546B5ITP8EFHI9D6DGD7AK1QRSB1R2FE90.203354

#2:
gnunet-download -o "You And Your Research.pdf" gnunet://fs/chk/BKO1NJO06EPR7L5LA0KHOR4U8UTVC5ACRABR08H1FTE1PS9D57I6CUQR7DFTO3KF9JGKB8M7APO5M7M7U7U10A8INV5A67EB0O72SU8.VTM4RGSO7EL6502DQ4HHD7PKHTJMOREM1GOP5KGVP07DQI2B899JMH3SE910LRUAJMP4CSHC6CAABI0C2R9M07END989MM3H1DO5MB0.96313

download
$ gnunet-download -o "gpl-3.0.txt" gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8UO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147

gnunet-download -o "Hacking_The_Art_of_Exploitation_2nd_Feb.2008.chm" gnunet://fs/chk/G2MPAJBK7SGLP161I54H8EFAL5J8LOONJOPJDCDJSALE7F3KAG8RL67QRQORTB9IU82KVC4MNVV8NVCR5PPMR8M83N6CPEJNJV6N2C8.1K2M2JB1RC00NLUO6BUOV9E8IO1TC60QJFRU93QE2OAEUC56J7PCFVUL5760E0M9SN3UHMIDG0S5V3GALTB4C5EJ1C72QBNPQ2NC3B0.4900023

publish (go to the dir you have the file to share)
$ gnunet-publish -k hacking -k exploit -m "title:Hacking The Art of Exploitation 2nd Feb.2008.chm" -m "author name:Jon Erickson" -m "mimetype:application/x-chm" Hacking_The_Art_of_Exploitation_2nd_Feb.2008.chm
Publishing `Hacking_The_Art_of_Exploitation_2nd_Feb.2008.chm' done.
URI is `gnunet://fs/chk/G2MPAJBK7SGLP161I54H8EFAL5J8LOONJOPJDCDJSALE7F3KAG8RL67QRQORTB9IU82KVC4MNVV8NVCR5PPMR8M83N6CPEJNJV6N2C8.1K2M2JB1RC00NLUO6BUOV9E8IO1TC60QJFRU93QE2OAEUC56J7PCFVUL5760E0M9SN3UHMIDG0S5V3GALTB4C5EJ1C72QBNPQ2NC3B0.4900023'.

stats
$ gnunet-statistics

peerinfo
$ gnunet-peerinfo