Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Steve Simon
i wrote a cpu like client/server for windows (called dos). my code and test environment lived on a microsoft smb server. i ran cifs(1) to get access to this from plan9 and sam. dos(1) allowed me to start an rc(1) running on win32 in the same directory as my current directory on plan9. it

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread hiro
if you don't already use drawterm anyway for other reasons, and you only would like to set up ssh, and you already have a working 9p server for linux (like u9fs), i don't think there's an immediate benefit in switching to drawterm. otoh if you already do use drawterm interactively for different

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread hiro
it's still equivalent, obviously you can start drawterm in the background or in some persistent virtual terminal emulator. and yes, both drawterm and ssh will use TCP below, the only difference in the stack for the actual data would be that instead of SSH you would have TLS for encryption. On

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Dan Cross
On Wed, Jul 21, 2021 at 1:32 PM Xiao-Yong Jin wrote: > > On Jul 21, 2021, at 12:16 PM, Dan Cross wrote: > > > > Nothing prevents you from invoking u9fs over an SSH connection; one > needn't run it from inetd, and I doubt anyone has in 20 years. > > You are right. In that case, the only

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread hiro
> This is using ssh to attach to the Linux machine to import it's filesystem > into the plan9 namespace? Wouldn't authenticating from plan9 to Linux over > SSH be independent of drawterm vs u9fs? yes, if you only need files from the filesystem ssh might be sufficient protection. also, with

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Xiao-Yong Jin
> On Jul 21, 2021, at 12:16 PM, Dan Cross wrote: > > Nothing prevents you from invoking u9fs over an SSH connection; one needn't > run it from inetd, and I doubt anyone has in 20 years. You are right. In that case, the only difference is just that, citing hiro, yes it's a lot of back

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Dan Cross
On Wed, Jul 21, 2021 at 1:09 PM Xiao-Yong Jin wrote: > > On Jul 21, 2021, at 11:42 AM, Dan Cross wrote: > > > > On Wed, Jul 21, 2021 at 12:17 PM Xiao-Yong Jin > wrote: > > > On Jul 21, 2021, at 11:08 AM, Dan Cross wrote: > > > > ssh linuxpc drawterm -c srvdev.rc > > > > > > > > yes it's a lot

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Xiao-Yong Jin
> On Jul 21, 2021, at 11:42 AM, Dan Cross wrote: > > On Wed, Jul 21, 2021 at 12:17 PM Xiao-Yong Jin wrote: > > On Jul 21, 2021, at 11:08 AM, Dan Cross wrote: > > > ssh linuxpc drawterm -c srvdev.rc > > > > > > yes it's a lot of back and forth, but ssh only is needed for running > > > the

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Dan Cross
On Wed, Jul 21, 2021 at 12:17 PM Xiao-Yong Jin wrote: > > On Jul 21, 2021, at 11:08 AM, Dan Cross wrote: > > > ssh linuxpc drawterm -c srvdev.rc > > > > > > yes it's a lot of back and forth, but ssh only is needed for running > > > the process, the data afterwards can use 9p directly. > > > >

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Xiao-Yong Jin
> On Jul 21, 2021, at 11:08 AM, Dan Cross wrote: > > ssh linuxpc drawterm -c srvdev.rc > > yes it's a lot of back and forth, but ssh only is needed for running > the process, the data afterwards can use 9p directly. > > What's the difference between that and using something like u9fs? auth?

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Dan Cross
On Wed, Jul 21, 2021 at 11:12 AM hiro <23h...@gmail.com> wrote: > if i want to serve files from a linux, i sometimes run drawterm on the > linux, export stuff to an /srv and then access that from the other > side. > > theoretically you can automate that also from the other side, make > some

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread hiro
if i want to serve files from a linux, i sometimes run drawterm on the linux, export stuff to an /srv and then access that from the other side. theoretically you can automate that also from the other side, make some script for the /srv stuff, and run it from 9front via ssh via drawterm: ssh

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-21 Thread Xiao-Yong Jin
> On Jul 20, 2021, at 10:52 PM, Lucio De Re wrote: > > what would > it take to serve 9P on Posix (in P9P, in other words) over the > network? Fontsrv and gitsrv would be immediate beneficiaries. Just run it like, fontsrv -s 'tcp!192.168.9.2!1500' and I've no idea what gitsrv is.

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-20 Thread Lucio De Re
On 7/19/21, Steve Simon wrote: > > my cpu for windows was always incomplete, but good enough that i never > finished it properly. > It's on contrib, is it not? I'll take a peek, if my haphazard priority list allows it :-) > for posix i just use sftpfs or now cinap’s sshftp to import the

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-19 Thread Steve Simon
my cpu for windows was always incomplete, but good enough that i never finished it properly. for posix i just use sftpfs or now cinap’s sshftp to import the filesystem from the posix box as /n/fred and run sam locally (i am a samista rather than an acmeite) i cannot run stuff remotely but i

Re: Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-18 Thread Michael Misch
I’ve started toying with that very idea Lucio, but I haven’t had much time to really vet the ideas. My work has been specifically for 9front and rcpu > On Jul 18, 2021, at 9:53 PM, Lucio De Re wrote: > > On 7/19/21, adr via 9fans <9fans@9fans.net> wrote: >> [ ...]. Running samterm locally is

Posix implementation of Plan 9 cpu(1) (Was: [9fans] Command to set samterm label)

2021-07-18 Thread Lucio De Re
On 7/19/21, adr via 9fans <9fans@9fans.net> wrote: > [ ...]. Running samterm locally is way more efficient than > using X forwarding. > I have adopted on my Linux (Mint) workstations - plural - the paradigm: ssh -fX remote acme -l lib/task.acme # for different tasks and it works even