Changes

From Ravencoin Wiki
Jump to navigationJump to search
5,349 bytes added ,  11:13, 27 October 2018
Saving first bit of the guide
{{#seo:
|title=Ravencoin Wiki: Raspberry Pi
|keywords=Raspberry Pi full node
|description=Building a Ravencoin full node on Raspberry Pi
}}
''By Jeroz - Oct 27th, 2018'' == Before you start == Before you start, you will need:* A working internet connection (cable or WIFI)* '''A PC with an SD card reader'''* A Mouse, keyboard, and monitor == Raspberry Pi hardware == My Pi hardware:* $54.99, [https://www.amazon.com/gp/product/B07BC7BMHY Canakit Raspberry Pi 3 B+] (Pi + Case + heat sinks + power cable) <br />My reasoning for this option: I rather have everything in 1 go.* $15.20, [https://www.amazon.com/gp/product/B06XFWPXYD 64 GB Samsung 64GB MicroSDXC EVO Plus Memory Card]. <br />Obviously I forgot to buy this initially (oops...) <br />My reasoning for this option: I chose 64GB instead of 32 to have enough room for the future. <br />'''Note:''' formatting a 64GB (or larger) card takes extra steps, see below == Setting up Pi hardware and OS software == # Follow the instructions that shipped with the Raspberry Pi to build it.# Download the [https://www.raspberrypi.org/downloads/noobs/ OS Zip file] (NOOBS for beginners). # The Raspberry Pi only reads FAT32 formatted partitions on the SD card. So you will need to format it using [https://www.sdcard.org/downloads/formatter_4/index.html SD Memory Card Formatter] <br />'''Note:''' If your SD card is 64GB (or larger), it will automatically be formatted as exFAT, which is not compatible with NOOBS. You need to force your SD card to format as FAT32 to use NOOBS[https://www.raspberrypi.org/documentation/installation/sdxc_formatting.md].#*Linux and Mac OS: The standard formatting tools built into these operating systems are able to create FAT32 partitions; they might also be labeled as FAT or MS-DOS. Simply delete the existing exFAT partition and create and format a new FAT32 primary partition.#*Windows: The standard formatting tools built into Windows are limited, as they only allow partitions up to 32GB to be formatted as FAT32, so to format a 64GB partition as FAT32 you need to use a third-party formatting tool. A simple tool to do this is [http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm FAT32 Format]. #Extract the NOOBS zip file and copy its contents on the memory card.#When this process has finished, safely remove the SD card and insert it into your Raspberry Pi.#Connect the power to the Raspberry Pi to let it boot. If you run into trouble, walk trough the [https://www.raspberrypi.org/learning/hardware-guide/ Raspberry Pi hardware guide] #If you are using NOOBS and this is the first time your Raspberry Pi and SD card have been used, then you'll have to select an operating system and let it install. == Setting up the Ravencoin node - The quick way ==Now that you got the OS running, it is time for the fun part: setting up the Ravencoin node. Normally installing Ravencoin will take hours and syncing to the network will take days. However, I found some nice shortcuts for you. #Instead of the repository of the Core Ravencoin developers, [https://github.com/underdarkskies Under] who is also an active developer, compiled static versions of the Ravencoin wallet/node. Static means that this version works straight out of the box for each operating system. For the Raspberry Pi, you need the [https://github.com/underdarkskies/Ravencoin/releases ARM-linux version of Ravencoin]. Open a console and use the following code: #:<pre>#::cd ~/ &#10;wget https://github.com/RavenProjectunderdarkskies/Ravencoin/releases/download/v2.1.1/raven-2.1.1-arm-linux-gnueabihf.tar.gz &#10;gunzip ./raven-2.1.1-arm-linux-gnueabihf.tar.gz </pre> '''Note:''' Under and I just saved you hours of headaches and 2 hours of compiling!# There is no working Ravencoin GUI for the Raspberry Pi. So you will need to get everything working from the command line. I like to put binaries into my default local user binary location so that I can globally access them from anywhere. #:<pre>#::cd raven-2.1.1/bin &#10;sudo cp ./* /usr/local/bin </pre> Two files in this directory are important:#*''ravend'': which is the Ravencoin deamon, a program that implements the Ravencoin protocol for remote procedure calls (RPCs). In simple terms: it will run a wallet/node as a background process and you can send instructions to it.#*''raven-cli'': which is the command line interface for Ravencoin that you can use to send instructions to ravend.#Next up is starting the deamon (ravend) process to start the Ravencoin node.#:<pre>#::Ravend & </pre>#Ravend runs entirely in the background, so you cannot see what is happening. The process will create wallet and blockchain files in <code>~/.raven/</code>. Subsequently, it will start downloading the Ravencoinblockchain. This will take forever! So, what we are going to do is stop ''ravend'' after ~5 minutes and thank [https://blobwww.youtube.com/masterchannel/docUCTGFgr_1P8jdiM1Xend0ELw/buildfeatured Cryptoslo] for sharing a link that contains 1.8GB of the blockchain already.#:<pre>#::raven-rasberrypicli stop &#10;cd ~/raven &#10;wget http://147.135.10.45/blockchains/current/Raven_blockchain.zip &#10;unzip Raven_blockchain.zip </pre>#Additionally, we are going to make a configuration file to set up ravencoin optimally for the raspberry pi.#:<pre>#::touch ~/.raven/raven.conf &#10;nano ~/.raven/raven.conf </pre> Enter the following script: <br />TBC...md  == Connections and Security == == Final checks ==

Navigation menu