Verified Commit c05dd750 authored by Francesco Bonanno's avatar Francesco Bonanno
Browse files

Updated README

parent 3cad0afc
......@@ -21,7 +21,7 @@ You can also install all of the above, except for git, using the requirements fi
Copy the ipfs file from this repo to the directory for apt transport methods:
```
git clone https://github.com/JaquerEspeis/apt-transport-ipfs
git clone https://nest.parrotsec.org/parrot-packages/apt-transport-ipfs.git
cd apt-transport-ipfs
sudo cp ipfs /usr/lib/apt/methods/ipfs
```
......@@ -30,28 +30,28 @@ sudo cp ipfs /usr/lib/apt/methods/ipfs
Add an IPFS mirror to your apt sources.list file. TODO set up a mirror.
## Hacky test
## Test it!
While we set up a proper IPFS mirror, this can be tested by using a hardcoded
IPFS hash that was manually set up to serve the hello deb.
You can test it directly with ParrotSec OS repository IPFS mirror!
Backup your /etc/apt/sources.list, remove all the lines that it has and leave it
just with:
Backup your /etc/apt/sources.list.d/parrot.list, and comment the already used https mirrors.
Instead of the https mirrors, put this at the end of the file:
```
deb ipfs:/ipns/QmdyaTjqXayZVQULcEyHQFx6n76TrMBc5aEDCgvp5cUTEi bionic main
# ParrotSec Official IPFS mirror, through IPNS name
deb ipfs:/ipns/QmUhEJjvaYWbxnGUD2Y5UsVrNNZHqpftEsq2QhQaKBgnqZ/parrot/ rolling main contrib non-free
deb ipfs:/ipns/QmUhEJjvaYWbxnGUD2Y5UsVrNNZHqpftEsq2QhQaKBgnqZ/parrot/ rolling-security main contrib non-free
```
To test it, run:
```
sudo apt update
sudo apt install hello
sudo apt full-upgrade
```
This IPFS node is not permanent and will disappear. To set it up again, use the
script in `scripts/add_test_mirror.sh`.
Made with :rainbow: by JáquerEspeis
Updated by mibofra to use the latest ipfshttpclient
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment