manbytesgnu_site

Source files for manbytesgnu.org
git clone git://holbrook.no/manbytesgnu_site.git
Log | Files | Refs

commit 137651cccd5fa48b32aa9727935b238191c7d49e
parent d4bae1bcd3a38e5dd2d3d11637a3cde711216357
Author: lash <dev@holbrook.no>
Date:   Sat, 12 Nov 2022 10:08:48 +0000

Change site history git repo address

Diffstat:
M.gitignore | 3+++
Mcontent/20221020-gnunet-debian-qemu.rst | 15++++++++-------
Mcontent/20221021_gnunet_nonstandard_ext.rst | 28+++++++++-------------------
Mlash/templates/base.html | 2+-
4 files changed, 21 insertions(+), 27 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,3 +1,6 @@ *.o *.pyc __pycache__ +output/ +pelican/ +simple/ diff --git a/content/20221020-gnunet-debian-qemu.rst b/content/20221020-gnunet-debian-qemu.rst @@ -56,16 +56,18 @@ Depends libsqlite3-dev net-tools miniupnpc + python3-sphinx + pythno3-sphinx_rtd_theme Optionals: * miniupnpc for upnpc support * net-tools provides ifconfig - +* sphinx isn't strictly necessary unless building documentation (bootstrap script will complain a bit) .. - $ git clone -b v0.17.6 https://git.gnunet.org/git/gnunet.git + $ git clone -b 1436e4266673df53f1a692e4c9c9a74d621b0a8e https://git.gnunet.org/git/gnunet.git $ cd gnunet $ ./bootstrap $ ./configure --disable-documentation --enable-logging=veryverbose @@ -105,9 +107,9 @@ Set up netdev group and udev rule Given device on host connected to internet is :code:`eth0` -Source `stty.io`_ for setup and parms. +Source `sttyio`_ for setup and parms. -Source `stackoverflow.com`_ for iptables rule +Source `stackoverflow`_ for iptables rule .. @@ -170,8 +172,7 @@ My device connected to internet was on :code:`192.168.8.147/24`. # to ssh to the guest if using bridge, make sure specify explicit interface $ ssh -b 192.168.8.147 root@192.168.99.13 -.. - _stty.io: https://stty.io/2019/05/13/qemu-vm-wireguard-vpn-tun-tap-networking/ +.. _sttyio: https://stty.io/2019/05/13/qemu-vm-wireguard-vpn-tun-tap-networking/ - _stackoverflow: https://unix.stackexchange.com/questions/525822/nat-configuration-for-qemu-kvm-guest-and-host-networks +.. _stackoverflow: https://unix.stackexchange.com/questions/525822/nat-configuration-for-qemu-kvm-guest-and-host-networks diff --git a/content/20221021_gnunet_nonstandard_ext.rst b/content/20221021_gnunet_nonstandard_ext.rst @@ -28,34 +28,24 @@ non-standard gnunet location ## build extension +Change the :code:`.project_dirname` from :code:`gnunet_ext` to :code:`gnunet` in the :code:`GNUNET_OS_ProjectData` struct in the tool and service source files, otherwise configuration will be looked up in the wrong location. + +Resolving the gnunet path is done using :code:`libgnunetext.so` so it is important to make sure it has been linked. + .. code-block:: console $ cd <gnunet-ext-repo-dir> $ export PKG_CONFIG_PATH=$GNUNET_BUILD_DIR/lib/pkgconfig/ $ ./bootstrap $ ./configure --with-gnunet=$GNUNET_BUILD_DIR --prefix=$GNUNET_BUILD_DIRk - # libgnunetext.so is not available at build time if we don't make this first. - $ pushd src/ext - $ make libgnunetext.la - $ popd - $ make -j8 CFLAGS="-I$GNUNET_BUILD_DIR/include -L$GNUNET_BUILD_DIR/lib -llibgnunetext" + $ make -j8 CFLAGS="-lgnunetext" $ make install ## run extension .. code-block:: console - $ GNUNET_BUILD_DIR=/home/lash/src/build/gnunet/0.17.6/build - $ GNUNET_EXT_BUILD_DIR=$(realpath ./build) - $ PATH=:$GNUNET_EXT_BUILD_DIR/lib/gnunet/libexec:$GNUNET_BUILD_DIR/bin:$PATH - $ LD_LIBRARY_PATH=/home/lash/src/build/gnunet/0.17.6/build/lib - $ ./build/lib/gnunet/libexec/gnunet-service-ext -c ~/.config/gnunet.conf -L debug - - -## run with arm - -*change* the :code:`.libname` in the *project description struct* to "libgnunetutil." Otherwise it will produce the wrong configuration path. [1]_ - - -.. - .. _[1]: Services in 0.17.6 get their configuation variables from :code:`/proc/<pid>/maps` by taking the path of `libgnunetutil`. The extension template source filess me the :code:`.libname` is named after the project. However, it does not seem to build (and load) that object when starting the service in its template form. Instead, the binary executable (:code:`libexec`) path is used. + $ GNUNET_BUILD_DIR=/home/lash/src/build/gnunet/cur/build + $ export PATH=$GNUNET_BUILD_DIR/lib/gnunet/libexec:$GNUNET_BUILD_DIR/bin:$PATH + $ export LD_LIBRARY_PATH=$GNUNET_BUILD_DIR/lib + $ ./build/lib/gnunet/libexec/gnunet-service-ext -L debug diff --git a/lash/templates/base.html b/lash/templates/base.html @@ -35,7 +35,7 @@ <footer id="contentinfo" class="body"> <hr/> <address id="about" class="vcard body"> - Powered by <a title="Pelican is a static site generator" href="https://getpelican.com/">Pelican</a> | <a title="manbytesgnu.com is licensed under Creative Commons Attribution-ShareAlike 4.0 International" href="https://holbrook.no/share/licenses/cc/cc-by-sa-4.0.txt">CC-BY-SA 4.0</a> | <a title="GIT site history since jan 15th 2022" href="https://git.defalsify.org/manbytesgnu_site">Site history</a> | ETH <a href="./images/donate_eth_qr.png" title="Ethereum address for tipping">0x185Cbce7650FF7Ad3B587E26B2877d95568805e3</a> | BTC <a href="./images/donate_btc_qr.png" title="Bitcoin address for tipping">12DnRH9HpJ6cfET2LKHrURn2yZBDfDEwHv</a> + Powered by <a title="Pelican is a static site generator" href="https://getpelican.com/">Pelican</a> | <a title="manbytesgnu.com is licensed under Creative Commons Attribution-ShareAlike 4.0 International" href="https://holbrook.no/share/licenses/cc/cc-by-sa-4.0.txt">CC-BY-SA 4.0</a> | <a title="GIT site history since jan 15th 2022" href="https://holbrook.no/src/manbytesgnu_site">Site history</a> | ETH <a href="./images/donate_eth_qr.png" title="Ethereum address for tipping">0x185Cbce7650FF7Ad3B587E26B2877d95568805e3</a> | BTC <a href="./images/donate_btc_qr.png" title="Bitcoin address for tipping">12DnRH9HpJ6cfET2LKHrURn2yZBDfDEwHv</a> </address><!-- /#about --> </footer><!-- /#contentinfo --> </body>