Earn $PRE With Raspberry

This great How To Earn $PRE With Raspberry helps you to install a Preserve Node on your Raspberry Pi. A $PRE node helps you to earn $PRE, but also the community!

Earn $PRE with Raspberry

Earn $PRE with Raspberry

WARNING: 

  • Before starting, you must consult your local authorities to find out if earning $PRE and installing a Preserve Node is in your country or state allowed. In case this is illegal or not allowed, then you must close this page without executing anything in the below blog
  • This how to earn $PRE and providing the community with a Presearch note is neither a financial advise nor It is recommended in any way to invest any money into this experiment. Executing the below is fully on your own risk! In case you invest any money into this, than please be aware of the high risk of you losing all your money. 
  • You risk is to lose all your investments made into this, to be non-compliant to local regulations and you risk to destroy or harm your Raspberry Pi Computer (or any other computer you use for this).
  • If you earn with this $PRE, then you must – if you have not already – immediately consult your local tax advisors and authorities to ensure you are fully compliant to local regulations and tax laws. 
  • If you continue with this how to, you accept that whatever you do based on the information shared in this blog is on your own responsibility and you accept that you are responsible and accountable to ensure compliance with local laws and regulations. If you disagree, you must close this page now.

 

Index Of How To Earn $PRE With Raspberry

Background

According to the community, Presearch is a decentralized search engine powered by the community. Search privately, receive better results and get rewarded with the Presearch decentralized search engine, powered by blockchain technology.

The Presearch community says that a node is a computer contributing computing power to the presearch network. In exchange, you earn pre tokens.

The general assumption by the Presearch community is:

  • Running a node is recommended on computers powered on 24/7 due to uptime score statistics.
  • Installation or management of a node can be done over any operating system (Windows, Mac, Linux, other of your choice) as long as you can access the underlying docker application
  • There is no limit for number of nodes one account could operate
  • There is no preferred setup as the main goal of the project is to support decentralization

How To Earn $PRE With Raspberry

We run in three steps thru this.

  1. First, basic installation,
  2. secondly download and activation of the Presearch Node,
  3. and finally Autostart check

Basic Installation

First of all, ensure your system is up to date:

sudo apt-get update && sudo apt-get upgrade

Execute the below command:

curl -sSL https://get.docker.com | sh

This should output something that looks like this:

pi@raspberrypi3b:~ $ curl -sSL https://get.docker.com | sh
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sudo -E sh -c install -m 0755 -d /etc/apt/keyrings
+ sudo -E sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sudo -E sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sudo -E sh -c echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bullseye stable" > /etc/apt/sources.list.d/docker.list
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
+ sudo -E sh -c docker version
Client: Docker Engine - Community
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:31:36 2023
 OS/Arch:           linux/arm64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:31:36 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.24
  GitCommit:        61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
 runc:
  Version:          1.1.9
  GitCommit:        v1.1.9-0-gccaecfc
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.

To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
         to root access on the host. Refer to the 'Docker daemon attack surface'
         documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================

Now, we our user called “docker” to the permissions group

sudo usermod -aG docker $USER && newgrp docker

Activation of the Presearch Node

First of all, we register to get a registration code. This is required, otherwise no way to get this work. For this, you need to have a Presearch account. If you do not have one, you will be requested to register. Otherwise, you leverage on existing your account and login with it. 

Get the code by surfing to: https://nodes.presearch.com/dashboard

On this website, you can copy your registration code:

Presearch node registration code

Presearch node registration code

Now, with this code, you can start docker and run your Presearch node by entering the below (replace $YOUR_REGISTRATION_CODE_HERE by your registration code that you copied in the above) :

docker stop presearch-node ; docker rm presearch-node ; docker stop presearch-auto-updater ; docker rm presearch-auto-updater ; docker run -d --name presearch-auto-updater --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock presearch/auto-updater --cleanup --interval 900 presearch-auto-updater presearch-node ; docker pull presearch/node ; docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE presearch/node ; docker logs -f presearch-node

NOTE: As written in the above, “REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE” in should become “REGISTRATION_CODE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”. The “XXXXXXXXXXXXXXX” are the code that you copied from https://nodes.presearch.com/dashboard.

The above command installs two services on your computer, the presearch-node and the presearch-auto-updater, and configure both of them to be always running in the background.

Once you executed the above successfully, then you will see something like the below on your screen:

info: 
  .((((((((((((((((((((((((((((((. 
  (((((((((((((((((((((((((((((((( 
  ((((                        (((( 
  ((((   (((((((((((*         (((( 
  ((((   (((((((((((((        (((( 
  ((((   ((((     (((((       (((( 
  ((((   ((((     (((((       (((( 
  ((((   (((((((((((((        (((( 
  ((((   (((((((((((          (((( 
  ((((   ((((                 (((( 
  ((((   ((((   (((((((((((   (((( 
  ((((   ((((   (((((((((((   (((( 
  ((((                        (((( 
  (((((((((((((((((((((((((((((((( 
  '(((((((((((((((((((((((((((((('

2023-10-23T20:24:39.343Z info: presearch-node - v1.2.29
2023-10-23T20:24:39.346Z info: Generating a new private key
2023-10-23T20:24:39.769Z info: Saved (private and public) key pair
2023-10-23T20:24:39.795Z info: [gateway.presearch.com] Connecting...
2023-10-23T20:24:55.606Z info: [eu-de-1.gateway.presearch.com] Connecting...
2023-10-23T20:24:57.243Z info: Node is listening for searches...

If you have this, than you can celebrate you made it run! The above command will run your Node in the background, even if you close your terminal window. It however will not run anymore, if you restart your system. To get this addressed, check the “Autostart” chapter.

In your Dashboard on https://nodes.presearch.com/dashboard you should now see your docker instance as running. Of course, depending on your setup, the internet situation, etc. it can take a while until you receive requests and can earn $PRE. 

If you like to monitor what’s going on, you can check the logfile:

docker logs -f presearch-node

Autostart

In case you like to run your note automatically after restart, then you need to configure this. This chapter shows you how. 

Additional Information

You can find plenty of material on the official project website. A couple of links that you maybe like to check out:

Follow me

It would be amazing if you follow my myhowto.blog. To my blog is actually easy! You can leverage on

  • Click to follow me on Twitter
  • Bookmark this page and comeback from time to time

Help and Comments

I am really looking forward for you to contact me if for example you found a better option or other idea then in this how to. Also, please touch base if you found an error or anything not working or if you have something that you would love to be added to the myhowto.blog. Simply click this link to touch base with me.

Linking Or Recommending The How To Or The myhowto.blog

I would love to see you are recommending this how to or link it to your website. Also, I would love if you link or recommend the whole myhowto.blog. Please feel free to do so! In case you like to touch base regarding this topic with me, then simply click this link. I look forward!