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. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,262
    Likes Received:
    1,837
    Trophy Points:
    1,183
    How about you rewrite the guide from your own experience, in your own words? Another guide doesn't hurt anyone.


    And please don't waste so much space in your posts...


    :tongue:
     
  2. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    LOL - good ole moli :p

    Whelp - MASTERNODE HOT ON THE Pi :)

    This was pretty easy actually \o/

    I'll give it a few days before I cancel AWS :)

    Oh - Lost $4 at the Casino :-(
    oh well........


    edit: Got the Pi moved and is running headless - easy login with ssh :-D \o/ YEAH!!!!

    done :-D
     
    #92 MangledBlue, May 29, 2015
    Last edited by a moderator: May 29, 2015
    • Like Like x 1
  3. coingun

    coingun Active Member
    Masternode Owner/Operator

    Joined:
    Jul 8, 2014
    Messages:
    490
    Likes Received:
    405
    Trophy Points:
    133
    [email protected]:~/bin/wallets/mainnet$ wget https://www.dashpay.io/binaries/dash-0.11.2.23-linux.tar.gz
    --2015-05-29 00:24:40-- https://www.dashpay.io/binaries/dash-0.11.2.23-linux.tar.gz
    Resolving www.dashpay.io (www.dashpay.io)... 128.127.106.235
    Connecting to www.dashpay.io (www.dashpay.io)|128.127.106.235|:443... connected.
    ERROR: The certificate of `www.dashpay.io' is not trusted.
    ERROR: The certificate of `www.dashpay.io' hasn't got a known issuer.


    [email protected]:~/bin/wallets/mainnet$ wget --no-check-certificate https://www.dashpay.io/binaries/dash-0.11.2.23-linux.tar.gz
    --2015-05-29 00:24:54-- https://www.dashpay.io/binaries/dash-0.11.2.23-linux.tar.gz
    Resolving www.dashpay.io (www.dashpay.io)... 128.127.106.235
    Connecting to www.dashpay.io (www.dashpay.io)|128.127.106.235|:443... connected.
    WARNING: The certificate of `www.dashpay.io' is not trusted.
    WARNING: The certificate of `www.dashpay.io' hasn't got a known issuer.
    HTTP request sent, awaiting response... 200 OK
    Length: 38286647 (37M) [application/x-gzip]
    Saving to: `dash-0.11.2.23-linux.tar.gz'

    42% [================================================================> ] 16,113,664 2.15M/s eta 12s
     
    • Like Like x 1
  4. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,631
    Likes Received:
    3,532
    Trophy Points:
    1,183
    To fix wget you could also try: sudo apt-get install ca-certificates && sudo update-ca-certificates
     
    • Like Like x 2
  5. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    Seems that my port 9999 on home modem does not want to stay open - no matter what I try
    Thoughts?
     
  6. fuzzyduck

    fuzzyduck Active Member

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

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    It was fine last night but I found it closed - via the port checker this morning - ugh

    I'll just have to play with it - really want to use that Raspberry for the MN - I'll think of something - hummmmmmm
     
  8. buster

    buster Guest

    Just ordered one today. Will be here on the 4th. About as excited as MB was 4-5 days ago.
     
    • Like Like x 3
  9. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    LOL - yep -
    My dick is still hard for the RAZ Pi 2 b

    All of my port issues seemed to be resolved - hopefully

    The Pi is AMAZING !!!

    I seriously see the Pi - like looking at my fathers IBM CLONE back in the day with (2) HDD's @ 40MB, dual floppy - moving forward with a HUGE potential

    The Pi folks said that they don't see a new board coming out over the next 2-3 years which means I won't have to upgrade \o/ YEA - but on the downside - I WANT THAT UPGRADE !!!!
    I'm sure it will be the shit when it does happen

    I just hope that they don't sell-out to a fiat company for BIG fiat.......and ruin the charity/non-profit business model

    Viva Raz Pi!!!
     
  10. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    Whelp - for some odd reason my port is now staying OPEN and I didn't change anything (EDIT: guess I said that already = (_)]'s last night lol)
    AND
    I got paid on schedule - no dayz missed
    SO
    If you change your MN IP - you'll still get paid - if you leave everything else the same \o/ YEAH !!!!!
     
  11. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    What are some other useful commands I can use to check my MN on the cmd-line in/on a "Linux system"???

    ./dashd masternode list | grep 'IP'
    ./dashd masternode '??something pose??' | grep 'IP'
    ./dashd getinfo
    netstat -an | grep 9999


    and what is the cmd: htop ?? I think it is
    I think it shows running apps and CPU usage....
    I need to: apt-get 'htop' but not working''

    edit - found it: sudo apt-get install htop
    (still learning :-D



    edit - looks like the Raz Pi 2 b only uses a single core to process/run the MN so I'm gonna try: ./dash setgenerate true 3 for at least a day or so, along-side the MN - most likely won't hit a block since the hash only shows:

    "hashespersec" : 4014

    wow - that's tiny - lol
     
    #101 MangledBlue, May 30, 2015
    Last edited by a moderator: May 30, 2015
  12. crowning

    crowning Well-known Member

    Joined:
    May 29, 2014
    Messages:
    1,428
    Likes Received:
    2,005
    Trophy Points:
    183
    ./dashd masternode list pose | grep 'IP'
     
    • Like Like x 1
  13. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    Somebody please tell me I'm wrong here...........................

    The longer you leave your MN running - the MORE stable it becomes....

    When I 1st setup my Pi w/ MN it seemed to run fine - cool - ports open on my personal ISP
    But I went to bed......

    Woke-up and found port 9999 CLOSED - I had 8 connections and when I input: netstat -an | grep 9999
    I had 8 connections - PORT CLOSED ???
    I had to go to work so there really was nothing I could do until I got home

    In the left column of : netstat -an | grep 9999
    I only had my personal IP listings with "other ports" listed as being connected to other IP's:9999


    By the time I got home - port 9999 was OPEN - and there was no way I could make any changes from work - everything was AS IS - still

    Running: netstat -an | grep 9999 - again
    I had many more connections - very cool -

    In the left column of : netstat -an | grep 9999
    I had not only my personal IP listings with "other ports" listed as being connected to other IP's:9999 -
    but now - my personal IP listings display my IP:9999, now connected to other IP:various port(s) and other IP's:9999

    In my opinion - "Stability" of the DASH "system" - seems to come with time
    I have a feeling that - IF - I had the day off from work - I might have "played/tried to fix" the whole MN system on my Rasp Pi when there was actually nothing wrong with the system in the first place

    Like I said : "Stability" of the "system" - seems to come with time

    With that said - if you follow "any guide" give your Pi/DASH/MN setup 24-48 hours to achieve "stability"



    - lol - maybe I'm wrong - and - somebody was just ddos'ing me for a day-ish due to my NEW IP on the system

    but - I wanted to share this experience because - you can't solve a problem if, you don't know, there every was a problem



    I want somebody in THE KNOW to either Confirm or Deny my theory.

    Personal experience is also wanted if you have, even vaguely, seen this happen
     
  14. crowning

    crowning Well-known Member

    Joined:
    May 29, 2014
    Messages:
    1,428
    Likes Received:
    2,005
    Trophy Points:
    183
    What you WANT to see is the result of "netstat -an | grep LISTEN | grep 9999", if the IP(s) of your dashd are listed here you're fine and your dashd(s) are listening for requests from the outside world.

    Whether or not other clients are able to connect to your dashd(s) is outside of the power of dashd itself and depends on your routing and/or firewall settings, so if the state changes from LISTEN to CLOSED there's most probably a network problem you have to fix.

    As for your stability theory, I don't support that one :)
    I have a Masternode or three and once they were configured correctly they started to listen and never stopped so far...
     
  15. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    Indeed when i start dashd it just keeps on going. No worries for months now. Can your ISP close port 9999 because you are using too much bandwidth for their liking?

    I got a super lazy script to check if you are running ok. It just spits out some commands. You can edit/add stuff to your liking but this is what i use atm:
    ---------------------------





    #!/bin/sh
    echo "****************************************************"
    echo " "

    ./dashd getinfo

    echo " "
    echo "****************************************************"
    echo " "

    ./dashd masternode debug

    echo " "
    echo "****************************************************"
    echo " "

    ./dashd masternode list | grep YOURIPADDRESS

    echo " "
    echo "****************************************************"
    echo " "

    echo "count"
    ./dashd masternode count

    echo " "
    echo "****************************************************"
    echo " "
    echo "yes"
    ./dashd masternode list votes | grep -c YEA
    echo " "
    echo "no"
    ./dashd masternode list votes | grep -c NAY
    echo " "
    echo "not voted"
    ./dashd masternode list votes | grep -c ABSTAIN
    echo " "
    echo "you voted"
    ./dashd masternode list votes | grep YOURIPADDRESS

    echo " "
    echo "****************************************************"










    ---------------------------
    Just type:
    Nano check

    then paste the lot. Save and make it executable. Ofcourse change YOURIPADDRESS to you IP.
    Then at prompt type:

    ./check

    and hey presto! statusupdate!
     
  16. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    WOW - lol

    You guys are GREAT!!!!!!


    thx
     
  17. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    I want to setup a cron job on my Pi to restart on re/boot
    but
    I can't figure out the exact line I need

    @reboot pi/home/.dash/./dashd -shrinkdebugfile

    To start my wallet running I have to input ./dashd but the above line just doesn't look right to me

    Thought's??
     
  18. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    I LUV your nano check program
    very nice

    I changed it a bit
    Here's my version

    #!/bin/sh
    echo "***START-OF-LINE************************************"
    echo "***CHECK CONNECTIONS********************************"
    netstat -an | grep 9999
    echo " "
    echo "***CHECK CONNECTION - LISTENING********************"
    netstat -an | grep LISTEN | grep 9999
    ECHO " "
    echo "***GET INFO*****************************************"
    ./dashd getinfo
    echo " "
    echo "***DEBUG********************************************"
    ./dashd masternode debug
    echo " "
    echo "***Should = ENABLED*********************************"
    ./dashd masternode list | grep Y.OU.R.IP
    echo " "
    echo "***ZERO is BEST SCORE*******************************"
    ./dashd masternode list pose | grep Y.OU.R.IP
    echo " "
    echo "****************************************************"
    echo "Total MN Count"
    ./dashd masternode count
    echo "***VOTES********************************************"
    echo "YES"
    ./dashd masternode list votes | grep -c YEA
    echo " "
    echo "NO"
    ./dashd masternode list votes | grep -c NAY
    echo " "
    echo "Abstain"
    ./dashd masternode list votes | grep -c ABSTAIN
    echo " "
    echo "Your Vote"
    ./dashd masternode list votes | grep Y.OU.R.IP
    echo "***END-OF-LINE**************************************"



    Save as: check
    Make executable: chmod +x ./check
    To run: ./check


    This makes my life so much easier - lol
    THANK YOU !!!!
     
    #108 MangledBlue, Jun 1, 2015
    Last edited by a moderator: Jun 2, 2015
  19. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183

    hummmm - it shows: 0.0.0.0:9999
    Not my IP - hummmm

    Still shows me ENABLED and 0
    and I got paid so..... Figure I'm okay

    Thoughts?
     
  20. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    Nice change to the scrip. My version was put together in 2min. Yours seems more informative. May just change mine to yours eventually :)

    There is also a script somewhere on the forum which checks if dashd is runnin every 5min or so. If not it starts it. Nice for if it has crashed. Didn't try yet though
     
  21. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    I tried to add eveything I can think of
    After I looked at what you did and seen how it worked - changing it was easy - lol
    Feel free to copy away - of course :-D

    If you find that script that for restart would be great - please post here :-D
    I'll be adding to the above as I come across more useful scripts
    Life is a lot more simple with a couple [arrow ups] [enter]

    Did you see my cron script above?
    does look right to me - hummm

    OH - DUH - lol
    I don't need the cron
    I'll just change the ./check - lol

    add ./dashd -shrinkdebugfile to the very top

    is there a way to add some kind of a time delay?
    like 30 sec's
    before it runs the rest of the ./check script?
    hummm - maybe that won't work -

    Thought's??
     
  22. fuzzyduck

    fuzzyduck Active Member

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

    After you start ./dashd you should wait some minutes so let is settle down. The startup takes some time on the Pi2. You can check with the command TOP. You see dashd in the list at CPU 100%. When its about 10% it should be running and you can run your ./check script. If you do it earlier it just spits out errors.

    PS i found the script:

    https://dashtalk.org/threads/auto-restart-the-masternode.3103/#post-31633

    I didn't try it yet.

    Ofcourse, rename darkcoind stuff to dashd etc.
     
    • Like Like x 1
  23. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    • Like Like x 1
  24. buster

    buster Guest

    3 days and counting and I join the club.

    What club?

    The club.
     
  25. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    Let me know if you need help - lol
    It's pretty easy but time consuming - lol

    The compile really does take 2 hours - lol
     
  26. bluebit

    bluebit Active Member

    Joined:
    Jun 4, 2015
    Messages:
    191
    Likes Received:
    194
    Trophy Points:
    103
    Finally made myself an account here on dashtalk, going to try setting up my first Masternode this and next week as soon as my Raspberry Pi 2 arrives. I could use all the help I can get.

    My Computer Experience: Mac user. Sometimes I use a Parallels to run Windows on the mac laptop to play games. I have no experience in linux, no raspberry pi experience. I started watching raspberry pi tutorials on youtube to get more comfortable.

    I noticed that this Raspberry Masternode guide is written for Windows users. My question: Should I try this tutorial in Windows or should I find a way to do it on my Mac. Or is that a bad idea, I don't want to lose 1,000 DASH for a stupid mistake.



    What I bought so far:

    - Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
    - Raspberry Pi 2 Case
    - Micro USB Power Supply Wall Charger AC Adapter 5V 2A 6.5Ft
    - Ethernet Cable
    - SanDisk Ultra 32GB UHS-I/Class 10 Micro SDHC Memory Card Up to 48MB/s With Adapter
    - GeauxRobot 3PCS Raspberry Pi Copper Cooling Heat Sinks


    Do I need anything else?
     
    • Like Like x 2
  27. fuzzyduck

    fuzzyduck Active Member

    Joined:
    Feb 19, 2015
    Messages:
    134
    Likes Received:
    113
    Trophy Points:
    93
    The 1000 dash never leave your wallet so not to worry about that. You do need to have the 1000 on 1 wallet address.
    The windows part of this tutorial is just the putty download and the location of you wallet datadir. The rest is all OS independent.

    I'll check better when I'm home
     
  28. bluebit

    bluebit Active Member

    Joined:
    Jun 4, 2015
    Messages:
    191
    Likes Received:
    194
    Trophy Points:
    103
    Quick question: Say an accident were to happen to my masternode, like a fire/water spill, meaning it's totally destroyed. Would I be able to restore the masternode and the DASH from a backup?
     
  29. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183
    I'd say - if we can find the time - that we do a google hangout when it comes time for him to setup the Pi
    1 - could be fun
    2 - everybody might learn something new
     
  30. MangledBlue

    MangledBlue Well-known Member

    Joined:
    Jun 28, 2014
    Messages:
    1,249
    Likes Received:
    678
    Trophy Points:
    183

    You could just have 2 mini-SD cards

    One for use and then clone it to the spare and store it

    If you have a fire or flood - you'll most likely be buying a new Pi - lol
     

Share This Page