BitShares Forum

Main => Technical Support => Topic started by: fav on June 22, 2015, 10:36:06 am

Title: 2.0 local server via a raspberry pi?
Post by: fav on June 22, 2015, 10:36:06 am
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: testz on June 22, 2015, 10:49:32 am
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: fav on June 22, 2015, 10:52:12 am
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: iHashFury on June 22, 2015, 12:14:07 pm
You could also try https://www.solid-run.com/products/cubox-i-mini-computer/ (https://www.solid-run.com/products/cubox-i-mini-computer/).

Bitshares would not build on my one. I will try building graphene  ;)
Title: Re: 2.0 local server via a raspberry pi?
Post by: iHashFury on June 22, 2015, 12:22:04 pm
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
Title: Re: 2.0 local server via a raspberry pi?
Post by: bytemaster on June 22, 2015, 01:21:01 pm
It should work on the pi or should require minimal changes.   Everything we do is in cross-platform c++.
Title: Re: 2.0 local server via a raspberry pi?
Post by: fav on June 22, 2015, 02:06:50 pm
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?
Title: Re: 2.0 local server via a raspberry pi?
Post by: maqifrnswa on June 22, 2015, 05:50:28 pm
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: fav on June 22, 2015, 06:08:41 pm
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
Title: Re: 2.0 local server via a raspberry pi?
Post by: Fox on June 22, 2015, 06:47:06 pm
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: maqifrnswa on June 22, 2015, 06:56:15 pm
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: cass on June 22, 2015, 07:02:38 pm
i have a PI B i guess so maybe i can help on this ..
Title: Re: 2.0 local server via a raspberry pi?
Post by: fav on June 22, 2015, 07:14:19 pm
@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?
Title: Re: 2.0 local server via a raspberry pi?
Post by: maqifrnswa on June 22, 2015, 08:44:17 pm
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: maqifrnswa on June 23, 2015, 05:14:15 pm
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
Title: Re: 2.0 local server via a raspberry pi?
Post by: fav on June 24, 2015, 12:07:13 pm
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
Title: Re: 2.0 local server via a raspberry pi?
Post by: maqifrnswa on June 26, 2015, 04:22:09 am
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
Title: Re: 2.0 local server via a raspberry pi?
Post by: puppies on June 26, 2015, 07:31:04 am
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.
Title: Re: 2.0 local server via a raspberry pi?
Post by: xeroc on June 26, 2015, 09:47:56 am
+5% !!
Title: Re: 2.0 local server via a raspberry pi?
Post by: BunkerChainLabs-DataSecurityNode on June 26, 2015, 03:00:26 pm
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%
Title: Re: 2.0 local server via a raspberry pi?
Post by: xfund on June 28, 2015, 01:23:56 pm
 +5%
IOT
Title: Re: 2.0 local server via a raspberry pi?
Post by: Permie on June 28, 2015, 02:35:12 pm
 +5%
Great work
Title: Re: 2.0 local server via a raspberry pi?
Post by: bytemaster on June 28, 2015, 08:13:05 pm
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
Title: Re: 2.0 local server via a raspberry pi?
Post by: cass on June 29, 2015, 12:02:19 am
Great work!
Title: Re: 2.0 local server via a raspberry pi?
Post by: yjzll on June 29, 2015, 02:21:48 am
I have a Pi B, Could you tell us how to do it step by step ? how to make ?
Title: Re: 2.0 local server via a raspberry pi?
Post by: fav on June 29, 2015, 01:36:05 pm
@maqifrnswa could you open a new thread in general? for testers? would be great!

and thanks for your work so far :)
Title: Re: 2.0 local server via a raspberry pi?
Post by: iHashFury on June 29, 2015, 02:35:14 pm
Awesome work -  +5000%

building Graphene on my CuBox now (archlinux-arm)  :D
Title: Re: 2.0 local server via a raspberry pi?
Post by: maqifrnswa on June 29, 2015, 03:19:24 pm
@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
Title: Re: 2.0 local server via a raspberry pi?
Post by: Permie on July 04, 2015, 11:03:46 pm
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.