A CLI and TUI to install and manage a full IOTA node
There are a lot of tutorials like this one or this one. The problem with this tutorials is that they take quite some time and they aren't easy to follow for people who are new to a Linux environement.
The purpose of this script is to automate the installation of an IOTA full node. It takes care of installing the IRI, chosing the parameters, installing extra packages such as Nelson and IOTA-PM, managing your neighbors, get information about your node and more.
More screenshots can be found in this album.
- Java 8 or higher (
sudo apt install default-jre
) - curl (
sudo apt install curl
) - dig (
sudo apt install dnsutils
) - NPM (if you want to install extra packages) (
sudo apt install nodejs && sudo apt install npm
)
Run the following command in your terminal:
curl -L -s $(curl -s https://api.github.com/repos/nazarimilad/iota-node/releases/latest | grep browser_download_url | cut -d '"' -f 4 ) --output iota-node.sh && sudo bash iota-node.sh
After restarting your terminal, you can run iota-node from everywhere: sudo iota-node <option>
The script currently supports the following options:
-a address
: add a neighbor specified by its address-I
: get your public IP address-n
: get information about your own node-N
: get information about your neighbors-r
: remove all of your neighbors-s
: get the status of the IRI daemon-t
: get the TCP address of your node-u
: restart IOTA-node-U
: get the UDP address of your node-x
: start iota-node-X
: stop iota-node
--add-neighbor=address
: add a neighbor specified by its address--get-neighbors
: get information about your neighbors--get-node-info
: get information about your own node--get-ip-address
: get your public IP address--get-status
: get the status of the IRI daemon--get-tcp-address
: get the TCP address of your node--get-udp-address
: get the UDP address of your node--remove-neighbors
: remove all of your neighbors--start
: start IOTA-node--stop
: stop IOTA-node--update
: restart IOTA-node--upgrade
: upgrade IOTA-node--uninstall
: uninstall IOTA-node
The first section contains the global variables and script settings.
The second sections consists of the procedures and methodes.
And finally the third block contains the "main method".
Add an option to install iota-pm during the installation of the node and integrate it in the iota-node daemonAdd port input safety checkAdd a TUIAdd Nelson integration and upgrade option- Add neighbor address input safety check
- Make it possible, With
upgrade
, to also upgrade the extra packages - Make an equivalent powershell script
Any issue or pull request is welcome.
Donations (IOTA-address):
MCVMFBGRJRHMOMFKMTJCIKWSLVQOUASOIHLVHXMVFDPTJYDPUTWITJASHWBDFNRQTYVZIEVYIRYMRSFM9CVDPLSYY9