I made a script to automate the installation of a full node


Author
Message
dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
Link to the script: https://github.com/nazarimilad/iota-node

I think I will just copy and paste the description in the README to explain what this script does exactly:

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 compiles the IRI, it generates an ini configuration file, it sets up a daemon, it can be used to add new neighbor nodes, etc.

I hope it will be helpful to people trying to set up a full node.
johnprime
j
Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)Attached to Tangle (311 reputation)
Group: Forum Members
Posts: 32, Visits: 11
Looks clean. Nice work. 
dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
johnprime - 10 Dec 2017
Looks clean. Nice work. 

Thanks!

kakata
k
Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)Attaching to Tangle (60 reputation)
Group: Forum Members
Posts: 9, Visits: 0
Excellent!! Great job!
dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
kakata - 10 Dec 2017
Excellent!! Great job!

Thank you :
Winston
Winston
Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)Forum Admin (29,0K reputation)
Group: Administrators
Posts: 2,4K, Visits: 4,1K
@dodolord Great work, and thanks for posting this here. Your thread has been pinned to the top of this forum.
therium
t
Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)Attaching to Tangle (88 reputation)
Group: Forum Members
Posts: 7, Visits: 23
Why does the IRI jar file have to be compiled? Shouldn't it just run? I'm having problems getting my full node to run on my Win 8 machine.

dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
therium - 10 Dec 2017
Why does the IRI jar file have to be compiled? Shouldn't it just run? I'm having problems getting my full node to run on my Win 8 machine.

It has two advantages in my opinion.

First of all, you can see in the script from where the source code for the IRI is downloaded and compiled, which is the official repository of the IRI default implementation.
This way you can always easily check if you can trust the generated IRI jar file. If I included a jar file myself or let the script download it from somewhere, you won't be 100 %  sure if you can trust it.

And secondly because compiling it from the source repository always means that you have the latest version of the IRI jar.

dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
Winston - 10 Dec 2017
@dodolord Great work, and thanks for posting this here. Your thread has been pinned to the top of this forum.

It's an honour!
dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
UPDATE: now my IOTA installation script integrates IOTA-PM! So now, when your run the script to install a node, you will also have an option to include IOTA-PM within the installation (see screenshot in the README). You won't have to install and configure IOTA-PM yourself.

dezoid
d
Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)Attaching to Tangle (83 reputation)
Group: Forum Members
Posts: 5, Visits: 33
Hi,

i get an Error by installing IOTA-P:

Would you like to install IOTA-PM? This is a program for monitoring and managing IOTA peers connected with your node.
[y/n]: y

./iota-node.sh: line 75: npm: command not found

dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
dezoid - 15 Dec 2017
Hi,

i get an Error by installing IOTA-P:

Would you like to install IOTA-PM? This is a program for monitoring and managing IOTA peers connected with your node.
[y/n]: y

./iota-node.sh: line 75: npm: command not found

It means it doesn't recognize npm. You have to install it first with the command
sudo apt install npm

Mango
M
Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)
Group: Forum Members
Posts: 10, Visits: 18
HI first off great script dodolord,
Made life very easy.

Can I suggest the following
1. Add to your pre-reqs the following items: curl, npm, dig,

2. can you detail BY EXAMPLE how to add a neighbour. Lets say, i have a neighbour with the following details:

tcp://a.b.c.d:12345
udp://6.7.8.9:09876

you mention that to add a neighbor use the following command: sudo iota-node --add-neighbor addressofYourNeighbour

Can you advise the command we need to issue at the terminal of VPS please ?
Sorry, we are brand new to Linux, and doing our best to learn this.
Regards,
Mango Guy
dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
Mango - 29 Dec 2017
HI first off great script dodolord,
Made life very easy.

Can I suggest the following
1. Add to your pre-reqs the following items: curl, npm, dig,

2. can you detail BY EXAMPLE how to add a neighbour. Lets say, i have a neighbour with the following details:

tcp://a.b.c.d:12345
udp://6.7.8.9:09876

you mention that to add a neighbor use the following command: sudo iota-node --add-neighbor addressofYourNeighbour

Can you advise the command we need to issue at the terminal of VPS please ?
Sorry, we are brand new to Linux, and doing our best to learn this.
Regards,
Mango Guy

Hi Mango,

Thanks for the feedback. I will add dig, curl and npm in the README.

And for the example, you have type the following command:
sudo iota-node --add-neighbor tcp://a.b.c.d:12345

or if you want to add the other neighbor:
sudo iota-node --add-neighbor udp://6.7.8.9:9876


I hope I could help you! Smile

Mango
M
Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)
Group: Forum Members
Posts: 10, Visits: 18
dodolord - 29 Dec 2017
Mango - 29 Dec 2017
HI first off great script dodolord,
Made life very easy.

Can I suggest the following
1. Add to your pre-reqs the following items: curl, npm, dig,

2. can you detail BY EXAMPLE how to add a neighbour. Lets say, i have a neighbour with the following details:

tcp://a.b.c.d:12345
udp://6.7.8.9:09876

you mention that to add a neighbor use the following command: sudo iota-node --add-neighbor addressofYourNeighbour

Can you advise the command we need to issue at the terminal of VPS please ?
Sorry, we are brand new to Linux, and doing our best to learn this.
Regards,
Mango Guy

Hi Mango,

Thanks for the feedback. I will add dig, curl and npm in the README.

And for the example, you have type the following command:
sudo iota-node --add-neighbor tcp://a.b.c.d:12345

or if you want to add the other neighbor:
sudo iota-node --add-neighbor udp://6.7.8.9:9876


I hope I could help you! Smile

Perfect. Thanks.

Do you by any chance have available slot to add me as neighbor.
I installed everything as you mentioned, but i dont have active neighbors.
Plus
Mango
M
Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)Attaching to Tangle (121 reputation)
Group: Forum Members
Posts: 10, Visits: 18
Also, after installing.

>>After restarting your terminal, you can run iota-node from everywhere: sudo iota-node <option>
<<
I believe we need to start the software, by issuing sudo iota-node -x   [ is tis correct]

however, things are not great for me. i issued this command at terminal [ sudo iota-node -s]
the entire ting has exited. something like.

Loaded: loaded (/etc/systemd/system/iota-node.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Friday.....
Process: 3542 Execstart =usr/bin/java -jar /root/.iota-node/iri.jar -c /root/.iota-node/iri.ini (code=exited, status=255)
Main PID: 3542 (code=exited, status=255)

......
any idea what this means ???
Did i screw something up while following your instructions...or do you think i need to wipe everything [uninstall] and start from beginning....

Regards,

dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
Mango - 29 Dec 2017
dodolord - 29 Dec 2017
Mango - 29 Dec 2017
HI first off great script dodolord,
Made life very easy.

Can I suggest the following
1. Add to your pre-reqs the following items: curl, npm, dig,

2. can you detail BY EXAMPLE how to add a neighbour. Lets say, i have a neighbour with the following details:

tcp://a.b.c.d:12345
udp://6.7.8.9:09876

you mention that to add a neighbor use the following command: sudo iota-node --add-neighbor addressofYourNeighbour

Can you advise the command we need to issue at the terminal of VPS please ?
Sorry, we are brand new to Linux, and doing our best to learn this.
Regards,
Mango Guy

Hi Mango,

Thanks for the feedback. I will add dig, curl and npm in the README.

And for the example, you have type the following command:
sudo iota-node --add-neighbor tcp://a.b.c.d:12345

or if you want to add the other neighbor:
sudo iota-node --add-neighbor udp://6.7.8.9:9876


I hope I could help you! Smile

Perfect. Thanks.

Do you by any chance have available slot to add me as neighbor.
I installed everything as you mentioned, but i dont have active neighbors.
Plus

Unfortunately I can't add more neighbors since my server is at it's limits. But you can always find neighbors on this forum, on https://www.reddit.com/r/nodesharing/ and on slack (on the nodesharing channel).

dodolord
d
Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)Attached to Tangle (305 reputation)
Group: Forum Members
Posts: 19, Visits: 0
Mango - 29 Dec 2017
Also, after installing.

>>After restarting your terminal, you can run iota-node from everywhere: sudo iota-node <option>
<<
I believe we need to start the software, by issuing sudo iota-node -x   [ is tis correct]

however, things are not great for me. i issued this command at terminal [ sudo iota-node -s]
the entire ting has exited. something like.

Loaded: loaded (/etc/systemd/system/iota-node.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Friday.....
Process: 3542 Execstart =usr/bin/java -jar /root/.iota-node/iri.jar -c /root/.iota-node/iri.ini (code=exited, status=255)
Main PID: 3542 (code=exited, status=255)

......
any idea what this means ???
Did i screw something up while following your instructions...or do you think i need to wipe everything [uninstall] and start from beginning....

Regards,

This is because the iota-node service (daemon) will only start AFTER adding a neighbor. Since you didn't first add a neighbor, the service was not active and this caused this failure.
Check the power part of the screenshot in the README: "... Add a neighbor to start a node ..."

If the node is not started, you can't use it. I hope It was helpful Smile

EtUnity
E
Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)
Group: Forum Members
Posts: 8, Visits: 7
Great work! Any chance you can add Nelson to the Script?

EtUnity
E
Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)Attaching to Tangle (32 reputation)
Group: Forum Members
Posts: 8, Visits: 7
EtUnity - 31 Dec 2017
Great work! Any chance you can add Nelson to the Script?


I tried to run the command after runiing the scripts and got the below error. Did I do something wrong?  Thanks
~$ sudo iota-node -i
sudo: iota-node: command not found


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Login

Explore
Messages
Mentions
Search