9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] sam -r with plan9ports
@ 2006-06-30  9:50 Gabriel Diaz
  2006-06-30 15:41 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Gabriel Diaz @ 2006-06-30  9:50 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

Is there any trick to use B on a remote machine to open files in a
local samterm?

localhost# sam -r somehost
-----
localhost# ssh somehost
somehost# B file

and file opens up in local host.

I can use B fine while editing locally.


thanks

gabi


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

* Re: [9fans] sam -r with plan9ports
  2006-06-30  9:50 [9fans] sam -r with plan9ports Gabriel Diaz
@ 2006-06-30 15:41 ` Russ Cox
  2006-07-06 19:47   ` Gabriel Diaz
  2006-07-07  8:29   ` Gabriel Diaz
  0 siblings, 2 replies; 4+ messages in thread
From: Russ Cox @ 2006-06-30 15:41 UTC (permalink / raw)
  To: 9fans

It takes a few steps, because you need the local samterm
talking to the same plumber that your remote B is.
See import(4) (9 man 4 import):

     EXAMPLE
          Suppose you run sam -r to the CPU server anna. Sam wants to
          talk to a plumber on the local terminal, but the file names
          will refer to files on anna.

          To fix this problem, create a new name space directory and
          start a new plumber on anna:

               remotens=/tmp/ns.`whoami`.on.`hostname`
               ssh anna mkdir $remotens
               ssh anna NAMESPACE=$remotens plumber

          Now import that plumber to the local name space before
          starting sam and 9term:

               NAMESPACE=/tmp/ns.anna
               mkdir $NAMESPACE
               import -n $remotens -s plumb anna
               sam &
               9term ssh anna &

In the shell running in that final ssh you will need to set $NAMESPACE too.
(To /tmp/ns.you.on.localmachine)

Russ



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

* Re: [9fans] sam -r with plan9ports
  2006-06-30 15:41 ` Russ Cox
@ 2006-07-06 19:47   ` Gabriel Diaz
  2006-07-07  8:29   ` Gabriel Diaz
  1 sibling, 0 replies; 4+ messages in thread
From: Gabriel Diaz @ 2006-07-06 19:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello

Thank you very much, somehow this mail got archived in gmail and i
did't saw it until now :(

Gabi

On 6/30/06, Russ Cox <rsc@swtch.com> wrote:
> It takes a few steps, because you need the local samterm
> talking to the same plumber that your remote B is.
> See import(4) (9 man 4 import):
>
>     EXAMPLE
>          Suppose you run sam -r to the CPU server anna. Sam wants to
>          talk to a plumber on the local terminal, but the file names
>          will refer to files on anna.
>
>          To fix this problem, create a new name space directory and
>          start a new plumber on anna:
>
>               remotens=/tmp/ns.`whoami`.on.`hostname`
>               ssh anna mkdir $remotens
>               ssh anna NAMESPACE=$remotens plumber
>
>          Now import that plumber to the local name space before
>          starting sam and 9term:
>
>               NAMESPACE=/tmp/ns.anna
>               mkdir $NAMESPACE
>               import -n $remotens -s plumb anna
>               sam &
>               9term ssh anna &
>
> In the shell running in that final ssh you will need to set $NAMESPACE too.
> (To /tmp/ns.you.on.localmachine)
>
> Russ
>
>


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

* Re: [9fans] sam -r with plan9ports
  2006-06-30 15:41 ` Russ Cox
  2006-07-06 19:47   ` Gabriel Diaz
@ 2006-07-07  8:29   ` Gabriel Diaz
  1 sibling, 0 replies; 4+ messages in thread
From: Gabriel Diaz @ 2006-07-07  8:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello

if i start sam inside the environment you comment, i obtain a blank
window with no error messages.

and if i close it and run B i got

samterm: initdraw: muxrpc: unexpected eof

Is this related to the new way dedraw works?

thanks


gabi


On 6/30/06, Russ Cox <rsc@swtch.com> wrote:
> It takes a few steps, because you need the local samterm
> talking to the same plumber that your remote B is.
> See import(4) (9 man 4 import):
>
>      EXAMPLE
>           Suppose you run sam -r to the CPU server anna. Sam wants to
>           talk to a plumber on the local terminal, but the file names
>           will refer to files on anna.
>
>           To fix this problem, create a new name space directory and
>           start a new plumber on anna:
>
>                remotens=/tmp/ns.`whoami`.on.`hostname`
>                ssh anna mkdir $remotens
>                ssh anna NAMESPACE=$remotens plumber
>
>           Now import that plumber to the local name space before
>           starting sam and 9term:
>
>                NAMESPACE=/tmp/ns.anna
>                mkdir $NAMESPACE
>                import -n $remotens -s plumb anna
>                sam &
>                9term ssh anna &
>
> In the shell running in that final ssh you will need to set $NAMESPACE too.
> (To /tmp/ns.you.on.localmachine)
>
> Russ
>
>


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

end of thread, other threads:[~2006-07-07  8:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-30  9:50 [9fans] sam -r with plan9ports Gabriel Diaz
2006-06-30 15:41 ` Russ Cox
2006-07-06 19:47   ` Gabriel Diaz
2006-07-07  8:29   ` Gabriel Diaz

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