From: trebol55555@aol.com (trebol)
Subject: [9fans] Venti on NetBSD64
Date: Fri, 25 Jul 2014 00:02:44 +0100 [thread overview]
Message-ID: <53d19094.cMJI2nomfnIku9Kd%trebol55555@aol.com> (raw)
This mail is just in case someone is thinking on setting a venti server
or just install plan9port in NetBSD64. I know is a p9p matter, but I've
saw a lot of people on this list using p9p to serve venti and even fossil
for their Plan9 machines. If this is a bad behavior on the mailing list,
please let me know!
The torture begins...
install netbsd32_compat40.
Compile p9p in netbsd-4.0 i386 (needs perl), and move to the 64
machine, in the same path or change $PLAN9/lib/moveplan9.files.
I'll use /emul/netbsd32/usr/local/plan9port
cp i386's libX11.so.6.2 to /emul/netbsd32/lib and soft link to:
libX11.so.6
libX11.so
create /etc/ld.so.conf:
/lib
/usr/lib
/emul/netbsd32/lib
create ptys:
# cd /dev
# sh MAKEDEV opty
Edit .profile
export PLAN9=/emul/netbsd32/usr/local/plan9port
export PATH=$PATH:$PLAN9/bin
Edit _default in /etc/man.conf
_default {/emul/netbsd32/usr/local/plan9port,/usr/{share,X11R7,X11R6,pkg,local}}/man/
PROBLEMS:
venti must use files:
venti/fmtarenas: can't open partition /dev/cgd2a: can't determine size of partition /dev/cgd2a
Don't use tcp!*!venti, errors about 0.0.0.0... best use tcp!your_ip!venti. The same for http.
Problems with rc, for example executing scripts like man:
$ man venti
rc (/emul/netbsd32/usr/local/plan9port/bin/rc): null list in concatenation
This is a problem of NetBSD's compatibility mode. Works fine in i386 4.0.
Don't use shells/rc !!, from http://tobold.org/article/rc 's man page:
INCOMPATIBILITIES
The Tenth Edition rc does not have the else keyword. Instead, if is
optionally followed by an if not clause which is executed if the pre-
ceding if test does not succeed.
[...]
For . file, the Tenth Edition rc searches $path for file. This rc
does not, since it is not considered useful.
[...]
Install 9base's rc:
$ git clone git://git.suckless.org/9base
$ cd 9base; make
$ mkdir $PLAN9/etc
$ cp rc/rc $PLAN9/bin; cp rc/rcmain $PLAN9/etc
So the equation is something like:
Venti + NetBSD64 = netbsd32_compat40 + p9p from i386 4.0 + 9base's rc
I hope in the future I can add '= Plan9' to this mess.
trebol.
next reply other threads:[~2014-07-24 23:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-24 23:02 trebol [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-07-24 22:56 trebol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53d19094.cMJI2nomfnIku9Kd%trebol55555@aol.com \
--to=trebol55555@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).