Huh... where do I start...What is IPFS?
IPFS(Inter Planetary File System) is a new Peer to Peer distributed web file system protocol that aims to replace the aging HTTP protocol. It aims to be a peer to peer, permanent, hypermedia content addressable file distribution protocol.(Thereby also replacing FTP in many use cases)
Imagine a web where you don't have to pay for hosting your simple static webpage/blog. A web where latency is minimised because instead of downloading from a server on another continent, you can just download it from your neighbor or roommate if he has that content. A web where distributed web apps will continue working even if your ISP is having major breakage.A web that will reverse the process of the centralisation of the internet and make it completely decentralised. A web where content won't be lost so easily by a failure of a single server and links won't break by changing a single letter in the path. A web that you can mount locally on your FUSE and manipulate with the files on it as if they were locally.
In some ways, IPFS is similar to the World Wide Web, but IPFS could be seen as a single BitTorrent swarm, exchanging objects within one Git repository.
In short... IPFS will hopefully become the web 3.0 one day.NOTE: IPFS is still in ALPHA.
At least a quarter of it's features are not even implemented yet.Cool, but how do I get IPFS to work on my machine?
First you have to download the correct package from:https://dist.ipfs.io/#go-ipfsGNU+Linux
1) After you have downloaded the binary, you have to unpack it in it's own directory. And then enter the directory.
2) Now you can install it with:
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs
3) Now IPFS is installed. However it needs to be initialised. Initialisation will make a repository at ~/.ipfs.
4) Now you are ready to start the IPFS daemon:
5) You can check your connection to the swarm with:
ipfs swarm peersTroubleshooting:
If when you start the IPFS daemon you get a 'bind: address already in use' error then you need to first learn the PID of the process that is using the deafult IPFS port and then kill it:
sudo netstat -tulpn | grep 8080
sudo kill -9 [PID]Windows
0)The installation on WIndows is fairly similar as on Linux. However it si slightly different. Well. first you need to unpack the file ofc. Now:
1) Open a command prompt and enter:
Choose the appropriate folder out of those where you will put ipfs.exe
2) Copy ipfs.exe in the chosen folder.
3) Initialise the IPFS repo:
4) Start the IPFS daemon:
5) Check your connection to the swarm:
ipfs swarm peers