WHAT'S NEW?
Loading...

[TUTORIAL] Install a Full Monero Node (Raspberry Pi2/3) to run 24/7 with CentOS-7

This guide is specific to computers with ARMv7 Processors ONLY, Eg Raspberry Pi 2/3

Current Monero Version: 0.12.0.0 Lithium Luna

  • Add an unprivileged monero user:
    $ sudo adduser monero

  • Change to this new user:
    $ sudo su monero
    $ cd


  • Extract monero.tar.gz:
    $ tar -xvf monero.tar.gz
    $ mv monero-v0.12.0.0 monero

  • Copy the blockchain over:
    $ rsync -axvP /where/ever/you/have/your/.bitmonero/ monero@raspberryPiIP:/home/monero/.bitmonero/
    or
    zip it and copy it over in some other way

  • Make sure permissions are correct:
    $ chown monero: -R /home/monero/.bitmonero

  • Create a service so monerod starts automatically on boot.
    $ exit
    $ sudo vim /lib/systemd/system/ and add this:
    [Unit]
    Description=Monero's distributed currency daemon
    After=network.target
    [Service]
    User=monero
    Group=monero
    Type=forking
    ExecStart=/home/monero/monero/monerod --confirm-external-bind --restricted-rpc --rpc-bind-ip 0.0.0.0 --fluffy-blocks --block-sync-size 1 --detach
    KillMode=process
    Restart=on-failure
    TimeoutSec=120
    [Install]
    WantedBy=multi-user.target

  • Enable the service you just created:
    $ sudo systemctl enable monerod
    $ sudo systemctl start monerod

  • Check the logs to see if the service is running properly:
    $ sudo tail -f /home/monero/.bitmonero/bitmonero.log

  • (Optional) You might want to add some credentials to your RPC server. Run /home/monero/monero/monerod --help for more information

Another complete and good tutorial here
https://github.com/peanutsformonkeys/raspberry-monerod

0 comments:

Post a Comment