Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.53 KB

ipfs-install.md

File metadata and controls

57 lines (40 loc) · 1.53 KB

IPFS guide

install

Check out ipfs.io/ipns/dist.ipfs.io/#ipfs-update for new versions.

mkdir /tmp/ipfs-update
tar -xzf installers/ipfs-update_v1.8.0_linux-amd64.tar.gz -C !$
pushd !$
sudo bash ./install.sh
popd

sudo ipfs-update install latest

setup

# create keys and initialize datastore
ipfs init
# link data over to datastore instead of copying
ipfs config --json Experimental.FilestoreEnabled true

# limit simultaneous peers so save on bandwidth
ipfs config --json Swarm.ConnMgr.LowWater 25
ipfs config --json Swarm.ConnMgr.HighWater 250

On github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size you'll see the Linux kernel has a low buffer size for UDP packets which limit the bandwidth on large trasnfer due to the overhead wasted on many smaller packets.

sudo sysctl -w net.core.rmem_max=2500000

Install CLI bash completion as described on github.com/ipfs/go-ipfs/blob/794...4ff/docs/command-completion.md:

echo 'eval "$(ipfs commands completion bash)"' >> ~/.bashrc

connecting to other nodes

Use ipfs id and copy one of the public addresses. On the node you want to connect, you can add a peer temporarily or permanently.

Temporarily with:

ipfs swarm connect <multiaddr>

Permanently with:

ipfs bootstrap add <multiaddr>