9front - general discussion about 9front
 help / color / mirror / Atom feed
From: arisawa <arisawa@ar.aichi-u.ac.jp>
To: 9front@9front.org
Subject: Re: [9front] non-9front dhcp server -> /lib/ndb/local ignored?
Date: Tue, 29 Dec 2015 12:56:24 +0900	[thread overview]
Message-ID: <4E0E0337-45A1-49BD-A423-2939A71833D4@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <c0a7642344fbb691d422a28d549b7633@cb.inri.net>

hello

> 2015/12/29 10:09、sl@stanleylieber.com のメール:
> 
> Doesn't your virtualbox terminal always see itself as being on its own
> local network? Correct me if I'm wrong, but if I understand you correctly,
> your host OS gets its IP from the "mobile router wifi with mobile ISP based
> DHCP and DNS," while your virtualbox terminal gets its IP from virtualbox
> itself. Is your virtualbox terminal getting its IP from virtualbox via
> DHCP, or is it configured in ndb with a static IP address?

I should have written more information on this subject.

virtualbox works fine with plan9 except that doesn’t support ipv6.
we can share files using u9fs, and also we can cut&paste between host and guest (not perfect though).
virtualbox serves nat and bridge networks for the guest os.
net is much better for plan9 terminal on macbook because the plan9 terminal can look host (macbook) using fixed ip address, which makes automatic connection possible from guest to host.

there is a problem with current /rc/bin/termrc.
that does not work well for the terminals with dynamically assigned IP by dhcp server.
therefore I have /rc/bin/termrc.local with content:
if(! ~ $#kbmap 0)
	cp /sys/lib/kbmap/$kbmap /dev/kbmap
ether=()
if(test -e /net/ether0/addr)
	ether=`{cat /net/ether0/addr}
sysname=`{ndb/query ether $ether sys}
if(~ $#sysname 0 || ~ $sysname ''){
	ip/ipconfig
	sysname=cirno
	echo -n $sysname >/dev/sysname
}

probably we may have better solution.
I think some codes in the above /rc/bin/termrc.local should be moved into /rc/bin/termrc so that
plan9 terminals under non-plan9 environment can have it’s ip address without manual intervention .

>> 
>> 	ns=hebe.loca
> 
> Is this a typo?

yes.



  parent reply	other threads:[~2015-12-29  3:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-29  1:09 sl
2015-12-29  2:31 ` Steve Simon
2015-12-29  3:56 ` arisawa [this message]
2015-12-29  5:04 ` cinap_lenrek
  -- strict thread matches above, loose matches on Subject: below --
2015-12-29 19:14 sl
2016-01-04 17:47 ` Ethan Grammatikidis
2015-12-29  2:55 sl
2015-12-28 20:34 sl
2015-12-29  0:20 ` [9front] " arisawa

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=4E0E0337-45A1-49BD-A423-2939A71833D4@ar.aichi-u.ac.jp \
    --to=arisawa@ar.aichi-u.ac.jp \
    --cc=9front@9front.org \
    /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).