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

0 Members and 1 Guest are viewing this topic.

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.