Author Topic: 2.0 local server via a raspberry pi?  (Read 7698 times)

0 Members and 1 Guest are viewing this topic.

Offline Permie

  • Hero Member
  • *****
  • Posts: 606
  • BitShares is the mycelium of the financial-earth
    • View Profile
  • BitShares: krimduss
Next Thing Co. have built an open source "chip" that is faster than raspberry pi, for $9!

http://makezine.com/2015/05/07/next-thing-co-releases-worlds-first-9-computer/

Quote
Snugly situated in an industrial section of Oakland, California, is Next Thing Co., a team of nine artists and engineers who are pursuing the dream of a lower cost single-board computer. Today they’ve unveiled their progress on Kickstarter, offering a $9 development board called Chip.

The board is Open Hardware, runs a flavor of Debian Linux, and boasts a 1GHz R8 ARM processor, 512MB of RAM, and 4GB of eMMC storage. It is more powerful than a Raspberry Pi B+ and equal to the BeagleBone Black in clock speed, RAM, and storage. Differentiating Chip from Beagle is its built-in Wi-Fi, Bluetooth, and the ease with which it can be made portable, thanks to circuitry that handles battery operation.
JonnyBitcoin votes for liquidity and simplicity. Make him your proxy?
BTSDEX.COM

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
@maqifrnswa could you open a new thread in general? for testers? would be great!

and thanks for your work so far :)

done:
https://bitsharestalk.org/index.php/topic,17297.msg220235.html

For now I'll just play around debugging myself on the current image. Next step will be to set up the repository.

Awesome work -  +5000%

building Graphene on my CuBox now (archlinux-arm)  :D

awesome! Do we have a feel for "minimum requirements" yet? At some point we can have a wiki with images, or at least have executables available for download for as many distros/architectures as makes sense
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

iHashFury

  • Guest
Awesome work -  +5000%

building Graphene on my CuBox now (archlinux-arm)  :D

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
@maqifrnswa could you open a new thread in general? for testers? would be great!

and thanks for your work so far :)

Offline yjzll

  • Full Member
  • ***
  • Posts: 65
    • View Profile
I have a Pi B, Could you tell us how to do it step by step ? how to make ?

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline bytemaster

First image is up. Should work with any RPI or RPI2. The image fits on a 6GB or smaller SD card, following the same instructions you would use to install raspbian on an SD card (https://www.raspberrypi.org/documentation/installation/installing-images/README.md). It is actually < 3GB of data, but I'm still actively using the disk and didn't want to go through the effort of trimming it down yet.

I made a torrent for distribution:
https://people.debian.org/~showard/20150625_raspbian_bitshares.zip.torrent

It should download it from my machine. I'll remove it from my machine once you let me know you get it. It's basically a minimal raspbian server install, no desktop. You have to SSH in to it with user: pi, and no password:
http://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

There are two executables in the home directory, witness_node and wallet_cli. You can use them as described here:
https://github.com/cryptonomex/graphene

this is just a preliminary test, but the idea is the same - there will just be an image you flash to a drive, and your pi is now a witness_node/CLI wallet node

Awesome!  +5%

+1000
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Permie

  • Hero Member
  • *****
  • Posts: 606
  • BitShares is the mycelium of the financial-earth
    • View Profile
  • BitShares: krimduss
JonnyBitcoin votes for liquidity and simplicity. Make him your proxy?
BTSDEX.COM

Offline xfund

  • Full Member
  • ***
  • Posts: 148
    • View Profile
    • FUND投票基金
  • BitShares: xfund
Asset:FUND

Offline BunkerChainLabs-DataSecurityNode

First image is up. Should work with any RPI or RPI2. The image fits on a 6GB or smaller SD card, following the same instructions you would use to install raspbian on an SD card (https://www.raspberrypi.org/documentation/installation/installing-images/README.md). It is actually < 3GB of data, but I'm still actively using the disk and didn't want to go through the effort of trimming it down yet.

I made a torrent for distribution:
https://people.debian.org/~showard/20150625_raspbian_bitshares.zip.torrent

It should download it from my machine. I'll remove it from my machine once you let me know you get it. It's basically a minimal raspbian server install, no desktop. You have to SSH in to it with user: pi, and no password:
http://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

There are two executables in the home directory, witness_node and wallet_cli. You can use them as described here:
https://github.com/cryptonomex/graphene

this is just a preliminary test, but the idea is the same - there will just be an image you flash to a drive, and your pi is now a witness_node/CLI wallet node

Awesome!  +5%
+-+-+-+-+-+-+-+-+-+-+
www.Peerplays.com | Decentralized Gaming Built with Graphene - Now with BookiePro and Sweeps!
+-+-+-+-+-+-+-+-+-+-+

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
First image is up. Should work with any RPI or RPI2. The image fits on a 6GB or smaller SD card, following the same instructions you would use to install raspbian on an SD card (https://www.raspberrypi.org/documentation/installation/installing-images/README.md). It is actually < 3GB of data, but I'm still actively using the disk and didn't want to go through the effort of trimming it down yet.

I made a torrent for distribution:
https://people.debian.org/~showard/20150625_raspbian_bitshares.zip.torrent

It should download it from my machine. I'll remove it from my machine once you let me know you get it. It's basically a minimal raspbian server install, no desktop. You have to SSH in to it with user: pi, and no password:
http://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

There are two executables in the home directory, witness_node and wallet_cli. You can use them as described here:
https://github.com/cryptonomex/graphene

this is just a preliminary test, but the idea is the same - there will just be an image you flash to a drive, and your pi is now a witness_node/CLI wallet node
+5%

very nice.  I am curious what level of transaction volume a RPI or RPI2 would be able to maintain.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
First image is up. Should work with any RPI or RPI2. The image fits on a 6GB or smaller SD card, following the same instructions you would use to install raspbian on an SD card (https://www.raspberrypi.org/documentation/installation/installing-images/README.md). It is actually < 3GB of data, but I'm still actively using the disk and didn't want to go through the effort of trimming it down yet.

I made a torrent for distribution:
https://people.debian.org/~showard/20150625_raspbian_bitshares.zip.torrent

It should download it from my machine. I'll remove it from my machine once you let me know you get it. It's basically a minimal raspbian server install, no desktop. You have to SSH in to it with user: pi, and no password:
http://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

There are two executables in the home directory, witness_node and wallet_cli. You can use them as described here:
https://github.com/cryptonomex/graphene

this is just a preliminary test, but the idea is the same - there will just be an image you flash to a drive, and your pi is now a witness_node/CLI wallet node
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 fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
I might get this done sooner than I thought...

I've been piecing together how to emulate raspbian without actually needing hardware, and without using qemu to emulate a whole system (which is so slow) and wrote:
https://wiki.debian.org/RaspberryPi/qemu-user-static

The image I'm working on will be a full jessie rasbian image you can just flash to your sd card. I will have all the commands for the bitshares 2.0 cli wallet and witness node. We'll need to keep an eye on zhangweis' problem too:
https://bitsharestalk.org/index.php/topic,14917.msg193170.html#msg193170

nice! maybe you could open a thread in general to keep everyone updated?

as for the smartpi:

power on and

 - low energy costs
 - possible ROI as witness (or delegate)
 - use bitshares instantly
 - local network secure

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
I might get this done sooner than I thought...

I've been piecing together how to emulate raspbian without actually needing hardware, and without using qemu to emulate a whole system (which is so slow) and wrote:
https://wiki.debian.org/RaspberryPi/qemu-user-static

The image I'm working on will be a full jessie rasbian image you can just flash to your sd card. I will have all the commands for the bitshares 2.0 cli wallet and witness node. We'll need to keep an eye on zhangweis' problem too:
https://bitsharestalk.org/index.php/topic,14917.msg193170.html#msg193170
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 maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
Sounds like a fun project - I can get one too (just don't have one at the moment). I can try it out and cass can help with testing.

I think this is what we have to work with for now:
https://github.com/cryptonomex/graphene

Also, I mean RPI 2, not "B" in my previous posts... And we could just base it off of raspbian too, that's easy also and would get better coverage right away... If I get a chance this week, I'll see if I can whip something up for pi owners using raspbian to test.
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 fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
@maqifrnswa I can buy a Pi and plugin a SD card... that's about all of my technical knowledge. If it'd work like this, everyone could do it.

@cass maybe you can work together on this one?

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
i have a PI B i guess so maybe i can help on this ..
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
You can also sell pre-loaded SD cards so people can plug them into RPis. If you want maximum distribution, creating a simple image that can be downloaded and put on an SD card is trivial. Especially since debian armhf natively supports RPI Bs. Just install debian armhf on a RPI B, build bitshares, set up ssh, make some systemd services to start/restart bitshares - and then wrap up that image for distribution. Someone downloads the image, copies it to their SD - sticks it in, and it's a headless, stand-alone server that starts once you plug it in.

BONUS: the RPI B image will probably work with many others boards with no changes, including cubie board, some of those omex (sp?) boards, etc.

sounds great. can you do it? :D

yes :-) It's only a little more work than running the PPA. I'd need a PI B, I only have an A. (it could work on the A too, but the newer ARM chip on the B is easier to use with existing pre-compiled libraries).

EDIT: keeping it up to date would be harder... Sure, I install my image - but then it's stuck at that version. It might be easier to just set up our own debian armhf "ppa" and tell people to just install that package - or to have our pre-built binaries just go and fetch the up-to-date releases from that package. We can't get it into Debian main/Ubuntu universe because of the "you must use this with bitshares" clause, but "non-free" would be acceptable. In that case you just tell the Pi to grab the released package from the repositories.
« Last Edit: June 22, 2015, 07:01:52 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 Fox

Yes, both Graphene and BitShares currently run on the RPi2. You must comment out the Salsa references in the build scripts to compile correctly, as they will not build on the RPi2 processor at this time.
Witness: fox

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
You can also sell pre-loaded SD cards so people can plug them into RPis. If you want maximum distribution, creating a simple image that can be downloaded and put on an SD card is trivial. Especially since debian armhf natively supports RPI Bs. Just install debian armhf on a RPI B, build bitshares, set up ssh, make some systemd services to start/restart bitshares - and then wrap up that image for distribution. Someone downloads the image, copies it to their SD - sticks it in, and it's a headless, stand-alone server that starts once you plug it in.

BONUS: the RPI B image will probably work with many others boards with no changes, including cubie board, some of those omex (sp?) boards, etc.

sounds great. can you do it? :D

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
You can also sell pre-loaded SD cards so people can plug them into RPis. If you want maximum distribution, creating a simple image that can be downloaded and put on an SD card is trivial. Especially since debian armhf natively supports RPI Bs. Just install debian armhf on a RPI B, build bitshares, set up ssh, make some systemd services to start/restart bitshares - and then wrap up that image for distribution. Someone downloads the image, copies it to their SD - sticks it in, and it's a headless, stand-alone server that starts once you plug it in.

BONUS: the RPI B image will probably work with many others boards with no changes, including cubie board, some of those omex (sp?) boards, etc.
« Last Edit: June 22, 2015, 05:52:03 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 fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
It should work on the pi or should require minimal changes.   Everything we do is in cross-platform c++.

thinking about

http://thepihut.com/collections/raspberry-pi/products/raspberry-pi-model-a-a-plus model A

http://thepihut.com/collections/raspberry-pi-kits-and-bundles/products/raspberry-pi-2-starter-kit Pi2 Model B < better specs

my guess is Pi2 would be better?
« Last Edit: June 22, 2015, 02:10:29 pm by fav »

Offline bytemaster

It should work on the pi or should require minimal changes.   Everything we do is in cross-platform c++.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

iHashFury

  • Guest
Graphene is not ready for arm architecture yet. ( or I have made a silly error)

Code: [Select]
libraries/fc/CMakeFiles/secp256k1.dir/build.make:54: recipe for target 'libraries/fc/CMakeFiles/secp256k1.dir/vendor/secp256k1-zkp/src/secp256k1.c.o' failed
make[2]: *** [libraries/fc/CMakeFiles/secp256k1.dir/vendor/secp256k1-zkp/src/secp256k1.c.o] Error 1
CMakeFiles/Makefile2:450: recipe for target 'libraries/fc/CMakeFiles/secp256k1.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/secp256k1.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

iHashFury

  • Guest
You could also try https://www.solid-run.com/products/cubox-i-mini-computer/.

Bitshares would not build on my one. I will try building graphene  ;)

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
I wonder if this will be possible?  If so, can we get a shop or something up where you can buy pre-configured smartberries for BitUSD?

edit: could even run a witness on it... so would help decentralize the network even more.

Probably you looking for something like this but for BitShares:
https://bitseed.org/product/pre-order-bitseed-v2

It's will be possible when we will know BitShares 2.0 memory requirements.

https://twitter.com/satindergrewal/status/612749831551873024 is what made me think about it.

Offline testz

I wonder if this will be possible?  If so, can we get a shop or something up where you can buy pre-configured smartberries for BitUSD?

edit: could even run a witness on it... so would help decentralize the network even more.

Probably you looking for something like this but for BitShares:
https://bitseed.org/product/pre-order-bitseed-v2

It's will be possible when we will know BitShares 2.0 memory requirements.

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
I wonder if this will be possible?  If so, can we get a shop or something up where you can buy pre-configured smartberries for BitUSD?

edit: could even run a witness on it... so would help decentralize the network even more.