Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Masternode On Raspberry Pi 2 Model B

Discussion in 'Masternode Guides' started by fuzzyduck, Feb 21, 2015.

  1. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    Thx for your contribution! Ill will add it when i find some time. Being sundayevening, weekend has just stopped :mad:
     
    • Like Like x 1
  2. Solarminer

    Solarminer Well-known Member

    Joined:
    Apr 4, 2015
    Messages:
    762
    Likes Received:
    921
    Trophy Points:
    163
    This is what worked for me using Ubuntu 14.x. No new users, just the default pi user.
    sudo passwd pi
    cd ~/
    sudo apt-get –y update && sudo apt-get –y upgrade && sudo apt-get –y upgrade-dist
    sudo apt-get -y install libtool autotools-dev autoconf libdb-dev libminiupnpc-dev dh-autoreconf libdb++-dev libboost-all-dev libssl-dev pkg-config joe ufw protobuf-compiler libprotobuf-dev screen nano
    git clone https://github.com/darkcoin/darkcoin
    cd darkcoin
    sudo ./autogen.sh
    sudo ./configure --with-incompatible-bdb
    screen (go though prompts)
    sudo make
    <control a> d
    Sleep, shutdown computer, wakeup, restart Bitvise SSH client
    screen -r
    cp ~/.darkcoin/src/dashd ~/
    ./dashd
    close the error
    nano .dash/dash.conf

    I use the Bitvise SSH client instead of Putty. It also adds ftp ability through SSH sessions along with storing more login information. No need to sudo chmod +x .dashd since it is already set. I also used sudo for most commands because I didn't create a root account. Last command should use the .dash directory instead of .darkcoin. Commands from sudo apt-get.. to screen can be copied and pasted (right mouse click paste) into a terminal to save about 10 minutes of waiting to type the next command.
     
    • Like Like x 1
  3. Solarminer

    Solarminer Well-known Member

    Joined:
    Apr 4, 2015
    Messages:
    762
    Likes Received:
    921
    Trophy Points:
    163
    Actually, I have a set of Pi2s( I think all the Pi2s are model B) and they have 1GB of ram. I agree that Pi2s are well worth the $10 extra cost for the extra ram, extra USB ports, hdmi port, micro sd slot, and faster/more universal ARMv7 processor.
     
    • Like Like x 1
  4. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    Yep, thats the short version for running dashd on a Pi2. My guide is written for noobs like me :tongue:
     
    • Like Like x 1
  5. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,945
    Likes Received:
    6,728
    Trophy Points:
    1,283
    hey guys
    can anybody please get me some good pictures of their
    Raspberry Pi running a Masternode ?

    A good picture would really help !!
    sharp, good light and good /clean backdrop
    pleaseeeeee
    :)
     
    • Like Like x 2
  6. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    Mine is running in an ugly cupboard..... Cant you just grab any pic off the internet? You cant tell its not running dashd now can you! :tongue:

    mine is running with just power and utp connected. Did it all with putty remotely
     
    • Like Like x 1
  7. Sub-Ether

    Sub-Ether Well-known Member

    Joined:
    Mar 31, 2014
    Messages:
    1,516
    Likes Received:
    1,254
    Trophy Points:
    183
    Don't forget to include the ugly cupboard, I want to see that more than anything :D
     
    • Like Like x 1
  8. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    BAM! Ugly cupboard in your face!

    Its my MEP closet near the front door. Hung an Atom server on the wall in there with a raid1 config.

    Rasp is just lying there doing its work for months now without looking at it.



    [​IMG]
     
    #68 fuzzyduck, May 7, 2015
    Last edited by a moderator: May 7, 2015
    • Like Like x 4
  9. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,945
    Likes Received:
    6,728
    Trophy Points:
    1,283
    tx fuzzy
    i remember now, that pretty cardboard !
    you send that picture some month ago !
    tx man, this will do for now (i will come back to you eventually about this)
     
    • Like Like x 2
  10. Solarminer

    Solarminer Well-known Member

    Joined:
    Apr 4, 2015
    Messages:
    762
    Likes Received:
    921
    Trophy Points:
    163
    Here is a nice picture of a pi with a case.
     

    Attached Files:

    • 2.jpg
      2.jpg
      File size:
      1.6 MB
      Views:
      12
    • Like Like x 3
  11. Solarminer

    Solarminer Well-known Member

    Joined:
    Apr 4, 2015
    Messages:
    762
    Likes Received:
    921
    Trophy Points:
    163
    And as Mr. Solarminer, here is a picture of a pi running some USB connected BFL Monarch miners. The wires go to my mailbox and text me when the mail comes.
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      1.8 MB
      Views:
      12
    • Like Like x 1
  12. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,262
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Is this for real? Are you saying the wires go to your physical box in front of your house for snail mail and when the mailman puts the mail in there, the wires really send you a txt msg? Or am I mistaken because you're talking about your gmail inbox?
     
    • Like Like x 1
  13. buster

    buster Guest

    I'm wondering if the dependencies you have listed are the same ones that I would use to run the regular dash-qt. I know I can leave out the joe and ufw, but what about the others?

    Also, does anyone know if you can just download the binaries from dashpay.io for linux distros and run that on a PI, or does the wallet have to be built from source?

    Lastly, I am confused as to why this line looks like this.
    what is the with-incompatible-bdb?
     
  14. Solarminer

    Solarminer Well-known Member

    Joined:
    Apr 4, 2015
    Messages:
    762
    Likes Received:
    921
    Trophy Points:
    163
    The simple answer is that the pi uses an arm cpu. It is not compatible with the 32 bit or 64bit compiled distributions so it needs to be compiled.

    You need all the libraries to do the compiling. Once you have compiled the dashd executable, you could probably run that on any pi without any of the libraries.

    That command ignores certain errors related to the arm cpu.
     
  15. Solarminer

    Solarminer Well-known Member

    Joined:
    Apr 4, 2015
    Messages:
    762
    Likes Received:
    921
    Trophy Points:
    163
    Yep. Wires go to a mercury switch on door of the mailbox. The mercury switch keeps getting triggered by rain and wind so I will be trying a magnetic switch. I have a little python script that runs and sends an email to the text address for my phone when it senses the switch closing.
     
    • Like Like x 2
  16. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,248
    Likes Received:
    678
    Trophy Points:
    183
    Would be nice to see a Pi version on the DASH Download page :p

    I'll have my Raz Pi2b next Wednesday :-D

    \o/ yeah !!! can't wait \o/



    Luv the guide by the way :-D
     
    • Like Like x 3
  17. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
  18. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,248
    Likes Received:
    678
    Trophy Points:
    183
    Just learned the my Raspberry is at the house waiting on me :-D

    Can't wait - WOOT !!!!
     
    • Like Like x 4
  19. buster

    buster Guest

    awesome! I just helped a guy build the dash wallet on his. I am thinking about getting one here pretty soon.
     
    • Like Like x 4
  20. studioz

    studioz Well-known Member

    Joined:
    Sep 10, 2014
    Messages:
    540
    Likes Received:
    464
    Trophy Points:
    163
    • Like Like x 2
  21. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,262
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Me too. Which one are you going to get? Is it hard to set up a MN on it?
     
  22. buster

    buster Guest

    That looks pretty sweet but seems a little more pricey than the rPI.

    Well we didn't set up a masternode we only set up the Dash-QT, this guide helped me quite a bit as I took various bits from parts of it. When I was first helping him he had an older model rPI and we kept getting frozen on some of the steps. So he decided to upgrade and got the rPI 2. Today we successfully got the QT up and running. At the moment he is letting is sync and tomorrow he will import his backup wallet.dat.

    After helping him I decided that if i did get one, it would be the rPI 2 as it is only 35$.
    https://www.raspberrypi.org/raspberry-pi-2-on-sale/
     
    • Like Like x 1
  23. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,248
    Likes Received:
    678
    Trophy Points:
    183
    My only HDMI monitor has an Overscan "issue" - ugh
    Cant see everything - ugh

    few other issues to work out -


    time for bed - ugh
     
  24. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,248
    Likes Received:
    678
    Trophy Points:
    183
    Know how to resolve this issue?

    trying to download DASH on my Pi and I get - :
    - - - -
    ERROR: The certificate of 'www.dashpay.io' is not trusted.
    ERROR: The certificate of 'www.dashpay.io' hasn't a known issuer.
    - - - -

    it does connect to ip : 128.127.106.235

    if I try to download straight from the IP address I get - :
    - - - -
    ERROR: The certificate of '128.127.106.235:443' is not trusted.
    The certificate is expired..
    The certificate's owner does not match hostname '128.127.106.235'
    - - - -


    ???thoughts???
    maybe I missed something
    (fyi: not used the guide yet.......going to look at it now)



    thx in advance





    EDIT: - FIXED IT :)

    I removed the "s" from the https://www......... and it worked :)
    (which means I'm downloading from port 80 instead of port 443

    \o/ YEAH


    - okay - back to the build :-D


    -THIS THING IS SOFA KING AWESOME :p




    edit 2: and now I realize I can't just download it like that because it's not compatible - lol - ugh
    still workin it
     
    #84 MangledBlue, May 28, 2015
    Last edited by a moderator: May 29, 2015
    • Like Like x 1
  25. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    Hey MangledBlue, you are running the GUI on the PI? Overscan is something i had troubles with when i was trying get a mediaplayer running in my bedroom on the old pi. Check your monitor or tv menu to see if you can disable Overscan. Or just force a small resolution.

    Anyway, im not using a GUI (check guide), im just putty myself into the Pi2 and do terminal only. Never even seen the GUI because i just dont care since its my dedicated MN ;)

    I have no experience in tying to run the QT in GUI. I got Windows for that:oops:

    Ow and you have to build your own MN and or QT because there isnt a download for ARM processors (yet)
     
    • Like Like x 1
  26. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,248
    Likes Received:
    678
    Trophy Points:
    183
    Now compiled and downloading the blockchain \o/ yeah

    I seriously have to say THANX to GhostPlayer and Propulsion - I could not have done this without you guys :p
    I know you have not helped me recently - lol - but all the times in the past is now paying off \o/
    fuking luv you guys :-D

    AND - thx to this guide - huge help - I changed a few things to "my way" but still - very helpful guide \o/ WOOT!!!

    Off to the store and the Casino while the blockchain downloads \o/ so happy right now


    luvs ya moli :p
    kisses




    MB
     
    • Like Like x 2
  27. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    Thx! You just made my day!
     
  28. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,248
    Likes Received:
    678
    Trophy Points:
    183
    No way for me to turn-off overscan - my TV is my only HDMI and the scan is fixed - ugh
    So I have to use the GUI - then terminal to code everything
    I prefer that method for now
    I'll figure out how to ssh into it later once I get it run in MN mode - \o/

    Never used putty - I setup a VM with ubuntu and I just ssh in via terminal to terminal - way easy :p

    I won't use QT here - only dashd for MN
    I got this to replace my AWS since my free year is about up

    lol - won $120 at Casino last week - damn thing was free to me - lol

    right then - off to store and casino now
    (mother called, got delayed)


    bye for now
     
  29. Sub-Ether

    Sub-Ether Well-known Member

    Joined:
    Mar 31, 2014
    Messages:
    1,516
    Likes Received:
    1,254
    Trophy Points:
    183
    Is it deliberately looking like Orac from Blake's 7 ?

    [​IMG]
     
  30. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,248
    Likes Received:
    678
    Trophy Points:
    183
    Just sayin -
    You should change the guide to tell people to COPY instead of move the dashd file
    I'm having some troubles and might have to recompile just to get the dashd file back - ugh :-(