(Unofficial) Presearch Node Install Script using docker-compose (currently only supports Ubuntu)
curl -sSL https://github.com/id10terror/presearch-install-script/raw/main/presearch-node-install-ubuntu.sh | sudo bash
If you receive a curl command not found
error, you can install curl first by running this command:
sudo apt install curl -y
When prompted for Presearch Node Registration code, browse to https://nodes.presearch.org/dashboard, copy "Your node registration code", and paste code in terminal.
If you originally used the one-liner from the official Presearch team docs, you can back up using these steps:
- On the original node's server, ensure your node is CURENTLY RUNNING and run this command:
docker cp presearch-node:/app/node/.keys presearch-node-keys
If you originally used this script to install and configure your nodes:
- Simply browse to the
/opt/docker/presearch/app/node/.keys
directory on your host filesystem and copy the files to a second location.
- After backing up your keys from your old node, run the script on the new node you wish to restore the keys on.
- When prompted, leave the Registration key blank, and press Enter.
- Press CTRL+C to exit the streaming log.
- Run this command to stop the containers temporarily:
$(cd /opt/docker/presearch && docker-compose stop)
- Browse to the
/opt/docker/presearch/app/node/.keys
directory on your host filesystem, and replace the keys with the ones backed up earlier. - Set permissions on keys
chmod 644 /opt/docker/presearch/app/node/.keys/*
- Run this command to recreate and start the containers:
$(cd /opt/docker/presearch && docker-compose up -d --force-recreate) && docker logs -f presearch-node
- If you did this correctly, you should see a line like this in the log
info: Node is listening for searches...
If you see a Duplicate Node error in the log, make sure you have stopped the container in the old node, then wait 30 seconds or so for the error to clear on the new node.
This script is provided as-is with no support or guarantee. Feel free to review the code, modify, and use as needed.