One command installs the script. On a host that already runs a node, it also migrates that node onto Elastos Node for Ubuntu. It verifies the published SHA-256 checksum and never touches keystores or chain data:
$ curl -fsSL https://raw.githubusercontent.com/elastos/Elastos.Node/master/build/skeleton/install.sh | bash- On a fresh host it installs
node.shinto~/nodeand points you tonode.sh setup. - On an existing node (the original Elastos.Node runner or an earlier version) it backs up the old
node.sh, swaps in Elastos Node for Ubuntu, and runsmigrate, which restarts nothing.
To review the installer before running it, download it first:
$ curl -fsSL -o install.sh https://raw.githubusercontent.com/elastos/Elastos.Node/master/build/skeleton/install.sh
$ less install.sh && bash install.shAfter installing on a fresh host, run the turnkey setup, which installs dependencies, adds swap, configures the firewall, enables autostart, and initializes the node:
$ node.sh setupSee Running node.sh for what setup does and the manual alternative.
To place the script by hand, create a folder in your $HOME to hold the executable, config, and data files:
$ mkdir ~/node
$ cd ~/nodeDownload the current version of the script and make it executable:
$ curl -fsSLO https://raw.githubusercontent.com/elastos/Elastos.Node/master/build/skeleton/node.sh
$ chmod a+x node.shOnce installed, keep the script current with the checksum-verified self-update:
$ node.sh update_script