16
General Discussion / Project: Raspberry Pi (and other ARM SBC) BitShares2.0 images and repositories
« on: June 29, 2015, 03:14:02 pm »
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
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
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
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:
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
write down the INET address of eth0, should look like:
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)
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:
"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
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-.* .*-dev
d) Upgrade to JessieCode: [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" belowOR
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 terminalwrite 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 pi@192.168.1.2
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