Re: [9fans] Mars Needs Women

2010-04-25 Thread Alex Lee
On 04/25/2010 06:07 PM, Patrick Kelly wrote:
 -Original Message-
 From: 9fans-boun...@9fans.net [mailto:9fans-boun...@9fans.net] On Behalf Of 
 Karljurgen Feuerherm
 Sent: Sunday, April 25, 2010 6:33 PM
 To: 'Fans of the OS Plan 9 from Bell Labs'
 Subject: Re: [9fans] Mars Needs Women

 From the Oxford Encyclopedic Dictionary:

 ethos. n. the characteristic spirit or attitudes of a community, people, or 
 system, or of a literary work, etc.
 
 Odd considering that’s the Greek definition of ethikos. I just love how the 
 English language can't keep things straight.
 Oh well, no use getting into a language debate. Thanks for pointing that out, 
 I'll have to remember that.

I'm not saying that English doesn't often mess things up, but in this
case I think it does all right. ἦθος only means accustomed place in
its most literal sense. Otherwise it can mean custom, disposition,
character, etc.:
http://artflx.uchicago.edu/cgi-bin/philologic/getobject.pl?c.31:3:159.LSJ

ἠθικός is the adjective form (just think of other -ικός words, like
poetic or economic).

Alex
(... hoping that it is not part of the 9fans ethos to get too annoyed
but this sort of off-topic post)


-- 
  alex...@fastmail.net



[9fans] ktrans on p9p

2010-04-03 Thread Alex Lee
Dear all,

I've found ktrans to be extremely useful in 9vx (thanks, Kenji), and I'm
wondering now whether it would be possible to use it with plan9port (on
Linux). Mainly I would want this for acme -- would it make sense to
modify p9p acme to include ktrans within it? Or is there a better
approach? Any suggestions on how to go about this would be much appreciated.

Also, in case it is of use to anyone else, I modified ktrans to support
ancient/polytonic Greek, using betacode input:
  http://bitbucket.org/alexlee/ktrans/
And here is a ttf2subf'd version of DejaVu Sans, for better Greek glyph
coverage:
  http://dl.dropbox.com/u/1734204/djsans.tar.gz

Alex




Re: [9fans] Plan 9 Xen -- Follow up on previous 9fans topic

2009-10-02 Thread Alex Lee
On Fri, Oct 2, 2009 at 8:21 AM, Jack Norton j...@0x6a.com wrote:
 I would like to know if the fellow below (Andreas Erikson), ever tried to
 compile plan 9 xen3 sources against xen 3.2.x (or 3.[2-4].x for that
 matter).   I am going to try that this weekend, and if he started to patch
 some code, I would appreciate the head start.

This doesn't give much of an answer to Jack's question, but in case it
is of use:

I recently tried compiling a 9xen kernel, because I wanted to run Plan
9 with Debian Lenny, which has a prepackaged Xen 3.2.1 system.

The kernel did not compile against the most recent sources. There was
a mismatch in the function prototype of cpuid in pc/fns.h and
xen3/fns.h that caused compilation to fail: void cpuid(int, ulong
regs[]) versus void cpuid(char*, int*, int*).

I had an older install CD image, from around Aug 2008, so tried again
using sources from that. This time compilation worked, but Xen
rejected the kernel and gave some sort of version mismatch error
(which I think is the same error it gave when I tried booting
Richard's precompiled 3.0.2–4 kernels).

Sorry for the lack of detail; I don't have Xen 3.2.1 running anymore,
so I can't run it again to see the exact message. If I find time I'll
try it again. I'd love to hear if anyone else has made more progress.
Unfortunately, like Andreas, I'm lacking in the time and know-how to
contribute much to this.

In the end I just installed the Xen system from Etch (oldstable),
which uses Xen 3.0.3. Richard's kernels boot and have been working
great (thanks, Ron and Richard, for your work on this!).

Alex


From: Richard Miller 9f...@ham... Subject: Running Plan 9 on Xen 3.2
 Date: Tue, 30 Jun 2009 08:57:25 +0100
 From: Andreas Eriksen andr...@pvv...
 Does this mean Plan 9 is not compatible with Xen 3.2, or does it just
 need a recompile or some other quick fix?
It's compatible with Xen 3.0.x for some x. I haven't checked how much the
 Xen API has changed for 3.2 -- do try recompiling and see what happens!  of
 the source files are no longer world readable Sorry, my fault. Fixed now.
 -- Richard


 -Jack


-- 
Alex Lee alex...@uchicago.edu



Re: [9fans] lguest on 2.6.25

2008-08-28 Thread Alex Lee
On Thu, Aug 28, 2008 at 10:38 AM, ron minnich [EMAIL PROTECTED] wrote:
 this is weird. So, to recap, your timezone is set correctly, and yet
 you are four hours off.

 A useful thing to do is cat /dev/time and see how it changes.

 The time from lguest is simple: you read a 64-bit # which is time.
 It's just like Xen that way.

 Also, try this to test another issue:

 date  sleep 60  date

 Two things: should take 60 seconds by the watch and the two dates
 should report 60 seconds apart.

 Do they?

 ron

I've doublechecked the timezone setting, and it appears to be correct.
The 'date' test seems to work fine:

# date  sleep 60  date
Thu Aug 28 15:52:19 CDT 2008
Thu Aug 28 15:53:19 CDT 2008

Within a second of one another, I ran:

lguest: cat /dev/time
 1219956674   1219956674748050432   12199566747480504324294967296
host: date +%s
1219943774

So lguest is 12900 seconds ahead (= 215 minutes, = 3 hrs 35 minutes).
John, are you getting the same?

Best,
Alex


-- 
Alex Lee [EMAIL PROTECTED]



Re: [9fans] lguest on 2.6.25

2008-08-27 Thread Alex Lee
On Tue, Aug 26, 2008 at 1:44 AM, John Soros [EMAIL PROTECTED] wrote:
 Ok, still, it would be great to know how to set the time, as my time is way 
 off (by more than 4 hours).
 Best++
 John

Hi again,

A couple of updates: I'm getting the same cron messages and time
problems that John is seeing. I've made sure that timesync isn't
running. My lguest time is about 3.5 hours ahead of host time.

As for the load issue: The full cpu usage that I was seeing earlier
actually stops after a several minutes.

After booting, ^T^Tp shows genrandom as Running. Several minutes later
the cpu usage drops to near idle, and genrandom goes to Wakeme. Then
every now and then (I'm not sure if anything in particular triggers
it, or if just randomly happens) I see the cpu usage jump again, and I
can see that genrandom is once again Running. Then after several
minutes it stops again.

When genrandom is running, stats shows a load of around 3000.
Otherwise, load is always around 2000.

The problem looks similar to this:
http://9fans.net/archive/2006/03/588 -- except that the lguest
instance works fine while genrandom is running. Is this genrandom
behavior anything out of the ordinary?

Alex


-- 
Alex Lee [EMAIL PROTECTED]



[9fans] lguest on 2.6.25

2008-08-24 Thread Alex Lee
Hi all,

I'd like to set up a cpu/auth/file server for my home network. I
already have a laptop server running Ubuntu 8.04, so the idea is to
also get Plan 9 running on it, via lguest. It's mostly working, but
I'm encountering a few problems.

Here's what I've done so far (maybe it's excessive list every single
step, but just in case...):

1. Grab relevant files.

- Download 9lguestcpu.2.6.25.elf and RUNLGUEST from Ron's contrib directory
- Get thx9.img out http://9grid.net/rminnich/src/lguest/thnx9.bz2
- Download the 2.6.25 kernel: linux-2.6.25.tar.bz2 (dated 2008-04-17;
I tried the latest version, 2.6.25.16, but encountered the same
problems that were reported in http://9fans.net/archive/2008/07/690)

2. Compile and install kernel

- I start with the stock 2.6.25 kernel. I then copy in my current
config (Ubuntu 2.6.24-19-generic), run 'make oldconfig', then answer
the config prompts with mostly the defaults.
- Then I configure the LGUEST, LGUEST_LGUEST, VIRTIO, etc. config
entries as per the lguest.txt documentation.
- Then I compile (here the debian way, with 'make-kpkg kernel_image
kernel_headers').
- I also run 'make' in Documentation/lguest to get my 'lguest' binary.

3. Prepare host machine

- Install the new kernel on the host machine and reboot.
- modprobe lg syscall_vector=64
- iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
- echo 1  /proc/sys/net/ipv4/ip_forward

4. Run Plan 9 in lguest

- I modified RUNLGUEST so that the command is:
  ./lguest 256 9lguestcpu.2.6.25.elf --block=thx9.img
--tunnet=192.168.19.1
'venti=#S/sd00/arenas;bootdisk=local!#S/sd00/fossil;bootargs=local!#S/sd00/fossil'
- sudo ./RUNLGUEST

Eventually it prompts for the filesystem, and I pick the default. Here
is the output from that point onwards:

root is from (tcp, il, local)[local!#S/sd00/fossil]:
disk is #S/sd00/fossil
AUTHENTICATE ...
time...
GET VENTI ENV! #S/sd00/arenas
IN THERE AND nf is 1
F 0 is #S/sd00/arenas
venti...configloopbackk!
DID CONFIG LOOPBACK
setenv venti to tcp!127.1!17034
fossil(#S/sd00/fossil)...version...time...
init[0] = init
init[1] = -c
LGATTACH edev c0440b90 ctlr c0440dd0
LGINIT
SETMAC: NO
ETHERIN: devno 3 ring 0 irq 34
ETHEROUT: devno 3 ring 0 irq 35
lguestnetwork is
ndb/dns: can't read my ip address
rc (cpurc): null list in concatenation

init: starting /bin/rc
%

Networking wasn't working at first. So I modified /lib/ndb/local so
that the dns entry pointed to my router (192.168.1.1), and then I ran
the following:

% ip/ipconfig -g 192.168.19.1 ether /net/ether0 192.168.19.2 255.255.255.0
% ndb/dns -r

And then I can resolve names and ping out. So far, so good, but there
are three problems that I'm still trying to figure out:

1. How can I avoid having to manually configure networking each time I boot?
2. I can ping from the host machine to the lguest interface
(192.168.19.2), but when I try to connect with drawterm the connection
is refused.
3. lguest always runs at full CPU. How can I figure out why this is
happening? (I don't feel comfortable running lguest for more than a
few minutes at a time -- the laptop gets pretty hot.)

Any advice or pointers on these issues would be greatly appreciated. Thanks!

Alex


-- 
Alex Lee [EMAIL PROTECTED]



Re: [9fans] lguest on 2.6.25

2008-08-24 Thread Alex Lee
On Sun, Aug 24, 2008 at 11:32 PM, ron minnich [EMAIL PROTECTED] wrote:
[snip]
 lguestnetwork is

 see this line? It's a variable read in /rc/bin/cpurc. You can check
 that script and see how it can be set so that networking is a little
 better. More I do not recall and the machine is not nearby ...

[snip]
 2. I can ping from the host machine to the lguest interface
 (192.168.19.2), but when I try to connect with drawterm the connection
 is refused.

 Try restarting the listen? that's an odd one. If you telnet to the
 port from the host to the guest what do you see?

Ah, I see now. I added lguestnetwork=NAT to parameters in RUNLGUEST,
and now both networking and drawterm are working great!

 3. lguest always runs at full CPU. How can I figure out why this is
 happening? (I don't feel comfortable running lguest for more than a
 few minutes at a time -- the laptop gets pretty hot.)

 hmm. I have not seen this one. Again, not sure why this is happening.
 But the halt
 may not be working. Possibly the API has changed -- not sure.

 ron

Let me know if there's any information that I can provide to help with
this. Many thanks for all the hard work that you've put into doing
this port.

Best,
Alex


-- 
Alex Lee [EMAIL PROTECTED]