create account

Setup a presearch node to stake and collect PRE on a raspberry pi! by evileddy

View this thread on: hive.blogpeakd.comecency.com
· @evileddy · (edited)
$0.30
Setup a presearch node to stake and collect PRE on a raspberry pi!
![PRE 01.JPG](https://images.hive.blog/DQmXjJkfYuW97XpJTFEctvas27noYREFhvS9hAaR1LPeRc5/PRE%2001.JPG)


What is presearch?  

https://www.presearch.io/

"Presearch is building a complete ecosystem to support the PRE token and provide the world with a decentralized search engine that is powered by the community, for the community."

You gain PRE tokens when you make searches through your account.  ( 0.10 per search and up to 30 searches a day )   These add up QUICK if you switch your searching habits to using presearch.org on your desktop and other devices!  

Sign up for presearch:
	>https://presearch.org/login

Flash 2021-05-07-raspios-buster-arm64-lite.img to SD card (this will only work on a 64 bit linux distro ):
>2021-05-07-raspios-buster-arm64-lite.img: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-05-28/

>Official Raspberry Pi Imager:  https://www.raspberrypi.com/software/

Press "CTRL+SHIFT+X" in Raspberry Pi Imager v1.6.2 for Advanced options:  

Turn on SSH and change pi user password:
![PRE 02.JPG](https://images.hive.blog/DQmY2SC4Caqz4uSSNXfcKCU89zQ7Q8zgW3LFhzosBFnxABB/PRE%2002.JPG)

Once the SD card is flashed, insert it into your Pi and connect to your network via cable and turn on the Pi and after a few seconds ( 20 - 30 ) find
it's IP from your router DHCP table or an IP scanner and use PUTTY to SSH to your Pi.

Update the pi:
>sudo apt update

>sudo apt upgrade

Download and install Docker:
>sudo curl -sSl https://get.docker.com/ | sh

Verify Docker installed properly:
>docker

Add the docker permission to the user, default user is pi:
>sudo usermod -aG docker pi

Relog/Reboot to update perms:
>sudo reboot

Install Portainer, a web container that allows you to control your docker implementations from a browser on the network:
>sudo docker pull portainer/portainer-ce

Link Portainer to the Docker environment and set it up to run automatically:
>sudo docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

Access Portainer in browser and set up password:
>http://raspberrypi.local:9000

-or depending on your local ip range, where the x's reflect your raspberry pi's IP address: 

>http://192.168.x.xxx:9000

Go back to SSH, pull PreSearch node with docker:
>sudo docker pull presearch/node

Grab your registration code from the PreSearch page:
>https://nodes.presearch.org/dashboard  

Install and configure node:   ( copy this to notepad and change "YOUR_REGISTRATION_CODE_HERE" to the code you obtained in previous step so you can easily copy paste to SSH:
>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 containrrr/watchtower --cleanup --interval 300 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)

Go back to PreSearch page and make sure your node is showing up:
>https://nodes.presearch.org/dashboard

You can now stake the minimum amount on that node (2000 PRE as of 14-OCT-2021) and begin doing work for the network and gain rewards!


Congrats!  You did the thing!  HUZZAH!

![dancing-kids.gif](https://images.hive.blog/DQmacRvEaJmPxTrNDL1gfDsJQfEtFqQ2zVBAr5PzRGPQf3X/dancing-kids.gif)
👍  , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorevileddy
permlinksetup-a-presearch-node-to-stake-and-collect-pre-on-a-raspberry-pi
categoryraspberrypi
json_metadata"{"tags":["technology","crypto","presearch"],"image":["https://images.hive.blog/DQmXjJkfYuW97XpJTFEctvas27noYREFhvS9hAaR1LPeRc5/PRE%2001.JPG","https://images.hive.blog/DQmY2SC4Caqz4uSSNXfcKCU89zQ7Q8zgW3LFhzosBFnxABB/PRE%2002.JPG","https://images.hive.blog/DQmacRvEaJmPxTrNDL1gfDsJQfEtFqQ2zVBAr5PzRGPQf3X/dancing-kids.gif"],"links":["https://www.presearch.io/"],"app":"hiveblog/0.1","format":"markdown","description":"Use a pi to create a PRESEARCH node"}"
created2021-10-14 16:19:48
last_update2021-10-22 20:00:51
depth0
children0
last_payout2021-10-21 16:19:48
cashout_time1969-12-31 23:59:59
total_payout_value0.155 HBD
curator_payout_value0.147 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,557
author_reputation2,276,766,496,691
root_title"Setup a presearch node to stake and collect PRE on a raspberry pi!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,031,447
net_rshares298,361,856,234
author_curate_reward""
vote details (25)