There are several (easy) ways to do this.
Basically, this means:
- installing the kubo package (known as ipfs-go on BSD, since ipfs is a packet filter).
Refer to the documentation of your distribution.
For instance,
- on Arch linux:
sudo pacman -Syv kubo
-on a FreeBSD host (as root):
pkg inst go ipfs-go
- initializing a node in server mode:
ipfs init --profile server
- initializing a repository (by default, it will be found under ~/.ipfs):
ipfs init
- starting the ipfs daemon:
ipfs daemon
If everything is fine, you may:
- display the README file (ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
)
- access the webui locally, at http://localhost:5001/webui/
Note: in order to access the webui remotely and securely, you will have create a SSH tunnel to the server on your local computer (client):
ssh -L 5002:localhost:5001 user@server_ip
Source: http://docs.ipfs.tech.ipns.localhost:8080/how-to/command-line-quick-start/#initialize-the-repository
Ce document a été publié le 2024-05-16 13:22:27. (Dernière mise à jour : 2024-05-16 13:32:39.)