Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Project: Raspberry Pi (and other ARM SBC) BitShares2.0 images and repositories  (Read 2550 times)

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile

Summary: Raspberry Pi (RPI) and other single-board-computers (SBCs) could be good platforms for distributed, low-power, low-cost witness nodes in BitShares2.0. A convenient way of getting BiShares2.0 on RPIs, especially for those just learning RPI or BitShares, will aid adoption and help the network. This project is looking at ways to simplify access to BitShares2.0 through RPI disk images and repositories.

For CubieBox and archlinux, see https://bitsharestalk.org/index.php/topic,17297.msg220456.html#msg220456


Three ways to get it:

1) Download our Raspbian Jessie minimal server preconfigured for graphene and will update graphene when you run "apt-get update && apt-get upgrade":
https://www.dropbox.com/s/qzeeqnhbngoqo99/20150814_bitshares_raspbian.zip?dl=0
Code: [Select]
$ md5sum 20150814_bitshares_raspbian.zip
9bad200938d32531f5f0c341e5ea482e  20150814_bitshares_raspbian.zip
See "SD card image based on Raspbian Jessie is available for initial testing" below.

OR

2) Download a Raspbian Jessie distribution (such as http://sirlagz.net/2013/07/19/raspbian-server-edition-2-5/) then follow the instructions for "Rapsbian Jessie PPA" below.

OR

3) Upgrade your Raspbian Wheezy to Jessie and then follow the instructions for "Rapsbian Jessie PPA" below:
a) Download and install Raspbian (https://www.raspberrypi.org/documentation/installation/installing-images/README.md)
b) Make sure you're up to date
Code: [Select]
apt-get update
apt-get upgrade
c) Optionally remove packages you don't need to speed up the upgrade (e.g., if you're a server and don't care about -dev packages)
Code: [Select]
apt-get remove  --auto-remove --purge libx11-.* .*-devd) Upgrade to Jessie
Code: [Select]
sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
find /etc/apt/sources.list.d -type f -exec sed -i -e 's/wheezy/jessie/g' {} \;
apt-get update
apt-get dist-upgrade -o Dpkg::Options::="--force-confold"
e) Follow the steps for "Rapsbian Jessie PPA" below

OR

Undocumented, untested 4th way: apt-pin so that you can install packages from Jessie if they are missing from wheezy.

Rapsbian Jessie PPA:

As super user or root, grab the archive key and add the repository
Code: [Select]
sudo wget -O - http://people.debian.org/~showard/raspbian/bitshares_repo.gpg.key | sudo apt-key add -
sudo sh -c 'echo "deb  http://people.debian.org/~showard/raspbian/ jessie main bitshares\ndeb-src http://people.debian.org/~showard/raspbian/ jessie main bitshares" > /etc/apt/sources.list.d/bitshares.list'

Install graphene
Code: [Select]
apt-get update
apt-get install graphene

4) you now have two new binaries to use, "witness_node" and "cli_wallet"



SD card image based on Raspbian Jessie is available for initial testing.

disk image resize doesn't work, but you still have 500 MB to work with for testing

Please test the image and be a pioneer!
What you need:
  • a RPI or RPI2
  • an SD card > 2.2 GB
  • a connection to the internet for the RPI
  • another computer on your network to log in to the RPI, or a monitor and keyboard to log in to the RPI

Step one:
Download the image from the link at the top of the post

Step two:
Follow the instructions on how to install the downloaded image on an SD card. Depending on your OS, you can find instructions here:
https://www.raspberrypi.org/documentation/installation/installing-images/README.md

Step three:
a) ADVANCED: Plug in your RPI to your network and plug in to power. If you know how to do SSH already, and know how to find the RPI's IP address, you can just log in with the user name "pi" and "raspberry" as the password. Go to step four.
b) BEGINNER: Plug in a a keyboard and monitor to the RPI. Plug in your RPI to your network, then plug in to power.
Login with the following information when prompted:
Username: pi
Password: raspberry

then type
Code: [Select]
ifconfig in to the terminal

write down the INET address of eth0, should look like:
Code: [Select]
inet addr:192.168.1.2 or something like that.

you can type "exit" to return to the log in screen. You don't need the keyboard or mouse any more.

Step four:
Log in to the RPI using another computer on your network:
linux/macosx (use the inet address from above)
Code: [Select]
ssh [email protected]windows (use the inet address from above)
https://www.raspberrypi.org/documentation/remote-access/ssh/windows.md

Step five:
Change your password:
ADVANCED: https://www.raspberrypi.org/documentation/linux/usage/users.md
BEGINNER:
1) type "sudo rasp-config" in to the terminal
2) choose "Change User Password" and follow the prompts

Step six (might not work at the moment, and is optional):
Expand your disk so you can use the whole thing:
1) type "sudo rasp-config" in to the terminal
2) choose "Expand Filesystem" and follow the prompts

step seven:
Check out bitshares.
To make sure you're running the latest graphene:
Code: [Select]
apt-get update
apt-get upgrade
[/quote]
"witness_node" and "cli_wallet" are both in the PATH - so just type those commands and it will work
See https://github.com/cryptonomex/graphene
on how to use them for now

step eight:
update with "apt-get update" then "apt-get upgrade". If I put a new version online, it will pull in the new version without having to get a new image
« Last Edit: August 18, 2015, 03:37:26 PM by maqifrnswa »
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true


Offline iHashFury

Great project and thanks for the time and effort.
I will seed your torrent 24/7

Offline btswildpig

  • Hero Member
  • *****
  • Posts: 1392
    • View Profile
just curious , is it possible to install the current BTS wallet or PLAY wallet to a PI ?
« Last Edit: June 30, 2015, 10:01:35 AM by btswildpig »
这个是私人账号,表达的一切言论均不代表任何团队和任何人。This is my personal account , anything I said with this account will be my opinion alone and has nothing to do with any group.

Offline iHashFury

bts/0.9.2 git clone will not build without modification as it still has the salsa error

Code: [Select]
libraries/fc/CMakeFiles/fc.dir/build.make:1871: recipe for target 'libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o] Error 1
CMakeFiles/Makefile2:263: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

trying PLAY now

Offline iHashFury

bts/0.9.2 git clone will not build without modification as it still has the salsa error

Code: [Select]
libraries/fc/CMakeFiles/fc.dir/build.make:1871: recipe for target 'libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o] Error 1
CMakeFiles/Makefile2:263: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

trying PLAY now

PLAY has the same error

Offline btswildpig

  • Hero Member
  • *****
  • Posts: 1392
    • View Profile
bts/0.9.2 git clone will not build without modification as it still has the salsa error

Code: [Select]
libraries/fc/CMakeFiles/fc.dir/build.make:1871: recipe for target 'libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o] Error 1
CMakeFiles/Makefile2:263: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

trying PLAY now

PLAY has the same error


Seems solved by commenting all the salsa related lines in libraries/fc/CMakeLists.txt

I also want to mention that I have to use export LC_ALL="en_GB.UTF-8" instead of en_US as I don't have locale en_US preinstalled on my raspbian.

I think you can just comment out:
Code: [Select]
#SET(SALSA_SRC vendor/salsa20/salsa20.s)and it will work. It's already checking if it is not apple, it should also check if it is not x86 or x86_64
这个是私人账号,表达的一切言论均不代表任何团队和任何人。This is my personal account , anything I said with this account will be my opinion alone and has nothing to do with any group.

Offline iHashFury

Graphene built and running on archlinuxarm cubox

Build comands  ;)
Code: [Select]
#Graphene  archlinuxarm cubox
#root
su
pacman -S git base-devel cmake gcc boost make automake doxygen
exit #root terminal
#as user
git clone https://github.com/cryptonomex/graphene.git
cd graphene
git submodule update --init --recursive
make clean
#cmake -DCMAKE_BUILD_TYPE=Debug .
cmake .
make

strip ./programs/witness_node/witness_node
strip ./programs/cli_wallet/cli_wallet

./programs/witness_node/witness_node
#start then stop to edit
#[ctrl+C]
nano witness_node_data_dir/config.ini
'
rpc-endpoint = 127.0.0.1:8090
'
./programs/witness_node/witness_node

#separate terminal window
./programs/cli_wallet/cli_wallet


Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
just curious , is it possible to install the current BTS wallet or PLAY wallet to a PI ?

I think they can build, but running may take up too much memory for it to be useful, I think...
RPI1 has 256 or 512 MB of RAM
RPI2 has 1GB of RAM

With some swap, the RPI2 could be viable - I think bitshares/0.9.2 takes 1.25-1.50 GB in "normal" operation, and can take significantly more while scanning for transactions/reindexing
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline iHashFury

just curious , is it possible to install the current BTS wallet or PLAY wallet to a PI ?

I think they can build, but running may take up too much memory for it to be useful, I think...
RPI1 has 256 or 512 MB of RAM
RPI2 has 1GB of RAM

With some swap, the RPI2 could be viable - I think bitshares/0.9.2 takes 1.25-1.50 GB in "normal" operation, and can take significantly more while scanning for transactions/reindexing

current BTS wallet and  PLAY built and syncing with my chain server now


Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
Newest build:
https://www.dropbox.com/s/2hkmy3quvpmxoep/20150705_bitshares_raspbian.zip?dl=0
Code: [Select]
$ md5sum 20150705_bitshares_raspbian.zip
6e32f1570c5b3d8055e2ee2216e274b6  20150705_bitshares_raspbian.zip

Fixes a bug in fc so cli_wallet works on ARM processors, updated graphene code base
https://github.com/cryptonomex/graphene/issues/107
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true


Offline fuzzy

I have sent this thread to Faddat at the open source hardware project.  Their first project looks like it is Klouds.io, but they can get things made for a better deal than most places. 
BROWNIE==DKP; BitShares is our Community! 
ShareBits Welcome to  the Sharing Economy w/ BeyondBitcoin.org Partners--ShareBits.io & OpenLedger.info
TIP FORMAT: #sharebits "ForumHandleInQuotes" Quanity Token_Name


Offline phillyguy

When I try to extract the IMG file prior to imaging to an SD card, it says its 734 PB?

Anybody know what I'm doing wrong? Thanks!
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

 

Google+