A comprehensive guide to run a Node
Yes, I know, there are a number of guides out there on how to run a Presearch Node, but trust me, I followed a good amount of guides, and yet I was able to have my node running, I had problems that kept me jumping from one guide to another looking for answers, for example: After running my Node, it kept stopping after one hour, or after closing my Putty console, which affects your Reliability Score (A node is supposed to to be running as reliably as possible).
For that reason, I decided to put all the info I gathered in one place and make this comprehensive guide to run a Presearch Node.
This guide will only cover one thing: Running a presearch Node in a Linux VPS, but I will do my best to make it easy to follow and include all the useful info i wished i could find in one place when i started this.
So, what is Presearch?
Keeping it simple: Presearch is a decentralized search engine that rewards users with with Presearch’s PRE crypto tokens which can be used to buy services, or traded for other cryptocurrencies
Some key benefits about Presearch are:
Decentralization: All the power of the internet is in a few hands, controlling which webs are going to show in the results and which ones will not.
Privacy: Presearch do not track or store any of your information or searches. Unlike some online giants
Earnings: By using Presearch you will be rewarded with Presearch’s PRE crypto tokens which as any other token, can be used to buy services, or traded for other cryptocurrencies.
In just a few words: If you are not yet using Presearch you should!
If you want to know more about Presearch, please take a look at their “Visionpaper” HERE
Disclaimer: Presearch will not make you rich, presearch will not earn you 100’s dollars per month, BUT we use search engines every day. Being paid for doing something that you were going to do anyways is where the true passive earning resides. It's like getting paid for eating!
At the time of writing this article you will be paid 0.12 PRE per each search, take a look at the market price and do your own calculations
Running a Presearch Node
To have our Presearch Node running and support this amazing project we will need to follow a set of simple steps. Don't worry, I will do my best to keep things simple and easy to follow so that even if you are not tech savvy can have your Node running without problems.
Step 1: Get a Presearch account
This is no surprise, to be able to run a Presearch Node you need a Preseach account. If you don't have one please you can get it by clicking HERE or on the banner below. You will get 25 PRE on register!
Step 2: Register your Node
Once you have your Presearch Account you need to get a registration code, this works as an unique ID that will serve to identify your Node from all the others out there.
To get your registration code you need to go to this url and fill the signup form: https://nodes.presearch.org/dashboard
It might take up to one day to get your code, but for me it it was only a couple hours, When you are approved you will get a "You're Approved! Start Your Node 🚀" mail telling you the good news.
Once approved, you will be able to go to your dashboard (https://nodes.presearch.org/dashboard) and get your Node registration code, it will look something like this:
Step 3: Choose a VPS provider
It is possible to run a node on your own PC, but I will not cover that on this guide, and should discourage you to do so for three reasons:
Latency: Your home internet speed and latency is most likely not fast / reliable enough to run a node. We don't want people using Presearch to have long wait times for their search results do we?
Reliability: A Node should be running 24/7 with no interruptions: Most likely you turn your PC off by nights, you can have a power shortage, modem issues etc.
Traffic: By running Presearch Node you will have a lot of traffic to your IP and it will also be visible, for security reasons it is better to not do that.
By far the best option to run a Node for any kind of project is using a VPS. Besides, they are quite cheap nowadays anyway.
For a VPS there are hundreds of options you can pick from actually, personally I use Vultr for this and other projects of mine, mainly for 4 reasons:
Ease of use: Simple, Vultr is very user friendly. Even if you are not tech savvy, you will have no problems getting your VPS running.
Low price: For as low as 5$ per month you can have a server that is totally overkill for what we need for our Presearch Node. It is not likely to get a good quality server for less than this.
Pay per use: Vultr runs on a prepaid format, you make a deposit and have your balance available. If you don't have any server running your balance will still be there when you need it.
100$ bonus: You get a 100$ bonus when you make your first deposit on Vultr. This will only be valid for 30 days, but when you are “thinkering” with your server to have your project going, this bonus will be really useful. For example, you can test with several instances without being concerned about running out of gas.
Optional: You can get 100$ bonus on Vultr by using my referral link: https://www.vultr.com/?ref=8829603-6G
Step 4: Running the VPS
We will now get the actual server running. To do so simply follow these steps:
4.1 Choose server: Select Cloud Compute here
4.2 Server Location: Select a region / location for your server. This one will depend on your personal preference, for example if you want to support Presearch in Australia you can select Sydney. The closer the Node is to the user the lower the latency, meaning shorter wait times. For this example I selected Dallas, Texas.
4.3 Server Type: For our Presearch Node we will be using Linux so select Ubuntu 18.04 X 64 from the list. This particular version is one of the most stable for the purpose of running a Node.
4.4 Server Size: For our Presearch Node we don't need a potent server, quoting from the Presearch info:
"Presearch nodes with fast internet and low latency connection to the Presearch Gateway are currently prioritized. You do not need much disk space, much memory, or much CPU current to run a node, and running a more powerful server does not currently increase node rewards."
So, the 5$ Server will be more than enough.
4.5 Additional Features: We don't need any of these, so leave them all blank.
4.6 Server Name: We need a name for this puppy. You can call it however you see best.
4.7 Deploy! Hit the Deploy button to have your server installed!
After that you will see your server being installed in your servers list.
After a couple minutes it will be ready and Running
4.8 Server details: Click on the three dots on the right side and Choose Server Details. You will see a screen like this. Keep this tab open since we will need the IP and Password shortly.
Step 5: Installing PuTTY
PuTTY is a free open source program that will allow our local Windows machine to communicate with the server. Linux and Mac users don't need this program because they can use the console directly.
PuTTY does not require to be installed, you only need to run the putty.exe file. Just download it to the folder of your choice and you are good to go.
Step 6: Login to the server
Now we will actually login to the newly created server following a few simple steps.
6.1 Open your PuTTY program: You will see a window like this. In the Host Name or IP address field put the IP for your server we got in step 4.8 and click Open
6.1 Cache in the Registry: Since this is the first time we connect to the server PuTTY does not have it in the registry. Click Yes to add it and open your Console.
6.2 Login! Finally it is time to actually login to the server.
login as: root
password: Type or copy your password from Vultr (step 4.8) and paste it here.
Hit enter and we are in!
Note: if you are new to PuTTY this might be helpful. To copy or paste a text into or from the PuTTY console you only need to hit your right mouse click. If you hit the Ctrl C or Ctrl V command you will see ^V or ^C.
Step 7: Installing Docker
Docker is an application that allows to deploy programs that are run as containers and we need it for our Presearch Node. To install it simple follow the steps below.
To execute you only need to Copy and paste each block of code in your putty console (using right click). Wait while the server executes the command before using the next one. You will know when its done because you will see something like "root@Research_Node:~#" in the last line.
7.2: Allow HTTPS
apt-get install apt-transport-https ca-certificates curl software-properties-common
This step will ask if you want to continue, type Y and then enter
7.3: Docker Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
7.5 A: Get Update
7.5 B: Install
apt-get install docker-ce
This step will ask if you want to continue, type Y and then enter.
7.6: Create user
adduser user usermod -aG docker user
In this step you will need to create a password, i suggest using the same from step 4.8 for simplicity. After that you will need to set a new username but you can just hit enter in all these to keep default values on all fields.
7.7: Restart Docker
systemctl restart docker
7.8 (Optional): Test Docker
docker run hello-world
When you run this command you will see the following output. If you do, this Means your docker was installed successfully.
Hello from Docker!
This message shows that your installation appears to be working correctly.
7.9: Start on boot
systemctl enable docker
Congratulations! Docker is installed succesfully. Now we can finally install our Presearch Node.
Step 8: Run the Presearch Node
We are finally one step away from having a Presearch Node running. The following steps will set up the Node to have automatic updates and restarts, so it will not stop running easily.
Like before, just copy the codes into your putty console and let it do its magic.
8.1: Install the Auto Updater Service
sudo 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
8.2: Pull from Docker
sudo docker pull presearch/node
8.3: Install the Presearch Node
sudo docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=XXXXXXXXXXXXXXXX presearch/node
Important: Copy this code in a text editor and replace XXXXXXXXXXXXXXXX with your actual Node Registration code From Step 2!
Congratulations, your Presearch Node is now live and running, lets check the console.
8.4: Presearch Node Console
docker logs -f presearch-node
If you see a "info: Node is listening for searches..." message it means your Presearch Node is running correctly!
8.5: Check your Nodes Dashboard
Go to https://nodes.presearch.org/dashboard and you should see your Presearch Node running!
That green socket icon under connected is all we want to see!
If you go into Stats you will see a bit more info about your Node. These numbers will get better as our node continues to operate without interruptions.
Note: If you need to restart your Node, you can use the code on step 8.3
You can have as many Nodes as you want to support decentralization. And you can also use the same Node Registration code (From step 2) for all of them.
Remember that in order to be eligible for rewards from your Node you need to have at least 1000 PRE staked. At the time of writing this article that is about 100 USD which is not that bad at all.
I hope that this comprehensive guide to run a Presearch Node was helpful for you!