9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] getting at Windows files from VMware-hosted Plan 9
@ 2002-05-02  1:57 rob pike, esq.
  0 siblings, 0 replies; 5+ messages in thread
From: rob pike, esq. @ 2002-05-02  1:57 UTC (permalink / raw)
  To: 9fans

Nice!

	 <[0=1] | echo 0 > /srv/remotehost

is a clever trick. Another blow for textual interfaces!

-rob



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

* Re: [9fans] getting at Windows files from VMware-hosted Plan 9
@ 2002-05-02 20:39 Scott Schwartz
  0 siblings, 0 replies; 5+ messages in thread
From: Scott Schwartz @ 2002-05-02 20:39 UTC (permalink / raw)
  To: 9fans

	<[0=1] | echo 0 > /srv/remotehost

While this is cool, I have to admit that I never really liked
bidirectional pipes, because if you want to close half of the connection,
you either need something like bsd's shutdown(), or a way to recover
your control file which hopefully will let you half-close.



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

* Re: [9fans] getting at Windows files from VMware-hosted Plan 9
  2002-05-02  1:47 Russ Cox
@ 2002-05-02 20:20 ` Mike Haertel
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Haertel @ 2002-05-02 20:20 UTC (permalink / raw)
  To: 9fans

>That's really cute.  Does the Windows ssh you have support
>port forwarding, so that sshnet would work too?

Yup.  It's just OpenSSH ported to run under Windows.


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

* Re: [9fans] getting at Windows files from VMware-hosted Plan 9
@ 2002-05-02  1:47 Russ Cox
  2002-05-02 20:20 ` Mike Haertel
  0 siblings, 1 reply; 5+ messages in thread
From: Russ Cox @ 2002-05-02  1:47 UTC (permalink / raw)
  To: 9fans

That's really cute.  Does the Windows ssh you have support
port forwarding, so that sshnet would work too?

Russ


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

* [9fans] getting at Windows files from VMware-hosted Plan 9
@ 2002-05-02  0:59 Mike Haertel
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Haertel @ 2002-05-02  0:59 UTC (permalink / raw)
  To: 9fans

First of all, here is a cute 1-liner for running u9fs without inetd
(useful if your local system administrator refuses to run u9fs from inetd,
or you hate rhosts-style authentication, or whatever...)

% ssh myname@remotehost u9fs -a none -u myname <[0=1] | echo 0 > /srv/remotehost
% mount /srv/remotehost /n/kremvax

I thought people might be interested in how I'm using this: I have an ssh
daemon running on my Windows box at work, courtesy of Cygwin.  I run Plan 9
under VMware on the same box.

I ported u9fs to Windows, again courtesy of Cygwin.  (Main changes: Cygwin has
no setre[ug]id(), no ruserok(), no <inttypes.h>, and no pread()/pwrite().
Diffs available upon request.)

So, in my VMware-hosted Plan 9 running under Windows, I do the following:

% ssh Administrator@windows u9fs -a none -u Administrator <[0=1] | echo 0 > /srv/windows
% mount /srv/windows /n/kremvax
% bind /n/kremvax/cygdrive/c /n/c

and thus I can use /n/c from VMware to look at the windows partition, just
as if Plan 9 were running on the bare hardware.

Moreover, this hack allows Plan 9 to see the contents of any SMB file server
that the host Windows environment can access.  Very useful if you're stuck
in a mixed network of evil operating systems.


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

end of thread, other threads:[~2002-05-02 20:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-02  1:57 [9fans] getting at Windows files from VMware-hosted Plan 9 rob pike, esq.
  -- strict thread matches above, loose matches on Subject: below --
2002-05-02 20:39 Scott Schwartz
2002-05-02  1:47 Russ Cox
2002-05-02 20:20 ` Mike Haertel
2002-05-02  0:59 Mike Haertel

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