• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

yangwao/ipfs-hypercube: Easy to deploy IPFS (local/LAN) nodes on ARM single-boar ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

yangwao/ipfs-hypercube

开源软件地址:

https://github.com/yangwao/ipfs-hypercube

开源编程语言:


开源软件介绍:

ipfs-hypercube

WorkInProgress

Aim of Project

Easy to deploy IPFS (local/LAN) nodes on ARM single-board computers.

Boards that I plan document and deploy

ODROID-X2

Easy go (quick & dirty, ~2h of hacking)

Prepare board

Download ubuntu 14.04lts-server from odroid.in Then extract .xz

xz -d ubuntu-14.04lts-server-odroid-x2-20140604.img.xz

Push image to SD card

sudo dd if=ubuntu-14.04lts-server-odroid-x2-20140604.img of=/dev/disk2 bs=1m

Insert SD card, boot your X2, login credentials are root:odroid

Download odroid-utility and resize rootfs && update your kernel to latest

sudo -s

wget -O /usr/local/bin/odroid-utility.sh https://raw.githubusercontent.com/mdrjr/odroid-utility/master/odroid-utility.sh

chmod +x /usr/local/bin/odroid-utility.sh

odroid-utility.sh

reboot

IPFS part

Turn off firewall (even iptables are missing in image)

  • apt-get install ufw
  • ufw disable

Initialize IPFS, it will generates your privkey and other stuff

  • ipfs init

You can run ipfs daemon from terminal (or put it in screen/tmux/byobu) or use my upstart script

  • ipfs daemon

Upstart script for ubuntu 14.04 /etc/init/ipfs.conf

#!upstart
description "ipfs"

#env USER=nobody
env USER=root # need change this

start on runlevel [2345]
stop on runlevel [016]

respawn
respawn limit 2 5

exec start-stop-daemon --start --chuid $USER --exec /usr/local/bin/ipfs -- daemon >> /var/log/ipfs.log 2>&1

Now should IPFS daemon start on every boot, cheers

and some pointless information, yaay :D

ODROID-X2 running IPFS

root@odroid-server:~# ipfs id
{
	"ID": "QmbzAwAqLzpEkCT98n8vYZkDGbbZZEkZzumYLyyRVJJfiz",
	"PublicKey": "CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC77y7FK2NHq9Ty+bOCFVhcKq6rmwQWc3pQLdeMfERzsuoEYLbZOt03nEmD0/YuvzGVdV1XVtDapdnIyXenVTrDKc8Dnig4kN6aQV4bFODx27vtB7Qw+zvHGZXDW87DAhkk3aS208D+UpvCkXBoG0sDSW5S5vMNpBXoscsEhiAGbBopxxw3Ua+/mTQjYrLq0eGUAvzvKQ1HVe2sq2arUNjvS01cIL8npzgYcBYjcIQoQgGsR1Pc4IOFehOM64bDooG2k0jTZFS63HhJxLuEXQ7soolNR+4yJcDAXHj1Wp/Lpc47EE8BsolUwcON2Od9RKQlEUBhtLHp1ibMVukzaVKTAgMBAAE=",
	"Addresses": [
		"/ip4/127.0.0.1/tcp/4001/ipfs/QmbzAwAqLzpEkCT98n8vYZkDGbbZZEkZzumYLyyRVJJfiz",
		"/ip4/192.168.13.215/tcp/4001/ipfs/QmbzAwAqLzpEkCT98n8vYZkDGbbZZEkZzumYLyyRVJJfiz",
		"/ip6/::1/tcp/4001/ipfs/QmbzAwAqLzpEkCT98n8vYZkDGbbZZEkZzumYLyyRVJJfiz"
	],
	"AgentVersion": "go-ipfs/0.4.0-dev",
	"ProtocolVersion": "ipfs/0.1.0"

root@odroid-server:~# ipfs diag sys
  {"diskinfo":{"free_space":2.500820992e+09,"fstype":"61267","total_space":2.33693184e+09},"environment":{"GOPATH":"","IPFS_PATH":""},"ipfs_commit":"","ipfs_version":"0.4.0-dev","memory":{"swap":0,"virt":8.02464e+08},"net":{"interface_addresses":["/ip4/127.0.0.1","/ip4/192.168.13.215","/ip6/::1","/ip6/fe80::34e6:6aff:fe0e:97b1"]},"runtime":{"arch":"arm","compiler":"gc","gomaxprocs":3,"numcpu":4,"numgoroutines":202,"os":"linux","version":"go1.5.3"}}

root@odroid-server:~# ipfs swarm peers|wc -l
26

Credits goes to guys on #ipfs @ freenode, need fix traversal/discovery of external IP

Some quick fixies

rm -rf $GOPATH/src/gx and try it again go get -u github.com/whyrusleeping/gx and go get -u github.com/whyrusleeping/gx-go try it again

feel free to connect to my ipfs node https://ipfs.io/ipfs/QmVsrcQiXGD1FNYeKxxVBLor1dmszvr1xnv6Jgq61jhhci/paste




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
carsonfarmer/profile-app: Basic profile over IPFS/IPNS发布时间:2022-06-22
下一篇:
hoochanlon/fq-book: 发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap