webrtcfs

command module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 10 Imported by: 0

README

WebRTC fs

WebRTC の DataCnannel 上でファイルを共有する実験的なファイルシステムです.

プロトコルは, https://github.com/binzume/webrtc-rdp 等と共通です. PCで共有したフォルダをブラウザで表示したり,ブラウザで共有したフォルダをドライブとしてマウントしたりできます.

Usage

Go 1.19以降が必要です.

インストール
go install github.com/binzume/webrtcfs@latest
ファイルを共有
webrtcfs -room RoomName publish /dir/to/share
クライアント

とりあえずデバッグ用に作った簡易的なシェルが付いています.

# start shell
webrtcfs -room RoomName shell

# file list
webrtcfs -room RoomName ls /
# traverse directories
webrtcfs -room RoomName ls /**

# copy remote to local
webrtcfs -room RoomName pull remotefile.txt
# copy local to remote
webrtcfs -room RoomName push localfile.txt

FUSEでマウントする場合.

go install github.com/binzume/webrtcfs/cmds/mount_webrtcfs@latest
mount_webrtcfs -room RoomName R:

R: ドライブが追加されて,エクスプローラーなどでアクセスできるようになります. Windows以外ではマウントポイントとして使う適当なディレクトリを指定してください.

ペアリング

https://github.com/binzume/webrtc-rdp から接続するためのPINを生成します.

PINが表示されるのでクライアント側に入力してください.

webrtcfs -room RoomName pairing

RoomNameは秘密にする必要があるので適当なランダムっぽい名前にしてください. RoomNameはWebRTCのシグナリングサーバを経由してしまうので,気休めとして -token オプションでデータチャンネル上で認証を行うためのパスワードを指定できます.

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmds

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL