Changes

Jump to navigation Jump to search
1,451 bytes added ,  11:08, 19 April 2021
}}
<div class="floatright"><img src="https://i.gyazo.com/3d630d1f995efdb8ffdd04865a6a12c0.png"><br>By [@]Pathfinder#0001</div>
''By Jeroz - Oct 27th, 2018 -- Updated by [https://twitter.com/pathfinder @Pathfinder] for v3v4.3. - Jan, 20202.1''
#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 (Choose the default: Raspbian).
#Don't forget to set a password for login when prompted. Otherwise it is too easy for someone else to get in.
 
== A High-End RPi4 Build with SATA SSD ==
(by [https://twitter.com/pathfinder @Pathfinder])
 
If you'd like a higher-end hardware setup that's optimized for expandability and speed (microSD cards are notoriously slow), see my [https://bit.ly/smol-guide-rpi4 smol guide].
<p>
You'll end up building something that looks like this:
<br>
[https://i.gyazo.com/f0eb138514580314976a21a68b8fc68c.jpg <img src="https://i.gyazo.com/f0eb138514580314976a21a68b8fc68c.jpg" width="350">]<br>
 
My [https://bit.ly/smol-guide-rpi4 smol guide] focuses on running Urbit, but the specified hardware config is also ideal for running a Ravencoin or Bitcoin node!
<p>
 
For optimal speed and expanadabilty, I suggest using the SATA SSD as the data storage location for the Ravencoin blockchain as well as the Ravencoin binaries.
<p>
Create a directory on the SSD called <b>/media/pi/SSD/Ravencoin</b> and put the directory with the Ravencoin binaries in there.
<p>
Then create a directory on the SSD called <b>/media/pi/SSD/Ravencoin/RavencoinData</b> for the blockchain and reference it like this:
 
<p>
 
<b>To START the node:</b>
<pre>./ravend -daemon --datadir=/media/pi/SSD/Ravencoin/RavencoinData</pre>
 
<b>To STOP the node:</b>
<pre>./raven-cli -datadir=/media/pi/SSD/Ravencoin/RavencoinData stop</pre>
 
<b>To CHECK the node:</b>
<pre>./raven-cli -datadir=/media/pi/SSD/Ravencoin/RavencoinData -getinfo</pre>
 
When you're done, it should all look like this:
 
[https://i.gyazo.com/8c02cd94d8012643c2ce2ec5dc5163f7.jpg <img src="https://i.gyazo.com/8c02cd94d8012643c2ce2ec5dc5163f7.jpg" width="800">]
== Setting up the Ravencoin node - The quick way ==
#The Core Ravencoin developers provide binaries for ARM architecture, which are needed for the Raspberry Pi. The latest ravencoin core wallet binaries can be found [https://github.com/RavenProject/Ravencoin/releases here]. For a Pi, you always need a version that has ARM in its name. Open a terminal and use the following commands to get it:
#:<pre>
#::cd ~/ &#10;wget https://github.com/RavenProject/Ravencoin/releases/download/v4.3.2.1/raven-4.3.2.1-arm32v7.0zip &#10;unzip raven-arm-linux4.3.2.1-gnueabihfarm32v7.tar.gz zip &#10;cd arm32v7 &#10;tar -xvzf raven-4.3.2.1.0-arm-linux-gnueabihf.tar.gz </pre>
# I like to put binaries into my default local user binary location so that I can globally access them from anywhere.
#:<pre>
#::sudo cp ./raven-4.3.2.1.0/bin/* /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.
#:<pre>
#::touch ~/.raven/raven.conf &#10;nano ~/.raven/raven.conf </pre> Enter the following lines, and adjust user/login settings accordingly:
#:<pre>rpcuser=rpcuser #optional &#10;rpcpassword=SETYOURPASSWORDHERE #optional &#10;rpcallowip=IP_ADDRESS_OF_HOST_YOU_ACCESS_RAVEN-CLI_FROM 127.0.0.1 #optional &#10;serverdaemon=1 &#10;upnp=1 &#10;listen=1 &#10;dbcache=800 &#10;maxmempool=50 &#10;disablewallet=1 &#10;logips=1 &#10;maxconnections=40 125 &#10;prune=42000 &#10;maxuploadtarget=5000 &#10;server=1 </pre> '''Note1:''' If you are are planning to only access your node from your pi itself, skip the first 3 optional settings <br /> '''Note2:''' It is important to set <code>server=1</code> otherwise you will not get incoming connections and <code>prune</code> lets your pi look at the last X MB of the chain. Adjust this value based on your SD size. <br /> '''Note3''': Opening up the RPC port to hosts outside your local trusted network is NOT RECOMMENDED, because the rpcpassword is transmitted over the network unencrypted.<br />To save: CTRL+O ENTER, To exit: CTRL+X.
#Now you can start start ravend again to index the blockchain that you downloaded and to download the remaining bit (which may still take a day depending on your connection).
#:<pre>
And there you go, a full node on a Raspberry Pi! :)
Thanks to [@]unclear#0122, [@]Name#8397 and [@]Mapple#3283 (Discord handles) for giving valuable feedback. And [@]Under#7846 for sharing some thoughts on the static release and configuration settings.

Navigation menu