The fastest path runs the installer. It downloads node.sh, verifies the published checksum, and on a host that already runs a node migrates it onto Elastos Node for Ubuntu (restarting nothing):
$ curl -fsSL https://raw.githubusercontent.com/elastos/Elastos.Node/master/build/skeleton/install.sh | bashOn a fresh host this installs node.sh and prints the next steps. Install the dependencies, then node.sh setup initializes the chains; open the peer/consensus ports separately with node.sh firewall, which detects your SSH port and asks before enabling:
$ sudo apt-get install -y jq lsof apache2-utils curl openssl
$ ~/node/node.sh setup
$ ~/node/node.sh firewallTo place the script by hand instead, download it and make it executable:
$ mkdir ~/node
$ cd ~/node
$ curl -O https://raw.githubusercontent.com/elastos/Elastos.Node/master/build/skeleton/node.sh
$ chmod a+x node.shIf you ran setup, the chains are already initialized and you can skip to step 3. To initialize on their own, the init command does the following automatically:
- Downloads and extracts the prebuilt package
- Prompts for the initial parameters (user name, crypto addresses, and wallet passwords)
- Writes the required config files
$ ~/node/node.sh initThe start command starts every chain in the active profile in the background.
$ ~/node/node.sh startThe status command shows the labeled status block for each program. Watch the Height to make sure the chains are synchronized.
$ ~/node/node.sh statusFor a one-row-per-chain glance at the whole fleet (state, height, peers, sync), use summary:
$ ~/node/node.sh summaryOnce the chains are synced, close public access to the RPC, oracle, and arbiter ports with harden. The RPC endpoints already bind to 127.0.0.1; this command closes the firewall ports and reports any chain that still needs a restart:
$ ~/node/node.sh hardenNow the initial setup is complete.
Please refer to the longer edition for a more detailed setup and usage. For the security defaults and the port table, see SECURITY.md.
What's next:
For any issues, please get in touch with the blockchain Dev team via Elastos Discord.