elective-stereophonic
elective-stereophonic
[blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2 singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 [2] 3 4  All

Author Topic: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2  (Read 27866 times)

coretechs

  • Board Moderator
  • Sr. Member
  • ****
  • Karma: +161/-1
  • Offline Offline
  • Posts: 436
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #20 on: January 31, 2016, 03:22:30 pm »

okay if i fill in:

nxt.myAddress=(my ipadress)
nxt.apiServerHost=0.0.0.0
nxt.allowedBotHosts=*

It should be good?

Yes.  I've updated the post to clarify that step.  I see now that the 12.34.56.78 was somewhat confusing.
Logged
https://ardorportal.org - Ardor blockchain explorer | https://nxtportal.org - Nxt blockchain explorer | http://bitcoindoc.com - The Rise and Rise of Bitcoin
ARDOR-T43P-R2K9-8W79-9W2AL | NXT-WY9K-ZMTT-QQTT-3NBL7

penoze

  • Jr. Member
  • **
  • Karma: +4/-1
  • Offline Offline
  • Posts: 69
  • Banned!
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #21 on: January 31, 2016, 03:30:03 pm »

okay if i fill in:

nxt.myAddress=(my ipadress)
nxt.apiServerHost=0.0.0.0
nxt.allowedBotHosts=*

It should be good?

Yes.  I've updated the post to clarify that step.  I see now that the 12.34.56.78 was somewhat confusing.

Thanks,

I start over from the beginning of the tutorial.
I think i make some more faults  :)
When i say exit i can't save this  :(.

kind regards,
Logged
Altinvest
Asset ID: 9923803162541911347

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #22 on: February 03, 2016, 12:23:47 pm »

Hi,coretechs
If start run.sh without using nohup command ,and when i close putty,seems the NRS/Forger will be closed too,right?

The problem is I can not start run.sh with
Code: [Select]
nohup ./run.sh &
Any suggestion?
Thanks.
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

websioux

  • Sr. Member
  • ****
  • Karma: +69/-1
  • Offline Offline
  • Posts: 343
  • Great changes grow bottom up
    • View Profile
    • Scriba.io the Blockchain Scribe
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #23 on: February 03, 2016, 01:13:53 pm »

Why can't you use nohup ?
Otherwise, you could try screen.
Some explainations here : http://superuser.com/questions/871869/running-scripts-independently-on-raspberry-pi
Logged
Secret Miner <= communicate with style | NotBot <= timestamp digital docs

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #24 on: February 03, 2016, 01:31:54 pm »

@CoreTechs

Have you tried upstart to run NXT?
We used to use god in the past to both auto start NXT at server start and to keep it up once it dies for whatever reason.

But recently we've switched to upstart and i'd recommend it to anyone.
The idea is you create an `upstart` script for NXT (see example below) the script should be put here /etc/init/nxt.conf then you can simply `start nxt` or `stop nxt` and when it dies it's restarted.

The link points to a part of our chef setup that we use to manage all our servers from but if you remove the parts between `<% if node[:ssmtp] then %>` and `<% else %> ` you'll end up with a simple upstart for NXT. The parts you'll remove are the bits we use to get notified through email whenever one of our nodes goes down.

https://github.com/fimkrypto/fimk_chef_repo/blob/master/cookbooks/nxt/templates/default/nxt.conf.erb
[the erb extension is a ruby thing used in chef, the file should be named nxt.conf]
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #25 on: February 03, 2016, 01:36:29 pm »

Just realized we compile our NXT ourselves (since we use NXT+) so this part..

Code: [Select]
exec java -cp nxt.jar:lib/*:conf nxt.Nxt
is incorrect, it will not work for standard NXT distributions.

use this way to start standard NXT instead

https://bitbucket.org/JeanLucPicard/nxt/raw/df31dfb622d51b0e6074d85c6a57528eb6895bc9/run.sh
Logged
HEAT: DEX | SDK | HOME

coretechs

  • Board Moderator
  • Sr. Member
  • ****
  • Karma: +161/-1
  • Offline Offline
  • Posts: 436
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #26 on: February 03, 2016, 02:10:20 pm »

Hi,coretechs
If start run.sh without using nohup command ,and when i close putty,seems the NRS/Forger will be closed too,right?

The problem is I can not start run.sh with
Code: [Select]
nohup ./run.sh &
Any suggestion?
Thanks.

That should work and run in the background.  You can confirm by watching the nxt log file:

Code: [Select]
tail -f ~/nxt/logs/nxt.log
Personally I recommend using screen instead of running it as a background job w/nohup.  I included instructions in the blog article near the bottom.  With screen, you would instead run:

Code: [Select]
screen -mS nxt ./run.sh
This would start the Nxt server in a screen session named "nxt".  You can then detach from the screen if you press CTRL-A, D and safely exit putty.  The screen will run in the background, so you can reconnect later and re-attach to the screen by typing:

Code: [Select]
screen -r nxt
« Last Edit: February 03, 2016, 08:45:57 pm by coretechs, Reason: detach screen command »
Logged
https://ardorportal.org - Ardor blockchain explorer | https://nxtportal.org - Nxt blockchain explorer | http://bitcoindoc.com - The Rise and Rise of Bitcoin
ARDOR-T43P-R2K9-8W79-9W2AL | NXT-WY9K-ZMTT-QQTT-3NBL7

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #27 on: February 03, 2016, 08:26:16 pm »

... You can then detach from the screen if you press CTRL-A, CTRL-D and safely exit putty.
- I believe " CTRL-A then 'd' " (detach screen from terminal).
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

coretechs

  • Board Moderator
  • Sr. Member
  • ****
  • Karma: +161/-1
  • Offline Offline
  • Posts: 436
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #28 on: February 03, 2016, 08:46:18 pm »

... You can then detach from the screen if you press CTRL-A, CTRL-D and safely exit putty.
- I believe " CTRL-A then 'd' " (detach screen from terminal).

Fixed, thanks.
Logged
https://ardorportal.org - Ardor blockchain explorer | https://nxtportal.org - Nxt blockchain explorer | http://bitcoindoc.com - The Rise and Rise of Bitcoin
ARDOR-T43P-R2K9-8W79-9W2AL | NXT-WY9K-ZMTT-QQTT-3NBL7

beikeni

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #29 on: February 25, 2016, 11:09:04 am »

Forgive my ignorance. I'm new in the world of cryptocurrencies and my knowledge and understanding are still pretty incomplete.
My question is: NXT being pre-mined and NXT holders getting rewarded on a POS system, running a dedicated node as explained in this tutorial would benefit the host in some way or it would be exclusively to the purpose of helping and offering support to the NXT community?

Thanks

Beikeni
Logged

MrV777

  • Hero Member
  • *****
  • Karma: +115/-4
  • Offline Offline
  • Posts: 990
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #30 on: February 25, 2016, 02:56:05 pm »

Forgive my ignorance. I'm new in the world of cryptocurrencies and my knowledge and understanding are still pretty incomplete.
My question is: NXT being pre-mined and NXT holders getting rewarded on a POS system, running a dedicated node as explained in this tutorial would benefit the host in some way or it would be exclusively to the purpose of helping and offering support to the NXT community?

Thanks

Beikeni

If you run a Hallmarked node you can earn NSC, which you can then sell for NXT if you wanted to
Logged
NXT: NXT-BK2J-ZMY4-93UY-8EM9V
NXT nodes: 209.222.98.250, 216.155.128.10

beikeni

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #31 on: February 26, 2016, 02:13:59 am »

Forgive my ignorance. I'm new in the world of cryptocurrencies and my knowledge and understanding are still pretty incomplete.
My question is: NXT being pre-mined and NXT holders getting rewarded on a POS system, running a dedicated node as explained in this tutorial would benefit the host in some way or it would be exclusively to the purpose of helping and offering support to the NXT community?

Thanks

Beikeni

If you run a Hallmarked node you can earn NSC, which you can then sell for NXT if you wanted to

Is there a way to calculate profitability?
Logged

8

  • Full Member
  • ***
  • Karma: +6/-6
  • Offline Offline
  • Posts: 122
  • English-Chinese translation Service
    • View Profile

I have some problem to run the node. this is the info:

2016-06-09 22:19:11 INFO: nxt.cjdnsOnly = "false"
2016-06-09 22:19:11 INFO: nxt.ignorePeerAnnouncedAddress = "false"
2016-06-09 22:19:11 INFO: nxt.trimDerivedTables = "true"
2016-06-09 22:19:11 INFO: nxt.numberOfForkConfirmations = "2"
2016-06-09 22:19:11 INFO: nxt.trimFrequency = "1000"
2016-06-09 22:19:11 INFO: nxt.disableGetMoreBlocksThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.enablePublicKeyCache = "true"
2016-06-09 22:19:11 INFO: nxt.disablePeerConnectingThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.disablePeerUnBlacklistingThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.disableGetMorePeersThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.peerServerHost = "0.0.0.0"
2016-06-09 22:19:11 INFO: nxt.peerServerIdleTimeout = "30000"
2016-06-09 22:19:11 INFO: nxt.enablePeerServerDoSFilter = "true"
2016-06-09 22:19:11 INFO: nxt.peerServerDoSFilter.maxRequestsPerSec = "30"
2016-06-09 22:19:11 INFO: nxt.peerServerDoSFilter.delayMs = "1000"
2016-06-09 22:19:11 INFO: nxt.peerServerDoSFilter.maxRequestMs = "300000"
2016-06-09 22:19:11 INFO: shutting down sendingService
2016-06-09 22:19:11 INFO: shutting down peersService
2016-06-09 22:19:11 INFO: Nxt server 1.8.3 stopped.
Logged
My crypto blog: http://coinour.com

kakachi

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 5
    • View Profile

more of a windows guy so is there a guide for setting up a raspberry pi windows type forger?
Logged

coretechs

  • Board Moderator
  • Sr. Member
  • ****
  • Karma: +161/-1
  • Offline Offline
  • Posts: 436
    • View Profile

I have some problem to run the node. this is the info:

2016-06-09 22:19:11 INFO: nxt.cjdnsOnly = "false"
2016-06-09 22:19:11 INFO: nxt.ignorePeerAnnouncedAddress = "false"
2016-06-09 22:19:11 INFO: nxt.trimDerivedTables = "true"
2016-06-09 22:19:11 INFO: nxt.numberOfForkConfirmations = "2"
2016-06-09 22:19:11 INFO: nxt.trimFrequency = "1000"
2016-06-09 22:19:11 INFO: nxt.disableGetMoreBlocksThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.enablePublicKeyCache = "true"
2016-06-09 22:19:11 INFO: nxt.disablePeerConnectingThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.disablePeerUnBlacklistingThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.disableGetMorePeersThread not defined, assuming false
2016-06-09 22:19:11 INFO: nxt.peerServerHost = "0.0.0.0"
2016-06-09 22:19:11 INFO: nxt.peerServerIdleTimeout = "30000"
2016-06-09 22:19:11 INFO: nxt.enablePeerServerDoSFilter = "true"
2016-06-09 22:19:11 INFO: nxt.peerServerDoSFilter.maxRequestsPerSec = "30"
2016-06-09 22:19:11 INFO: nxt.peerServerDoSFilter.delayMs = "1000"
2016-06-09 22:19:11 INFO: nxt.peerServerDoSFilter.maxRequestMs = "300000"
2016-06-09 22:19:11 INFO: shutting down sendingService
2016-06-09 22:19:11 INFO: shutting down peersService
2016-06-09 22:19:11 INFO: Nxt server 1.8.3 stopped.

Hmm, this doesn't really tell much other than that it stopped.  Didn't see this post until today, were you able to resolve?

more of a windows guy so is there a guide for setting up a raspberry pi windows type forger?

Sorry I don't have a Windows guide.  This guide is for building a dedicated Raspberry Pi Nxt server that you can access from any computer on your network.  Once it's set up, you can use your Windows computer to access it from your web browser.
Logged
https://ardorportal.org - Ardor blockchain explorer | https://nxtportal.org - Nxt blockchain explorer | http://bitcoindoc.com - The Rise and Rise of Bitcoin
ARDOR-T43P-R2K9-8W79-9W2AL | NXT-WY9K-ZMTT-QQTT-3NBL7

smabuki

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 3
    • View Profile

Hi,

First of all, thanks a ton for the tutorial. I am a total N00b and I think I got the server running (it's doing something :))

But, when I go to http://[IP]:7876 and try to register it gives me "Server Connection Error Not allowed." prompt. What am I doing wrong?

Thanks,
Alex
Logged

Nextshares

  • Full Member
  • ***
  • Karma: +6/-1
  • Offline Offline
  • Posts: 152
    • View Profile

Hi,

First of all, thanks a ton for the tutorial. I am a total N00b and I think I got the server running (it's doing something :))

But, when I go to http://[IP]:7876 and try to register it gives me "Server Connection Error Not allowed." prompt. What am I doing wrong?

Thanks,
Alex

Have a try on this and see

https://nxtforum.org/general-discussion/localhost-and-pc-ip/
Logged

NxtSwe

  • Hero Member
  • *****
  • Karma: +124/-9
  • Offline Offline
  • Posts: 657
    • View Profile

Hi,

First of all, thanks a ton for the tutorial. I am a total N00b and I think I got the server running (it's doing something :))

But, when I go to http://[IP]:7876 and try to register it gives me "Server Connection Error Not allowed." prompt. What am I doing wrong?

Thanks,
Alex
Are you try to access this from another computer than your rasperry?
If so I think you need to set the nxt.allowedUserHosts property in your config file.

The default is:
Code: [Select]
nxt.allowedUserHosts=127.0.0.1; localhost; [0:0:0:0:0:0:0:1]; so it can only be access from the same local machine.
Logged
Check out the NxtLib, the .NET Framework API for the Nxt platform.

smabuki

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 3
    • View Profile

Yes. I try to access it via my Mac.

I changed it to that, is that correct?

nxt.myAddress=192.##.###.###
nxt.apiServerHost=0.0.0.0
nxt.allowedBotHosts=*≈
nxt.allowedUserHosts=12#.#.#.#; localhost; 192.###.#.###; [0:0:0:0:0:0:0:1];

Doesn't work still.

When I go to [IP]:7876/test, I get HTTP error 403 / Forbidden

Thanks and sorry in advance
Logged

NxtSwe

  • Hero Member
  • *****
  • Karma: +124/-9
  • Offline Offline
  • Posts: 657
    • View Profile

Yes. I try to access it via my Mac.

I changed it to that, is that correct?

nxt.myAddress=192.##.###.###
nxt.apiServerHost=0.0.0.0
nxt.allowedBotHosts=*≈
nxt.allowedUserHosts=12#.#.#.#; localhost; 192.###.#.###; [0:0:0:0:0:0:0:1];

Doesn't work still.

When I go to [IP]:7876/test, I get HTTP error 403 / Forbidden

Thanks and sorry in advance
Hi,

I'm not sure what could be the problem.
Have you restarted the node after updating the config?
What does it work if you put an asterisk ( * ) after allowedUserHosts ?
Also, what is that ≈ character after allowedBotHosts?

On a side note, nxt.myAddress should be your public address as seen on the internet, 192.xxxxxxxx is your internal (local network) address, but I don't think that is the problem here.
Logged
Check out the NxtLib, the .NET Framework API for the Nxt platform.
Pages: 1 [2] 3 4  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly