This repository has been archived on 2019-09-18. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
6543 fddfbf27f8 link ipfs daemon install 2018-02-20 21:41:35 +01:00
scripts Adds variables and IPFS_FD_MAX to prevent add fail (#1) 2018-02-11 16:26:47 -06:00
.gitignore Initial commit 2017-12-02 20:24:28 -06:00
LICENSE Initial commit 2017-12-02 20:24:28 -06:00
README.md link ipfs daemon install 2018-02-20 21:41:35 +01:00
install_ubuntu_xenial_amd64.sh Changes to be committed: 2018-02-19 00:43:59 +01:00
ipfs Changes to be committed: 2018-02-19 00:43:59 +01:00

README.md

IPFS transport for apt

Requirements

sudo apt install python3-pip git
sudo pip3 install ipfsapi
sudo snap install ipfs
ipfs init
ipfs daemon &

Install

Copy the ipfs file from this repo to the directory for apt transport methods:

git clone https://github.com/JaquerEspeis/apt-transport-ipfs
cd apt-transport-ipfs
sudo cp ipfs /usr/lib/apt/methods/ipfs

Install ipfs as daemon: https://github.com/6543/ipfs_daemon

Configure

Add an IPFS mirror to your apt sources.list file. TODO set up a mirror.

Hacky test

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.

Backup your /etc/apt/sources.list, remove all the lines that it has and leave it just with:

#archive.ubuntu.com
deb [arch=amd64] ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ xenial main restricted universe multiverse
deb [arch=amd64] ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ xenial-security main restricted universe multiverse
deb [arch=amd64] ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ xenial-updates main restricted universe multiverse
deb-src ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ xenial main restricted universe multiverse
deb-src ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ xenial-security main restricted universe multiverse
deb-src ipfs:/ipns/QmXfAyjHThwksUyW9BwuqCDuzu1PM1XQkR1HVTbActvYDJ xenial-updates main restricted universe multiverse

#archive.canonical.com
deb [arch=amd64] ipfs:/ipns/QmUajtQCL6yHcBaYxsZKyD8QH7n977ZVxjU5yMXwYC183c xenial partner
deb-src ipfs:/ipns/QmUajtQCL6yHcBaYxsZKyD8QH7n977ZVxjU5yMXwYC183c xenial partner

This IPFS node is not permanent jet ...

copyed from JáquerEspeis.