Outils pour utilisateurs

Outils du site


tech:note_ipfs

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:note_ipfs [2025/05/01 01:56] Jean-Baptistetech:note_ipfs [2025/05/14 12:23] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>P2P Web3}}
 +
 +# Notes IPFS
 +
 +Voir :
 +  * https://www.abyssproject.net/2019/01/installation-dun-serveur-ipfs-sous-debian-9-et-mise-a-jour/ 
 +  * https://blog.ineat-group.com/2022/09/ipfs-le-protocole-qui-decentralise-vos-fichiers/
 +  * https://www.run2web3.com/blog/blockchain/comment-creer-un-site-web-decentralise-avec-ipfs-et-ethereum/
 +  * https://www.youtube.com/watch?v=7MGMkGq60VU
 +  * https://www.reddit.com/r/ipfs/comments/thpgt1/a_mostly_complete_guide_to_hosting_a_public_ipfs/
 +  * 
 +
 +Voir aussi :
 +* SecureScuttleButt (SSB)
 +* meshtastic
 +* https://dat-ecosystem.org/
 +
 +
 +[IPFS] [Hyphanet]
 +HTTP over: [Tor] [I2P] [Yggdrasil]
 +[Gemini over Tor]
 +
 +Interface d'admin
 +http://127.0.0.1:5001
 +
 +passerelle 
 +http://127.0.0.1:8080
 +
 +
 +## Install
 +
 +''/etc/systemd/system/ipfs.service''
 +~~~ini
 +[Unit]
 +Description=IPFS Daemon
 +After=syslog.target network.target remote-fs.target nss-lookup.target
 +
 +[Service]
 +Type=simple
 +ExecStart=/home/ipfs/go/bin/ipfs daemon --init --migrate
 +User=jibe
 +
 +[Install]
 +WantedBy=multi-user.target
 +~~~
 +
 +Pour IPFessay
 +''ipfs daemon --writable''
 +
 +## Utilisation
 +
 +~~~
 +ipfs add ./pages/test/gpl-3.txt
 +
 +i$ ipfs add ./pages/test/gpl-3.txt
 +added QmNW8yLgaibACBJrKkwi1ZaW7bdEYVGmyQxwNSYs7PrPnV gpl-3.txt
 + 34.34 KiB / 34.34 KiB [=================================================================================================================================================================================] 100.00%
 + 
 +
 +
 +ipfs config --json Experimental.FilestoreEnabled true
 +systemctl restart ipfs
 +ipfs filestore ls
 +
 +ipfs dag stat QmNW8yLgaibACBJrKkwi1ZaW7bdEYVGmyQxwNSYs7PrPnV
 +~~~
 +
 +
 +https://johackim.com/ipfs
 +
 +
 +
 +~~~bash
 +mkdir _site
 +echo "hello world" > _site/index.html
 +
 +ipfs add -r _site --to-files /
 +
 +ipfs files ls -l
 +
 +https://ipfs.io/ipfs/<CID>
 +~~~
 +
 +
 +
 +  * http://localhost:8080/ipfs/bafybeifb6742coe6pd23izkqiyyezxbmcfhlubik5bibz3nlcxij6dhscu
 +  * http://bafybeifb6742coe6pd23izkqiyyezxbmcfhlubik5bibz3nlcxij6dhscu.ipfs.localhost:8080/
 +
 +~~~
 +ipfs resolve -r /ipfs/bafybeidatpz2hli6fgu3zul5woi27ujesdf5o5a7bu622qj6ugharciwjq/locales/de-DE/status.json:
 +~~~
 +
 +## Err
 +
 +### Err 404 page not found (API)
 +
 +Solution :
 +
 +http://127.0.0.1:5001/webui
 +et non pas http://127.0.0.1:5001
 +
 +
 +### failed to sufficiently increase receive buffer size 
 +
 +
 +~~~
 +# systemctl status ipfs
 +failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB).
 +~~~
 +
 +Solution
 +~~~bash
 +sysctl -w net.core.rmem_max=2500000
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki