Changes to be committed:

modified:   README.md
 new file:   install_ubuntu_xenial_amd64.sh
 modified:   ipfs

use phyton2.7
install skript for ubuntu xenial
own reposytory in Redame
This commit is contained in:
6543 2018-02-19 00:43:59 +01:00
parent cdc3e9f9c7
commit c0534e1b34
3 changed files with 30 additions and 8 deletions

View File

@ -28,14 +28,20 @@ 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:

deb ipfs:/ipns/QmdyaTjqXayZVQULcEyHQFx6n76TrMBc5aEDCgvp5cUTEi xenial main
#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

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

sudo apt update
sudo apt install hello

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.
This IPFS node is not permanent jet ...

from JáquerEspeis.

16
install_ubuntu_xenial_amd64.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
cd `mktemp -d`

sudo apt install -y python pyton-pip git
sudo pip install ipfsapi

#install ipfs
wget https://dist.ipfs.io/go-ipfs/v0.4.13/go-ipfs_v0.4.13_linux-amd64.tar.gz
tar xzf go-ipfs_v0.4.13_linux-amd64.tar.gz
cd go-ipfs
sudo ./install.sh
cd ..

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

2
ipfs
View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 -u
#!/usr/bin/python2.7 -u
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2014-2015, 2017 Bashton Ltd