Re: [9fans] usb problem of Asus P5K-VM motherboard

2009-01-30 Thread erik quanstrom
 I disabled onboard nic(Marvell 88E8056), and using Intel's i82557.
 A curious poit is there are only six usb ports here.
 When I plugin any USB device on this board, system hungs.
 
 Kenji

i'm don't know very much about plan 9's usb stuff but
the motherboard claims more ports (12) than UsbMax
(10).  i wonder if that could cause some trouble.
see pc/devusb/^usbinit.

- erik



[9fans] cd booting into network

2009-01-30 Thread matt

Hi,

after a while I worked out that I couldn't auth fully from the boot cd 
because it doesn't have /boot/factotum


I chose a pc kernel and made a new bootdisk

so, just for the record

http://maht0x0r.blogspot.com/2009/01/plan9-boot-cd.html




Re: [9fans] Opinion on the Nova Lite PX20 as cpu server

2009-01-30 Thread erik quanstrom
 I am planning to a get a complete small footprint computer. I found
 the Asus Nova Lite Px20
 
 Is this going to be a challenging, guru level install? The ethernet
 card seems to be an atheros L2 so it's probably not supported.

no support for the l1x, l1e or l2 atheros wired cards.

i'm not recommending the machine because i just glanced at
the specs, but why not go with something that's a little more
straightforwardly supported like (literally the first thing that
popped up):
http://www.newegg.com/Product/Product.aspx?Item=N82E16856107034

- erik



Re: [9fans] Ogg/Vorbis ported

2009-01-30 Thread erik quanstrom
 As with exit(), it can be replaced automatically with exits() but you
 still have to figure out what message you want in your exits().
 
 If anyone is interested, this is what I used as a compatibility shim:
 
 #include u.h
 #include libc.h
 
 void
 exit (int code) {
   switch (code) {
   case -1:
   exits(FAILURE);
   case 0:
   exits(0);
   default:
   exits(Unknown condition);
   }
 }
 
 One could instead print(%d, code), or print(FAILURE: %d, code).
 
 Two cents, please!

printing would not make sense.  neither unix nor plan 9
print exit codes.

this seems to me too complicated and not complicated enough.
on the not-complicated-enough side, to get every last program,
you would need to make exit do something like

int
exit(int r)
{
static char buf[16];

if(r == 0)
exits(0);
snprint(buf, sizeof buf, %d, r);
exits(buf);
}

and you would need to rewrite wait to atoi(w-msg).
this would catch programs like postfix that don't treat
exit status as a boolean.  (as god intended.)

but once you've done this, you're going half-way down
the ape path.

otoh, if you design in unix/plan 9 portability, it's too
much.

int
exits(char *s)
{
/* missing atexits */
exit(s  *s);
}

porting is rancid, isn't it?

- erik




Re: [9fans] Sources Gone?

2009-01-30 Thread lucio
 Some level of smartness in how block traversal is made needs to
 be there.

That involves partitioning, which defeats the fundamental mechanics of
venti.  It then becomes preferable to run distinct venti services,
which is the only way in which different backing stores can be used at
this stage.  And as far as I can establish there is no way of
specifying distinct venti archives to a single fossil server, so now
you also need distinct fossils.  Feasible, of course, but a bit _too_
distributed to be practical.

++L




[9fans] [ANN] LDAP keyfs and secstore

2009-01-30 Thread Nathaniel W Filardo
Hello all.  In order to ease the local (JHU ACM) use of Plan 9, I have
written a LDAP-based keyfs and secstore-alike (a program which consumes LDAP
passwords and emits Plan 9 secrets).  I figured this might be of interest to
others, and so have something of a writeup available at
https://wiki.acm.jhu.edu/Plan9/LDAPAuth .  The code, which is somewhat
sloppy and more than a little hackish but perhaps a good start, is available
at http://www.acm.jhu.edu/~nwf/p9-ldapauth/ .

Constructive commentary and/or patches welcome. Enjoy.
--nwf;


pgpQah9IhC5Zp.pgp
Description: PGP signature