^[GS]^



Offline



Activity: 112

Merit: 10







MemberActivity: 112Merit: 10 Re: NXT :: descendant of Bitcoin - Updated Information February 23, 2014, 12:59:19 AM

Last edit: February 23, 2014, 01:15:15 AM by ^[GS]^ #36409 1) as I can run the 0.8.0 to enable SSL? to work in the same way that came running in previous versions.

What use in nxt.keyStorePath=keystore and nxt.keyStorePassword=password ??



2) as I can start and stop the server 0.8.0?

I can use the STOP.PORT = x and STOP.KEY = x?



3) how to access the API in the server 0.8.0?

ebereon



Offline



Activity: 403

Merit: 500







Sr. MemberActivity: 403Merit: 500 Re: NXT :: descendant of Bitcoin - Updated Information February 23, 2014, 01:42:21 AM #36411



Save the following script to run_nxt.sh:

Code: #!/bin/bash

### BEGIN INIT INFO

# Provides: NXTserver

# Required-Start: $local_fs $remote_fs $network $syslog $named $sshd

# Required-Stop:

# Default-Start: 2 3 4 5

# Default-Stop: 0 1 6

# Short-Description: Start/stop NXT server

### END INIT INFO



if [ `id -u` != "0" ] && [ "$1" = "start" -o "$1" = "stop" ] ; then

echo "You must be root to start/stop nxt."

exit 1

fi



# Settings

nxtdir=/home/pi/nxt

nxt=nxt.jar

java=/usr/bin/java

nxtpid=/var/run/nxt.pid

nxtlog=/home/pi/nxt/nxt.log

nxtuser=pi

nxtgroup=pi

nxtnice=20

timeout=700

maxmem=150

# end Settings



# check for exist files and dirs

test -d $nxtdir || exit 0

test -f $nxtdir/$nxt || exit 0

test -f $java || exit 0



# make sure $nxtdir is ours!

chown -R $nxtuser:$nxtgroup $nxtdir



. /lib/lsb/init-functions



function status {



start-stop-daemon -T --pidfile "$nxtpid" && echo "NXT server is started." \

|| { echo "NXT server is stopped." ; return 1; }



return 0;

}



case "$1" in

start)

log_daemon_msg "Starting NXT server..." "" || true



# check if server is running

if [ -e $nxtpid ]; then

pid=`cat $nxtpid`

var=`ps -p$pid | wc -l`



if [ $var -lt "2" ]; then

# clear logfile

echo -n > $nxtlog

else

echo -n " NXT server is already running!"

log_end_msg 0 || true

exit 0

fi

fi



# Enable Debug for more info when starting NXT

if cat $nxtdir/conf/nxt.properties | grep -q "nxt.debug="; then

if cat $nxtdir/conf/nxt.properties | grep -q "nxt.debug=true"; then

# Debug is enabled, nothing todo...

echo -n ""

elif cat $nxtdir/conf/nxt.properties | grep -q "nxt.debug=false"; then

echo nxt.debug=true >> $nxtdir/conf/nxt.properties

fi

else

echo nxt.debug=true >> $nxtdir/conf/nxt.properties

fi



# n minute timeout.

sleep $timeout &

timerPid=$!



# check log file and generate status-msg; will be killed when server is started or timeout hit

tail -q -n0 -F --pid=$timerPid $nxtlog 2> /dev/null | while read line; do



if echo $line | grep -q "Scanning blockchain"; then

echo -n " Scanning blockchain"

elif echo $line | grep -q "processed block"; then

echo -n "."

fi



if echo $line | grep -q "started successfully."; then

echo -n "NXT server started successfully."

log_end_msg 0 || true

# stop the timer..

kill $timerPid > /dev/null 2>&1

fi

done &



# start server

if start-stop-daemon --start --name nxt --nicelevel $nxtnice --chuid $nxtuser:$nxtgroup --pidfile $nxtpid -m --chdir $nxtdir --exec $java > /dev/null 2>&1 -- -Xmx"$maxmem"m -cp $nxt:lib/*:conf nxt.Nxt > /dev/null 2>&1 & then

# wait for the timer to expire (or be killed)

wait %sleep > /dev/null 2>&1

else

log_end_msg 1 || true

fi

;;

stop)

log_daemon_msg "Stopping NXT server..." || true



# check if server is running

if start-stop-daemon --stop --pidfile $nxtpid > /dev/null 2>&1; then



while status > /dev/null; do

sleep 1;

done



echo -n " NXT server stopped."

log_end_msg 0 || true

rm $nxtpid > /dev/null 2>&1

else

echo -n " NXT server is not running!"

log_end_msg 0 || true

exit 0

fi

;;

restart)

$0 stop

sleep 1

$0 start

;;

status)

status

;;

*)

echo "usage:`basename $0` start | stop | restart | status"

exit 1

;;

esac

Make it executable with "chmod +x run_nxt.sh"



If you want to autostart and stop at boot/shutdown copy or link this script to "/etc/init.d/nxt". To install the service run "sudo update-rc.d nxt defaults", to remove the service run "sudo update-rc.d nxt remove". Then for manual start run "sudo service nxt start"



Enjoy!



Greets,

eb



I have updated my raspi start script for version 0.8.0e, please update wiki also! It's not working with 0.7.x!Save the following script to run_nxt.sh:Make it executable with "chmod +x run_nxt.sh"If you want to autostart and stop at boot/shutdown copy or link this script to "/etc/init.d/nxt". To install the service run "sudo update-rc.d nxt defaults", to remove the service run "sudo update-rc.d nxt remove". Then for manual start run "sudo service nxt start"Enjoy!Greets,eb

Fern



Offline



Activity: 247

Merit: 250









Sr. MemberActivity: 247Merit: 250 Re: NXT :: descendant of Bitcoin - Updated Information February 23, 2014, 02:23:11 AM #36413 Quote from: ebereon on February 23, 2014, 02:00:55 AM I run now a raspberry PI model A (256mb) @100% solar ( very GREEN! ) No grid needed for more then 100 hours without sunshine!



It's running @900Mhz with EDIMAX EW-7811Un 150Mbps nano USB Adapter.



Power consumption:

- while starting/blockchain scan @ ~265mA (1.325 Watt)

- nxt started @ ~195mA (0.975 Watt)



It's driven by:

- 5 Volt, 1.5 Ampere (7.5 Watt) Solar panel

- 8 x 3400mAh 18650 Li-Ion battery (Panasonic NCR 18650B) (=27200mAh!)



Greets,

eb



So if the grid does go down, where is your wi-fi coming from? Assuming the ISP stays running, you could run your wi-fi router off solar as well. There is probably more chance of the cellphone network not going down, lets hope data rates come down.

The solar idea is a great way to showcase NXT green credentials but I'm just being realistic. Thanks for Pi info. So if the grid does go down, where is your wi-fi coming from? Assuming the ISP stays running, you could run your wi-fi router off solar as well. There is probably more chance of the cellphone network not going down, lets hope data rates come down.The solar idea is a great way to showcase NXT green credentials but I'm just being realistic. Thanks for Pi info.

okaynow



Offline



Activity: 546

Merit: 500





PGP 9CB0902E







Hero MemberActivity: 546Merit: 500PGP 9CB0902E Re: NXT :: descendant of Bitcoin - Updated Information February 23, 2014, 02:30:38 AM #36414 Quote from: Fern on February 23, 2014, 02:23:11 AM Quote from: ebereon on February 23, 2014, 02:00:55 AM I run now a raspberry PI model A (256mb) @100% solar ( very GREEN! ) No grid needed for more then 100 hours without sunshine!



It's running @900Mhz with EDIMAX EW-7811Un 150Mbps nano USB Adapter.



Power consumption:

- while starting/blockchain scan @ ~265mA (1.325 Watt)

- nxt started @ ~195mA (0.975 Watt)



It's driven by:

- 5 Volt, 1.5 Ampere (7.5 Watt) Solar panel

- 8 x 3400mAh 18650 Li-Ion battery (Panasonic NCR 18650B) (=27200mAh!)



Greets,

eb



So if the grid does go down, where is your wi-fi coming from? Assuming the ISP stays running, you could run your wi-fi router off solar as well. There is probably more chance of the cellphone network not going down, lets hope data rates come down.

The solar idea is a great way to showcase NXT green credentials but I'm just being realistic. Thanks for Pi info.

So if the grid does go down, where is your wi-fi coming from? Assuming the ISP stays running, you could run your wi-fi router off solar as well. There is probably more chance of the cellphone network not going down, lets hope data rates come down.The solar idea is a great way to showcase NXT green credentials but I'm just being realistic. Thanks for Pi info.

i don think it is about going offgrid, i believe its more like unplugged forging... i don think it is about going offgrid, i believe its more like unplugged forging... 1PeecNu1J8VNKpgR13nasMZWLcMZrwNJfc

ebereon



Offline



Activity: 403

Merit: 500







Sr. MemberActivity: 403Merit: 500 Re: NXT :: descendant of Bitcoin - Updated Information February 23, 2014, 02:32:04 AM #36415 Quote from: Fern on February 23, 2014, 02:23:11 AM Quote from: ebereon on February 23, 2014, 02:00:55 AM ...



So if the grid does go down, where is your wi-fi coming from? Assuming the ISP stays running, you could run your wi-fi router off solar as well. There is probably more chance of the cellphone network not going down, lets hope data rates come down.

The solar idea is a great way to showcase NXT green credentials but I'm just being realistic. Thanks for Pi info.

So if the grid does go down, where is your wi-fi coming from? Assuming the ISP stays running, you could run your wi-fi router off solar as well. There is probably more chance of the cellphone network not going down, lets hope data rates come down.The solar idea is a great way to showcase NXT green credentials but I'm just being realistic. Thanks for Pi info.

Well I have 2 avalons (1500 Watt) and befor that it was 50 fpga boards (2200 Watt) which was backed up via USV's and g3/4 mobil network. And in germany, we have near zero grid downs. But this is not relevant here.



Wow effect is, it's a hallmarked NXT node powered from our sun only. There is no other coin outside this world, that is able to run like that! Well I have 2 avalons (1500 Watt) and befor that it was 50 fpga boards (2200 Watt) which was backed up via USV's and g3/4 mobil network. And in germany, we have near zero grid downs. But this is not relevant here.Wow effect is, it's a hallmarked NXT node powered from our sun only. There is no other coin outside this world, that is able to run like that!

TM



Offline



Activity: 4

Merit: 0







NewbieActivity: 4Merit: 0 Re: NXT :: descendant of Bitcoin - Updated Information February 23, 2014, 03:22:05 AM #36417



I waited 14 hours and still havn't recieve one coin let alone 1-4 as promised on the above site.



I try again to put in my accnt and email at nxtra.org/faucet/ and I get an invalid request error...



Anyone know whats up with this as it takes at least one coin to begin the foraging process if i understand this correctly... OK so i goto this site to start "foraging" ntx ---> http://nxtra.org/faucet/ It asks for an email and my account number that was created by downloading NRS 0.7.5.I waited 14 hours and still havn't recieve one coin let alone 1-4 as promised on the above site.I try again to put in my accnt and email at nxtra.org/faucet/ and I get an invalid request error...Anyone know whats up with this as it takes at least one coin to begin the foraging process if i understand this correctly...