This guide serves as a quickstart to mirroring Haiku's releases and repositories on IPFS.
Essentially, you will be "seeding" Haiku packages / artifacts in Bittorrent speak. (IPFS is not Bittorrent, just the same concept)
- A computer with at least 4 GiB of RAM running Linux, MacOS, Windows
- A Raspberry Pi 4 works just fine as well :-)
- An internet connection (dynamic or static ip)
- Ability to accept incoming connections on tcp port 4001
- Incoming requests to your router on tcp port 4001 should be forwarded to the system where IPFS is running.
- https://www.lifewire.com/how-to-port-forward-4163829
- 250 GiB of free disk space
- Install the IPFS Desktop application
- Once IPFS desktop is started, click SETTINGS
- Under IPFS Config find
StorageMax
. Change from 10GB to 250GB (or more)- This is important and prevents needing to re-download data if your pin fails
- Click save
- Exit IPFS Desktop, and start it again.
- Click FILES -> Import -> From IPFS
- Enter /ipns/hpkg.haiku-os.org
Be sure to occasionally follow steps 6 and 7 to pull the latest updates.
- Install the IPFS CLI
- Be sure to Initialize the repository, and start the IPFS daemon (ensure you don't provide the --enable-gc flag)
- Run
ipfs pin --progress /ipns/hpkg.haiku-os.org
- This command will take some time. Be paitent
Be sure to occasionally follow step 4 to pull the latest updates. Nightly or weekly is best.