This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
IPFS
Fazlul Shahriar edited this page Sep 9, 2020
·
5 revisions
This issue is tracking Plan 9 support in IPFS: https://github.com/ipfs/go-ipfs/issues/7575
To build IPFS, you need Go 1.15 (it comes with some fixes for Plan 9's net package). Eventually, you'll be able go get github.com/ipfs/go-ipfs/cmd/ipfs
once the Plan 9 changes are merged upstream, but for now you can use the following private branch:
git clone -b plan9-nobadger https://github.com/fhs/go-ipfs.git
cd go-ipfs/cmd/ipfs
GOOS=plan9 go build
copy ipfs
binary into harvey so you can run it.
cpu% ipfs version
ipfs version 0.8.0-dev
cpu% ipfs init
generating ED25519 keypair...done
peer identity: 12D3KooWRM4G4La7Q5mtYWHpvZo6aFfNC5iWgLERgJpwFvZbzpDK
initializing IPFS node at /usr/harvey/.ipfs
to get started, enter:
ipfs cat /ipfs/QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc/readme
cpu% ipfs daemon
Initializing daemon...
go-ipfs version: 0.8.0-dev
Repo version: 10
System version: amd64/plan9
Golang version: go1.15.1
Swarm listening on /ip4/10.0.2.15/tcp/4001
Swarm listening on /ip4/10.0.2.15/udp/4001/quic
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/udp/4001/quic
Swarm listening on /p2p-circuit
Swarm announcing /ip4/10.0.2.15/tcp/4001
Swarm announcing /ip4/10.0.2.15/udp/4001/quic
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/127.0.0.1/udp/4001/quic
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
In another window:
cpu% ipfs add /sys/src/cmd/cat.c
949 B / ? [2K
added QmSAa61XPFPxYDebkcSFnTvuqecnRPLdnpLaRSMEigHW2E cat.c
949 B / 949 B 100.00%cpu%
cpu% ipfs cat QmSAa61XPFPxYDebkcSFnTvuqecnRPLdnpLaRSMEigHW2E
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
...