• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Masternode On Raspberry Pi 2 Model B

Lol i will look into this after im done with the tut. Still got a little bit of writing to do! ;)

Cant find the time though... :( But im on it!

EDIT: TUTS ARE DONE!
 
Last edited by a moderator:
Awesome~!!
i think it must be full of fun when deploying the MN on the pi and enjoy it working like clock.
Nice work~!
 
Fuzzy,

Maybe a dumb question... can I do this on a Raspberry Pi "1"? I am asking because I have one here doing nothing, and would like to fire it up. Any reason it wouldn't work?

Thanks! (and good write up!)
 
Thanks! If you don't I will. I am digging around for that thing and will give it a go tomorrow. I will let you know how it goes.
 
Before i got the Pi2 i was tinkering with the Pi1 the same way. I got it to compile, but didnt got to the point where i got in running, because the mailman brought the PI2 :)

I think the cpu of the Pi1 is capable, but not sure about the 512mb ram though. You can try it, and see if its stable. Also you could run it with swap on (see abandoned chapter) but it will shorten the lifespan of the sd card

workflow should be exactly the same though!

Let us know.
 
My computer went to sleep and killed my ssh session that had 'make' running. I've setup screen and kicked off the build again. I am really curious how long the build will take.

There already is swap setup on raspbian. It shows 100 megabytes.

pi@raspberrypi ~ $ top
top - 14:33:11 up 2 min, 1 user, load average: 0.66, 0.27, 0.10
Tasks: 76 total, 2 running, 74 sleeping, 0 stopped, 0 zombie
%Cpu(s): 95.1 us, 3.7 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 1.2 si, 0.0 st
KiB Mem: 445740 total, 153368 used, 292372 free, 13596 buffers
KiB Swap: 102396 total, 0 used, 102396 free, 45008 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2235 pi 20 0 80368 63m 7508 R 93.8 14.7 0:22.95 cc1plus
2236 pi 20 0 4696 2520 2120 R 6.1 0.6 0:00.22 top
 
Check out using monit for watching/re-starting darkcoind.

Here's how someone is using it to monitor bitcoind:
https://bitcointalk.org/index.php?topic=5911.0

pi@raspberrypi ~ $ sudo apt-get install monit
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
exim4 postfix mail-transport-agent
The following NEW packages will be installed:
monit
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 291 kB of archives.
After this operation, 718 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main monit armhf 1:5.4-2 [291 kB]
Fetched 291 kB in 0s (300 kB/s)
Selecting previously unselected package monit.
(Reading database ... 92017 files and directories currently installed.)
Unpacking monit (from .../monit_1%3a5.4-2_armhf.deb) ...
Processing triggers for man-db ...
Setting up monit (1:5.4-2) ...
[ ok ] Starting daemon monitor: monit.
 
Let me know if you find the script. I'm curious.

To compile darkcoind on pi1, it took:
real 324m32.232s
user 305m2.510s
sys 5m43.480s

Did not do any swap changes from default.

So, looks like it might work.

It starts up...

pi@raspberrypi ~ $ ./darkcoind
Darkcoin server starting
pi@raspberrypi ~ $ ps -ef | grep darkcoin
pi 3396 1 57 02:06 ? 00:00:03 ./darkcoind
pi 3401 2200 0 02:07 pts/1 00:00:00 grep --color=auto darkcoin

I've fired it up on testnet. Let's see if it syncs.

Looks like memory is not an issue (so far)

pi@raspberrypi ~ $ top
top - 02:09:02 up 11:37, 2 users, load average: 1.05, 0.47, 0.20
Tasks: 71 total, 1 running, 70 sleeping, 0 stopped, 0 zombie
%Cpu(s): 11.9 us, 18.6 sy, 66.1 ni, 0.0 id, 0.0 wa, 0.0 hi, 3.4 si, 0.0 st
KiB Mem: 445740 total, 364896 used, 80844 free, 10936 buffers
KiB Swap: 102396 total, 6408 used, 95988 free, 311904 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3396 pi 20 0 148m 23m 9564 S 79.3 5.5 1:20.83 ./darkcoind
3446 pi 20 0 4676 2376 2024 R 8.4 0.5 0:00.32 top

Will post later with whether or not it syncs.
 
Spent part of the day working on a RP Ver 1. Going pretty well, but I spent way too much time trying to get the port forwarding working. I can set up my router for port 22 but after many hours still cannot get port 9999 open. About to give up, but decided to proceed with the tutorial. When I bring it to work, I may be able to open the port there.

any ideas? I can open and close the 22 port using UFW on the RP1 and I can open and close the 22 port using the port forwarding on my Netgear router. However I can NEVER get 9999 to open up. I am using "Open Port Check Tool".

DarkRed... thanks for the feedback... I am going to see how far I can take this one.
 
I'm working on this right now, have compiled .25 on a RP 1 and it has synced with the blockchain so far. Will try to get a remote masternode up and running.
 
It takes about 15 minutes for darkcoind to start, but after that it seems ok. Unfortunately I need to wait until my old MN IP gets out of the system to test again, think that's why I can't see the RPi IP in the masternode list. Will try again in a couple of hours.
 
Ok, so I got it up and running. It's showing ,1 in the masternode list, so I guess now I need to wait for it to receive a MN payment to see if it really works.

This was done on a RPi 1 Model B with 512Mb of RAM. As you can see from the "top" command, there is not much free RAM, so it would probably not work as well on a Model A with 256Mb of RAM.

KiB Mem: 445740 total, 419888 used, 25852 free, 62884 buffers
KiB Swap: 249852 total, 64 used, 249788 free, 225836 cached

If you have any questions regarding this, just ask!
 
Nice to see it working on a Pi1 with 512mb ram.

If this is taking off we might ask devs for pre-compiled builds for ARM kernel.

To see if your Pi1 is running ok check with:

./darkcoind masternode list | grep YOUREXTERNALIP

If you are low on RAM perhaps its wise to make an auto restart, in case you run out:

https://darkcointalk.org/threads/auto-restart-the-masternode.3103/

My PI2 is running now for about 1week and 4 days orso. Didnt touch it and got two payments. Next one is due today i think
 
My latest project has been to get a masternode up and running on a Raspberry Pi 256Mb version, and now that has been successful as well.

I moved the swapspace to a USB-stick and increased it's size to be on the safe side, and it seems to work fine.

Memory utilization:
KiB Mem: 185844 total, 160792 used, 25052 free, 5512 buffers
KiB Swap: 1048572 total, 3468 used, 1045104 free, 40368 cached

The "used" amount can be a little deceiving it seems, since linux uses up as much memory as it can for caching and used files among other things.
 
Fuzzy,

My RP2 arrived today and I am working on your tutorial... a question... Can the normal GUI wallet be run from the graphical environment? I followed the guides for other Linux distros, but no luck. I double-click the darcoin-qt (as downloaded from the darkcoin_io website) and nothing happens. Any ideas?

Thanks!!!!
 
Back
Top