From: fgergo@gmail.com
To: 9fans <9fans@9fans.net>
Subject: [9fans] recover(4) go rewrite
Date: Tue, 11 May 2021 09:20:11 +0200 [thread overview]
Message-ID: <CA+ctqroc0+D5cpb_Q4P3LMw7hU_peDdriBn3NbYbZJmu6A8yfg@mail.gmail.com> (raw)
In-Reply-To: <CA+ctqrr1EpmmzFtN6sq5JeKKYjgjJPp29Cc-Ps8xTvoH0y_tHQ@mail.gmail.com>
Hi,
I needed recover(4) on windows, I rewrote most if it in go. This go version:
- doesn't work on plan9,
- can't do authentication (without plan9port's auth in go, iiuc it's hard),
- works on windows and on unix where go works,
- works on android (in termux), though not very useful at the moment,
- works both with or without plan9port,
- uses go net.Dial() address format (host:port),
- when using without plan9port, it won't clean up socket file after terminating,
- needs NAMESPACE set on windows,
- it'll default stay in the foreground.
To use this version of recover you'll need 9pserve in your path. If
you have plan9port installed, you have 9pserve.
If plan9port is not used (eg. on windows, android or on unix without
plan9port) you need to
go get github.com/fhs/mux9p/cmd/9pserve
and put 9pserve executable in your path.
To install recover it's just
go get github.com/fgergo/recover
I use recover+Harvey-os/ufs with tailscale (i.e auth by tailscale is
enough) on most home computers (unix, windows, android). It's fun. All devices
are accessible from all devices, without remounting 9p servers, ha!
(Devices can go away and come back online on a - possibly - different
network without any explicit management.)
If you'd like to have something similar, here are a few possibly
useful instructions:
To build harvey-os/ufs on windows: you need to change all 'File' references
to 'file' in ninep/filesystem/filesystem_windows.go and then build cmd/ufs
On unix and android just
go get github.com/Harvey-OS/ninep/cmd/ufs
On windows in inferno (or acme-sac), to mount the unix socket of
recover, you need to
go get github.com/fgergo/us2stdio
and put us2stdio.exe in your path to access recover-secured file
servers, until inferno on windows can access unix sockets.
(Of course in inferno mount -P is working fine.)
best,
Gergő
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T1d7bf3c39e885267-M8c882a2295e159758d872702
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
next parent reply other threads:[~2021-05-11 7:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+ctqrr1EpmmzFtN6sq5JeKKYjgjJPp29Cc-Ps8xTvoH0y_tHQ@mail.gmail.com>
2021-05-11 7:20 ` fgergo [this message]
2021-05-11 19:20 ` kvik
2021-05-11 20:23 ` Kurt H Maier
2021-05-12 8:53 ` fgergo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+ctqroc0+D5cpb_Q4P3LMw7hU_peDdriBn3NbYbZJmu6A8yfg@mail.gmail.com \
--to=fgergo@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).