Decentralized Storage

Getting Started with IPFS

Running a node

Once you have installed the IPFS software, you’ll need to configure your local node. For the sake of this example, you can use the defaults.

ipfs init
initializing ipfs node at /home/institute/.go-ipfs
generating 2048-bit RSA keypair...done
peer identity: Qmcpo2iLBikrdf1d6QU6vXuNb6P7hwrbNPW9kLAH8eG67z

Congratulations – you’re now the proud owner of your very own IPFS node! Your node’s address is shown in the last line as ‘peer identity’.

You can test that your node is working by contacting the IPFS core node to download the readme or quick-start guide:

ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/quick-start

Getting Online

Now that you have IPFS installed and your node has an address, you can take the node online and join the network. You may want to use a separate shell window for this.

ipfs daemon
Initializing daemon...
API server listening on /ip4/
Gateway server listening on /ip4/

You can also see other peers on the network:

ipfs swarm peers