From d73229834a9f04fe5f80d9bad38af8fdd71fa620 Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Wed, 25 Aug 2010 17:46:09 +0200 Subject: blog post: preparing a showcase qemu image (work in progress). --- .../weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn | 70 +++++++++++++++++++--- 1 file changed, 62 insertions(+), 8 deletions(-) diff --git a/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn b/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn index 68755d46..45272656 100644 --- a/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn +++ b/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn @@ -9,20 +9,70 @@ For that I want to use: * Translators from [hurd-extras](http://www.nongnu.org/hurdextras/) and the [incubator](http://git.savannah.gnu.org/cgit/hurd/incubator.git/), and naturally * a lot of apt-get update; apt-get upgrade and apt-get dist-upgrade :) (all worked flawlessly). -## Hurdextras +## Working + +### Generally + + # ssh with public key + apt-get install random-egd + ssh-keygen + + # build tools + apt-get install build-essential + +### StoreIO + + # mount an iso image + mount foo.iso bar -t iso9660fs + # see myfile as device + settrans foo /hurd/storeio myfile + # so that means I can pack a complete chroot (300MB) into a file with storeio and ext2fs — giselher + + # nfs mount anywhere (TODO: check this with antrik) + mount server:/home /home -t nfs + settrans /home /hurd/nfs server:/home + +## In Progress + +### Hurdextras hg clone -## Tarfs +### httpfs + + # pkg-config is needed to avoid “PKG_CHECK_MODULES syntax error near unexpected token `HTTPFS,'” + # pkg-config must be installed before you run autoreconf. + apt-get install autoconf autoconf-archive libxml2-dev pkg-config + autoreconf -i -f + ./configure + make + make install + + settrans -ac gnu /usr/local/httpfs www.gnu.org/ + # (breaks, because libxml2 needs pthreads → work to do.) + # (what we need: pthreads in translators. → see the work of Barry) + # check: for i in `objdump -x /usr/local/bin/httpfs |grep NEEDED| sed s/.*NEEDED//`; do echo $i; objdump -x /usr/lib/$i | grep pthread; objdump -x /lib/$i | grep pthread; done + +### Tarfs - cd hurdextras/tarfs + apt-get install zip libz-dev libbz2-dev + hg clone http://bitbucket.org/ArneBab/hurd-tarfs tarfs + cd tarfs make make install - tar -cf test/intro.tar repos/hurd_intro - settrans -ac t test/intro.tar - (settrans: /hurd/tarfs: Translator died :( ⇒ more work to do ) + # works, though with warnings. + + settrans -ca new /hurd/tarfs -cz test/intro.tar.gz + cp repos/intro/README new/ + settrans -g new + tar -tf test/intro.tar.gz + # works + + tar -cf test/intro.tar repos/intro + settrans -ac t /hurd/tarfs test/intro.tar + # (settrans: /hurd/tarfs: Translator died :( ⇒ more work to do ) -## nsmux +### nsmux git clone git://git.sv.gnu.org/hurd/incubator.git nsmux cd nsmux/ @@ -40,7 +90,7 @@ For that I want to use: tar -cf test/intro.tar repos/hurd_intro ls test2/intro.tar,,tarfs -## clisp +### clisp git clone git://git.sv.gnu.org/hurd/incubator.git clisp cd clisp/ @@ -50,3 +100,7 @@ For that I want to use: make make install + +### debugging Translators + + rpctrace -- cgit v1.2.3 From b6638a3b7e1fae2b7389b899bb9b60a0d9e271cb Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Wed, 25 Aug 2010 17:48:53 +0200 Subject: added nfs translator. --- hurd/translator.mdwn | 1 + 1 file changed, 1 insertion(+) diff --git a/hurd/translator.mdwn b/hurd/translator.mdwn index 75020cb2..8037550b 100644 --- a/hurd/translator.mdwn +++ b/hurd/translator.mdwn @@ -89,6 +89,7 @@ Read about translator [[short-circuiting]]. * [[tmpfs]] * [[procfs]] * [[nsmux]] +* nfs -- easily mount nfs anywhere. See /hurd/nfs * ... # Translators (only) in Hurdextras -- cgit v1.2.3 From d4bceea80613e57f7c13c1e8b0f38a68c8210219 Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Wed, 25 Aug 2010 18:08:51 +0200 Subject: link to the pthread work of barry. --- community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn b/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn index 45272656..d55527a7 100644 --- a/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn +++ b/community/weblogs/ArneBab/Hurd-showcase-qemu-image.mdwn @@ -50,7 +50,7 @@ For that I want to use: settrans -ac gnu /usr/local/httpfs www.gnu.org/ # (breaks, because libxml2 needs pthreads → work to do.) - # (what we need: pthreads in translators. → see the work of Barry) + # (what we need: pthreads in translators. → see the [work of Barry](https://savannah.gnu.org/task/?func=detailitem&item_id=5487)) # check: for i in `objdump -x /usr/local/bin/httpfs |grep NEEDED| sed s/.*NEEDED//`; do echo $i; objdump -x /usr/lib/$i | grep pthread; objdump -x /lib/$i | grep pthread; done ### Tarfs -- cgit v1.2.3