Using A Script (Recommended)¶
The simplest way to get started with HOPR is to run our pre-prepared script to install hoprd. The script will install all the required dependencies, including
14. If you have
nvm installed, it will use it.
Please bear in mind that at the time of writing,
hoprd only has been tested in version
If you are a MacOS M1 user, please refer to the npm guide, this script will not work for you.
Setup and install HOPRd¶
You might need to restart your terminal for your computer to be able to find
hoprd after the script completes installation.
Ubuntu or Debian¶
Type following commands into your terminal, if you are using a VPS, log in into your VPS.
$ sudo apt install -y curl $ curl https://raw.githubusercontent.com/hoprnet/hopr-sh/master/setup-hoprd.sh --output setup-hoprd.sh $ chmod +x setup-hoprd.sh $ ./setup-hoprd.sh
Type following commands into your terminal. If you have not installed the XCode Command-line utils, please install them via:
$ xcode-select --install
Also check whether you have installed Homebrew - the OSX package manager - and install it if it is not installed yet.
$ brew install curl $ curl https://raw.githubusercontent.com/hoprnet/hopr-sh/master/setup-hoprd-macos.sh --output setup-hoprd.sh $ chmod +x setup-hoprd.sh $ ./setup-hoprd.sh
If you like to live dangerously and have no regards to safety and trust us (you shouldn’t) and want a one-liner script, here it is.
bash -c "$(curl -s https://raw.githubusercontent.com/hoprnet/hopr-sh/master/setup-hoprd.sh)"
(we even removed the
$ so you can copy and paste that on your terminal, you savage).
With this command, we will run hoprd and store logs,
when running this command the first time, it will create folder
db in the current
working directory where it will store the encrypted key to your node and your off-chain
DEBUG=hopr* hoprd --admin --init --announce --password='' 2>&1 | tee ~/hoprd-logs.txt
Accessing HOPRd on a VPS¶
$ ssh -L 3000:127.0.0.1:3000 root@`<VPS ip address>` # you'll then be prompted to enter your password
Then visit http://localhost:3000 on your browser.