9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] porting from vs. porting to Plan 9
@ 2003-10-17 15:20 mirtchov
  2003-10-17 16:34 ` Skip Tavakkolian
  2003-10-17 16:43 ` Ronald G. Minnich
  0 siblings, 2 replies; 46+ messages in thread
From: mirtchov @ 2003-10-17 15:20 UTC (permalink / raw)
  To: 9fans

I remember how thrilled I was when I first saw /usr/ports/plan9 on a
FreeBSD system -- my first reaction was "woo-hoo, I don't need an
extra machine to run Plan 9 on!"...  Later on I came to realize that
they weren't what I thought they were, and that if I want the real
thing I should just get the real thing and use it, not look for a
replacement.

Now that it seems everybody is happy with porting Plan 9's libs to
other operating systems, I'm reminded of these ports again, but not in
a good way.  You see, I hold the opinion that if Plan 9 becomes a
'niche' OS, one that people run in VMWare or otherwise hosted on top
of other systems, it will gradually loose its appeal, and
disappear.  I believe the same will happen if its libraries were
ported elsewhere.

Whether Plan 9 libs on lunix are beneficial (to lunix) is also
questionable -- it's nice to have libdraw for example, but if not
widely adopted it is just a (very small, admittedly) drop of code in
the huge sea that is X.  Besides, non-9fans have gotten used to
looking for familiar things in lunix, and it will be harder to educate
them of the _proper_ Plan 9 way in their world, on their turf, than to
bring them in ours -- they all end up liking Plan 9 at the end, but
that's because they are able to tear off the lunix-built habits by
being forced to live in a Plan 9 environment.

There is a great deal of opposition to bringing/porting other apps to
Plan 9, and I admit I was expecting to see the same opposition to
porting Plan 9's libs to other systems: "why would they want it there
anyway?  throwing pearls before swine!" was going through my head.

You see, without the reason to run Plan 9 it'll just become yet
another dead operating system, just like Oberon recently discussed --
the ideas from it live here to an extent, but the system itself has
long gone...

Opinions?

Andrey




^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [9fans] Re: your mail
@ 2000-08-02  1:24 presotto
  0 siblings, 0 replies; 46+ messages in thread
From: presotto @ 2000-08-02  1:24 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 2129 bytes --]

We changed the cpu protocol between editions.  The change was
to get rid of the second connection for notes.  This was a good
suggestion from Dave Mazieres at MIT.

You can convert the 2ed cpu.c to run on 3ed.  Here's the
diffs:

% diff cpu.c /sys/src/cmd/ocpu.c
21a22
> int	filter(int);
26a28
> int	fflag;
30,31c32,33
< char	*srvname = "cpu";
< char	*notesrv = "cpunote";
---
> char	*srvname = "ocpu";
> char	*notesrv = "ocpunote";
39a42
> int fdd;
50a54,56
> 	case 'f':
> 		fflag++;
> 		break;
109a116,118
> 	if(fflag)
> 		data = filter(data);
> 
124a134
> 	va_list arg;
126c136,138
< 	doprint(buf, buf+sizeof(buf), fmt, (&fmt+1));
---
> 	va_start(arg, fmt);
> 	doprint(buf, buf+sizeof(buf), fmt, arg);
> 	va_end(arg);
183a196
> 
185c198,202
< 	if(amount(fd, "/mnt/term", MREPL, "") < 0)
---
> 
> 	/* push fcall */
> 	if(fflag)
> 		fd = filter(fd);
> 	if(amount(fd, "/mnt/term", MCREATE|MREPL, "") < 0)
282a300
> 	char dir[4*NAMELEN];
285c303
< 	if((*fd = dial(na, 0, 0, 0)) < 0)
---
> 	if((*fd = dial(na, 0, dir, 0)) < 0)
288a307,308
> 	if(strstr(dir, "tcp"))
> 		fflag = 1;
318a339,366
> 
> /* Network on fd1, mount driver on fd0 */
> int
> filter(int fd)
> {
> 	int p[2];
> 
> 	if(pipe(p) < 0)
> 		fatal(1, "pipe");
> 
> 	switch(rfork(RFNOWAIT|RFPROC|RFFDG)) {
> 	case -1:
> 		fatal(1, "rfork record module");
> 	case 0:
> 		dup(fd, 1);
> 		close(fd);
> 		dup(p[0], 0);
> 		close(p[0]);
> 		close(p[1]);
> 		execl("/bin/aux/fcall", "fcall", 0);
> 		fatal(1, "exec record module");
> 	default:
> 		close(fd);
> 		close(p[0]);
> 	}
> 	return p[1];	
> }
> 

You also need to create the /rc/bin/service files on 3ed for
the 2ed ports:

% cat > /rc/bin/service/il17006 << EOF
#!/bin/rc
exec /bin/ocpu -R
EOF
% cat > /rc/bin/service/il17006 << EOF
#!/bin/ocpu -N
EOF
% cat > /rc/bin/service/tcp17005 << EOF
#!/bin/rc
exec /bin/ocpu -f -R
EOF
% cat > /rc/bin/service/tcp17006 << EOF
#!/bin/ocpu -N
EOF
% chmod +x /rc/bin/service/*1700[56]

You can then use ocpu to get back to 2ed.
I'll put these puppies in the next update.

[-- Attachment #2: Type: message/rfc822, Size: 2707 bytes --]

From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans@cse.psu.edu
Subject: [9fans] Re: your mail
Date: Tue, 1 Aug 2000 16:53:42 +0200
Message-ID: <20000801165341.F4605@cackle.proxima.alt.za>

On Tue, Aug 01, 2000 at 09:37:52AM -0400, sah@borf.com wrote:
> 
> Now I need to connect to the V2 fs to transfer important files over to
> V3 so we can complete the 'upgrade.'  Attempts of 9fs to our V2 fs via a
> V3 term return "mount: mount bootes: attach -- authentication failed."
> Also, the V2 fs states "bad AuthTs num."  The passwords and usernames are
> identical on both systems.
> 
I'm running very successfully with 2ed AUTH and FS.  CPUs are somewhat
confused, and I can't quite get the 2ed AUTH to execute the mail stuff
on a 3ed CPU :-(

On the other hand, I'm not sure how a 2ed FS would handle 3ed AUTH,
which may be your problem.  Between a rock and a hard place, like me.
It may of course be merely a question of making sure AUTH and FS are
in the right type of sync, which presumably means the same password
for the FS and the AUTH uid.

I'll enable AUTH on the 3ed CPU server a little later, see what
confusion I can create.  In the meantime...

> So close I can taste it,
> 
... I think you just need a slightly longer tongue, that's all :-)

++L

^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [9fans] Re: your mail
@ 2000-08-01 15:13 forsyth
  0 siblings, 0 replies; 46+ messages in thread
From: forsyth @ 2000-08-01 15:13 UTC (permalink / raw)
  To: 9fans

at vita nuova we run the 3rd edition on cpu server, cpu/auth server, and many terminals with a
second edition file server kernel, with authentication but without fuss.
i'm fairly sure i did not need to change anything.



^ permalink raw reply	[flat|nested] 46+ messages in thread
* (no subject)
@ 2000-08-01 13:37 sah
  2000-08-01 14:53 ` [9fans] Re: your mail Lucio De Re
  0 siblings, 1 reply; 46+ messages in thread
From: sah @ 2000-08-01 13:37 UTC (permalink / raw)
  To: 9fans

Thanks to forsyth, the terms are up and running.  Three cheers.

Now I need to connect to the V2 fs to transfer important files over to
V3 so we can complete the 'upgrade.'  Attempts of 9fs to our V2 fs via a
V3 term return "mount: mount bootes: attach -- authentication failed."
Also, the V2 fs states "bad AuthTs num."  The passwords and usernames are
identical on both systems.

So close I can taste it,

Sam

--------------------------------------------------------------
Sam Hopkins
sah@borf.com

"... let us tame the savageness of man, and make
	gentle the life of this world."




^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2003-10-21 10:14 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 15:20 [9fans] porting from vs. porting to Plan 9 mirtchov
2003-10-17 16:34 ` Skip Tavakkolian
2003-10-17 17:08   ` Joel Salomon
2003-10-17 18:55     ` Brantley Coile
2003-10-17 19:05       ` matt
2003-10-17 20:17       ` ron minnich
2003-10-17 20:20         ` Christopher Nielsen
2003-10-17 20:26         ` Brantley Coile
2003-10-17 20:41           ` Charles Forsyth
2003-10-17 20:54             ` Brantley Coile
2003-10-20 10:33             ` Douglas A. Gwyn
2003-10-20 16:03               ` Skip Tavakkolian
2003-10-21  6:07                 ` Adrian Tritschler
2003-10-17 22:18           ` ron minnich
2003-10-20  1:38             ` okamoto
2003-10-17 21:36         ` Roman Shaposhnick
2003-10-20 10:33           ` Douglas A. Gwyn
2003-10-21  0:10             ` [9fans] Re: your mail Roman Shaposhnick
2003-10-17 23:38       ` [9fans] porting from vs. porting to Plan 9 Geoff Collyer
2003-10-18  1:21         ` bs
2003-10-21 10:14           ` Martin C.Atkins
2003-10-18  8:27         ` Charles Forsyth
2003-10-18  8:48           ` Richard Miller
2003-10-18 11:09           ` Geoff Collyer
2003-10-18 13:09             ` Tristan Seligmann
2003-10-19  8:25               ` C H Forsyth
2003-10-20  3:28                 ` mirtchov
2003-10-20  7:04                   ` Tristan Seligmann
2003-10-20 17:17                     ` mirtchov
2003-10-20 10:35                   ` Patrick R. Wade
2003-10-21  1:14                     ` david parsons
2003-10-19 16:27             ` Charles Forsyth
2003-10-20 10:35             ` bs
2003-10-18 19:19           ` Richard Miller
2003-10-19 15:10             ` I RATTAN
2003-10-19 15:54               ` Richard Miller
2003-10-20 14:03             ` ron minnich
2003-10-20 17:03               ` jmk
2003-10-20 21:40         ` splite
2003-10-17 16:43 ` Ronald G. Minnich
2003-10-17 17:01   ` Fco.J.Ballesteros
2003-10-17 20:17     ` Christopher Nielsen
2003-10-20 10:33       ` Douglas A. Gwyn
  -- strict thread matches above, loose matches on Subject: below --
2000-08-02  1:24 [9fans] Re: your mail presotto
2000-08-01 15:13 forsyth
2000-08-01 13:37 sah
2000-08-01 14:53 ` [9fans] Re: your mail Lucio De Re

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).