elective-stereophonic
elective-stereophonic
Raspberry Pi for Nxt  
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]  All

Author Topic: Raspberry Pi for Nxt  (Read 23754 times)

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #40 on: June 04, 2015, 09:47:11 pm »

Hi there NXTers!

I made an image of my Raspberry Pi NXT node build. You can download it from the following link:
https://mega.co.nz/#!LZ8mTKAD!s1lNHzOKjqgnv-Fyr9TFb-ML56mEWRssTLqgz-rJg6w

Loing Info:
Login: pi
Password: raspinxt


What hardware you need:
1. Raspberry Pi 2 Model
2. 8GB microSD Card
3. [OPTIONAL] - WiFi stick (eg. Edimax EW-7811Un)

What it has:
1. Latest NXT Client installed - version 1.5.10
2. System will update and upgrade every week (Sunday) to latest build of Raspbian. (Cronjob set for root)
3. System automatically checkes for latest build of NXT, downloads it, installs it. (Cronjob set for user 'pi')

How to setup:
1 You can follow the Linux, Mac OS or Windows image installation guide from RaspberryPi's official guide links:
https://www.raspberrypi.org/documentation/installation/installing-images/README.md
1.a Once you have your 8GB microSD Card ready, insert it to your Raspberry Pi 2 and you are set to boot.

2. You can hook your Raspberry Pi to LAN cable and access NXT Client via network.
2.a To check what's the IP assigned to your Raspberry Pi login to Raspberry Pi with user 'pi' and password 'raspinxt'.
2.b Write command: ifconfig
2.c Press enter, and you'll see some output where you can find your network info.
2.d Here 'lo' means localhost IP, 'eth0' means your Ethernet/LAN IP, and if you have your WiFi stick attached to Raspberry Pi, it will show 'wlan0'
2.e At this point where you are connect to your Raspberry Pi using LAN, you'll only need to look at 'eth0' IP info and connect your NXT Node from your network device on that IP. Example: if the IP is 192.168.0.5, you'll connect to as 'http://192.168.0.5:7876'

3. If you have WiFi stick attached to your Raspberry Pi, you'll need to change some WiFi settings in system to connect to it automatically. You can follow this guide to do it:
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
3.a You'll only need to change the values of 'ssid' and 'psk' in '/etc/wpa_supplicant/wpa_supplicant.conf' file. I don't think there's anything else specificlly you'll need to change.
3.b Once configured wpa_supplicant.conf give it command 'sudo ifup wlan0' and check your 'wlan0' IP with 'ifconfig' command.
3.c To make sure your Raspberry Pi connects to WiFi automatically, just reboot it once with command 'sudo init 6' or 'sudo shutdown -r now'
3.d Once rebooted, login to system, and check with 'ifconfig' command if your wlan0 is assigned with any IP. If not, try restarting it with commands:
sudo ifdown wlan0
sudo ifup wlan0

I'm sure these will be helpful.

Let me know how your setup go. Was it successful/unsuccessful?
What features you'd like to have in it in future?
Any suggestions?

If you like my build, please donate some NXT here: NXT-QK5L-7YM9-YPVF-55GL5

EDIT: I gave file wrong extension name. It's not GZip file, it's BZ2. So, if you are on Linux or Mac, and are extracting the image through command line, you'll need to use 'tar -jxvf 2015-02-05-raspbian-wheezy-nxt-1.5.10.img.tar.gz'
Cheers,
Satinder
« Last Edit: June 04, 2015, 09:58:02 pm by grewalsatinder »
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #41 on: June 05, 2015, 04:14:06 am »

Some improvement ideas for next build:

Allow NXT Raspberry Pi to use IPv6 peers
nxt.properties update:
Quote
nxt.peerServerHost=::

NXT run script update:
Quote
#!/bin/sh
exec java -Djava.net.preferIPv6Addresses=true -cp classes:lib/*:conf nxt.Nxt

Enable SSL certificates for NXT

Update some security settings according to this guide:
https://nxtforum.org/nrs-client-how-to-help/(raspberry-pi)-latest-nxt-client-and-english-tutorial/


Include SuperNet Lite client on Raspberry Pi:
Also set it to update automatically when new updates comes out for SuperNet Lite
OR
Instead of using NXT, just move to SuperNet full client

RasPi NXT as open WiFi Hot Spot:
1. Make it able to connect openly as WiFi Hot Spot, so anyone could access NXT Client via web.
1.a It would be also useful, if the connecting users are only using this hot spot as NRS server only, and using NXTLite client as their local interface.

Explore the idea of NXTHyperBoria with Raspberry Pi??
« Last Edit: June 05, 2015, 04:23:32 am by grewalsatinder »
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #42 on: June 07, 2015, 08:54:22 pm »

Nice one Satinder.

Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #43 on: June 07, 2015, 09:03:17 pm »

Nice one Satinder.



I am exploring CJDNS and NXT working on Raspberry Pi.
So far I got CJDNS working on Raspberry Pi besides NXT. So, in next build we can expect CJDNS pre-compiled and ready to setup along with NXT on Raspberry Pi.

I'm still having trouble compiling @slothbag's NXTHypeDNS solution to resolve .hype domains from NXT Blockchain. But, I can understand his code's and method's working. I just want to make it work once for me. Once I have good working idea, I'll try to make a PHP or Python version of it if possible, because I find it more hard and inconvenient use 'Mono' on Linux or Mac for NXT domains working.

The ultimate goal of my builds is to get to the point where users just need to flash the raspberry pi build and access it over LAN or remotely via browser to manage it. Just like we manage our servers via cPanel etc.

But, just starting it all with little peaces. :)
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
Re: Raspberry Pi for Nxt
« Reply #44 on: June 07, 2015, 09:58:46 pm »

en,really useful info,thanks grewalsatinder. :)
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #45 on: June 08, 2015, 01:27:49 pm »

The ultimate goal of my builds is to get to the point where users just need to flash the raspberry pi build and access it over LAN or remotely via browser to manage it. Just like we manage our servers via cPanel etc.

I like the sound of this, I think  ;D

Are you thinking of security/dev approval too? Meaning, could a dev check the build and post a hash to show you don't go 'EvilSatider'?  :D There is no reason to suspect you would, but if you could produce something with Jones or JL approval then more people will trust it and it could be rolled out far are wide (even to intermediate noobs) and increase the number of peers in the network. A lot of people are waiting for something like this I think  ;D
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #46 on: June 08, 2015, 02:23:35 pm »

The ultimate goal of my builds is to get to the point where users just need to flash the raspberry pi build and access it over LAN or remotely via browser to manage it. Just like we manage our servers via cPanel etc.

I like the sound of this, I think  ;D

Are you thinking of security/dev approval too? Meaning, could a dev check the build and post a hash to show you don't go 'EvilSatider'?  :D There is no reason to suspect you would, but if you could produce something with Jones or JL approval then more people will trust it and it could be rolled out far are wide (even to intermediate noobs) and increase the number of peers in the network. A lot of people are waiting for something like this I think  ;D

The build contains plain text shell scripts, and all settings would be there. Anyone can take a look at the build and assess the security of it. The current one which I share was just a plain Raspbian, with Java and NXT installed on it.

Next ones, I'll make secure as per guide. At this point these builds are not ready to make public node, but good enough to put it in your local LAN network and access it remotely, so nobody has to leave their PCs online.

I also want to test the setup with Odroid XU3, as it's more powerful than latest Raspberry Pi. It'll be definitely a good choice as final product. But, first I'd like to make the software part ready, which will be tested and worked on Rasperry Pi builds.

Not really sure how the builds needs to security approved by dev. Anybody can ask any dev or security expert to test build. The source is open; no scripts in there are encrypted; they can even improve the security on it, and post their own builds.

Little update on NXT and CJDNS:
I got NXT NRS, CJDNS and slothbag's NXT Bridge working on my Raspberry Pi 2 build. Raspberry Pi 2 resolves the .hype DNS from NXT blockchain and it's working fine. I'll include these all in next build.

Will also look into setting up NAT on it, so this little RasPi NXT build can work as router. Means pluggin in this Raspberry Pi NXT build on LAN, and setting it as DNS on your local systems, and accessing MeshNet websites on any PC. That's what I've in my task next.

Cheers,
Satinder
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

MrV777

  • Hero Member
  • *****
  • Karma: +115/-4
  • Offline Offline
  • Posts: 990
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #47 on: June 10, 2015, 12:36:42 pm »

Looks like you beat their claim:
Quote
The First OS image release that merges the power of Raspbian and Cryptocurrencies
https://bitcointalk.org/index.php?topic=1084908.0
Logged
NXT: NXT-BK2J-ZMY4-93UY-8EM9V
NXT nodes: 209.222.98.250, 216.155.128.10

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #48 on: June 10, 2015, 01:04:01 pm »

Looks like you beat their claim:
Quote
The First OS image release that merges the power of Raspbian and Cryptocurrencies
https://bitcointalk.org/index.php?topic=1084908.0

Seems we at NXT community don't post small steps as big announcements. :)

I still feel just having a stacking wallet on Raspbian isn't a big stuff. It has to have something even bigger in it, and more streamlined.

Will make announcement when feel like it is good enough to boast we at NXT community got something much better than other crypto currencies.

Cheers,
Satinder
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #49 on: June 11, 2015, 01:26:47 pm »

Next build is almost ready. New features include:

  • Enabled IPv6 support in NXT
  • Security: Disabled SSH by default (To enable execute 'sudo raspi-config' command and go to 'Advanced' -> 'SSH' to enable it back.)
  • SuperNet Lite 2.0.5 client included in build. (Accessible on network via http://RaspberryPiIPAddress:7876/supernet.html)
  • System schedule added to look for new version of SuperNet Lite client, download and install if new one is released. (Cronjob for user pi execute every hour)
  • CJDNS is installed as system service. (This still need either automatic script to generate config file for new user. Thinking how to do it for now. Make a script to automating generating config file and updating it with a pre-set pubic peer, or leave it for user providing set of commands to set it up.)
  • NXT DNS solution included. Slothbag's NxtHypeDNS bridge included in build. Starts the service on system boot. Means users can access .hype websites on Raspberry Pi without any setup.
  • NXT-Artwork added to build. On Desktop NXT Logo shows in Menu, and Wallpaper is set to NXT Logo as well.

Desktop View:


.hype domain accessible in browser


The image file size will be bigger than before. Needs 8GB SDCard for installation.

Will release build image this weekend.

Cheers,
Satinder
« Last Edit: June 11, 2015, 09:54:22 pm by grewalsatinder »
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Raspberry Pi for Nxt
« Reply #50 on: June 11, 2015, 06:12:34 pm »

About the OS have you considered Ubuntu Snappy Core? It would be Epic!!

https://www.raspberrypi.org/downloads/snappy/

Ubuntu convergence: https://www.youtube.com/watch?v=gs-x9JUc0Cg

yassin54

  • Hero Member
  • *****
  • Karma: +240/-14
  • Offline Offline
  • Posts: 2503
  • I am Homer, Sorry my english is Bad!!
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #51 on: June 11, 2015, 06:17:31 pm »

Very Nice
Great Work!
 ;)

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #52 on: June 11, 2015, 09:49:48 pm »

Very Nice
Great Work!
 ;)

Thanks :)

About the OS have you considered Ubuntu Snappy Core? It would be Epic!!

https://www.raspberrypi.org/downloads/snappy/

Ubuntu convergence: https://www.youtube.com/watch?v=gs-x9JUc0Cg

I haven't tried Ubuntu Snappy Core yet. Will give it a try may be this weekend or next. But for now I'll make a build image so far done on Raspbian.

I might just release it with the command line instructions to configure CJDNS. That's the only thing so far which is not automated as of yet. In later versions I can come up with a shell script to just get a value from user and create a CJDNS config file.

So, there are two main tasks for next release after this one:
1. Create a shell script to automate the configuration of CJDNS for new user.
2. Create a Shell script to generate SSL Certificate for NXT and update the NXT Properties file, enabling SSL access of NXT.

More tasks to do:
3. Setup system to ready to work as router. Enabling it to connect Raspberry Pi as router and browse MeshNet websites on networked computers linked to it.

Or I can go with different approach to 2nd option. Please suggest what sounds best?
2.a Disable Web access of NXT Client, SuperNet Lite Client, disable Desktop. This will help with little more RAM available for Java processes.
2.b Set Raspbeian to only work as MeshNet router & NRS Server.

2.c Or just create two different builds, to let users choose which ones they prefer to use.

Cheers,
Satinder
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #53 on: June 12, 2015, 03:28:08 pm »

Hi NXTers!

Here's the new Raspberry Pi NXT Build -
2015-13-06-raspbian-jessie-cjdns-nxthypedns-nxt-1.5.11:
https://mega.nz/#!iIFgQKCQ!ulc5dntkSNesAW4tcLS5O54z3uhVu2sVkNCkZwZ2bxI

Build Feature:
  • Enabled IPv6 support in NXT
  • Security: Disabled SSH by default (To enable execute 'sudo raspi-config' command and go to 'Advanced' -> 'SSH' to enable it back.)
  • SuperNet Lite 2.0.5 client included in build. (Accessible on network via http://RaspberryPiIPAddress:7876/supernet.html)
  • System schedule added to look for new version of SuperNet Lite client, download and install if new one is released. (Cronjob for user pi execute every hour)
  • CJDNS is installed as system service. (Script included in build to auto generate config file and add a public peer to it.)
  • NXT DNS solution included. Slothbag's NxtHypeDNS bridge included in build. Starts the service on system boot. Means users can access .hype websites on Raspberry Pi without any setup on Raspbian Desktop.
  • NXT-Artwork added to build. On Desktop NXT Logo shows in Menu, and Wallpaper is set to NXT Logo as well.

User Login:
User: pi
Password: raspinxt

Same Hardware required as per previous:
  • Raspberry Pi 2
  • microSD 8GB Card
  • Edimax EW-7811Un Wifi stick
  • LAN connection
  • Monitor
  • Keyboard
  • Mouse

Quick Setup instructions:
Follow same How to setup instructions from here:
https://nxtforum.org/general/can-raspberry-pi-run-as-a-node/msg182014/#msg182014

Extra setup instructions:
1. You'll need to execute a command to generate config file for CJDNS.
Just login to Raspberry Pi with user 'pi' and password 'raspinxt' and execute the following command:
Quote
cjdns-config

That's it.

This will auto generate 'cjdroute.conf' file under '/etc' directory and update it with a public peer (peer info from here: jointhe.hyperboria.network).
After generating config file it will restart cjdns service and you'll be ready to access MeshNet websites.

As of now, there are only two ways to access MeshNet websites with .hype DNS powered by NXT:
a. Setup CJDNS on your Linux or Mac machine, and point that machine's DNS to your Raspberry Pi's DNS. All .hype DNS will resolve fine.
b. Or you have to start Raspbian Desktop and with 'startx' command and browse .hype websites there in 'Iceweasel' browser.

I know it would still be pain to access .hype websites easily on your devices as it still needs CJDNS installed there. I'm looking into a solution to it. Will try Proxy if it works well. At least it will be much less of pain than compiling CJDNS. ;)
 
------
2. By default SSH and Desktop is disabled to start on boot.
a. To access Desktop give command 'startx' after loggin in as user 'pi'.
b. If you want to enable Desktop or SSH by default on system boot use 'raspi-config' command, and navigate through Advance and usual options to enable/disable system settings.
c. You might also like to 'Overclock' your Raspbian from 'raspi-config'. It will help a bit to in processing power.

------
3. SuperNet Lite client 2.0.5 Access:
a. Get the IP info of your machine from 'ifconfig' as mentioned in this post:
https://nxtforum.org/general/can-raspberry-pi-run-as-a-node/msg182014/#msg182014
b. If for example you got your 'eth0' or 'wlan0' IP is 192.168.0.5, from your network computer open link: http://192.168.0.5:7876/supernet.html

The image file size is bigger than before. It includes Mono-complete framework, all build essential required packages.

Any questions regarding build are welcome. Hope you'll like this build.

Cheers,
Satinder
[/quote]
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #54 on: June 19, 2015, 01:45:34 pm »

So, I got NXT FreeMarket loaded on Raspberry Pi build. Here's what works and what doesn't:
Works:
- AutoUpdate FreeMarket: The script is included, which look for latest release of FreeMarket, downloads it, and install it.
- NXT FreeMarket is only accessible from Raspberry Pi Desktop.

Glitches and doesn't work:
- NXT FreeMarket is not accessible over network. That's due to restrictive coding of NXT which only allows it to run on local system.
- As NXT FreeMarket also uses Java, it put little more load on System RAM. Means, if left NXT FreeMarket running on system it will make system heavy.

Solutions for now:
- Either just turn it off, or look for a FreeMarket code update/fix to make it accessible over network as well.
- Remove it from NXT Raspberry Pi build, and provide settings for it, so users can use FreeMarket on their local system, but using NXT server from Raspberry Pi.
- Only implement NXT FreeMarket when the time comes to switch to Odroid XU3.

Let me know how would you like to have it done?

Cheers,
Satinder
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #55 on: June 19, 2015, 03:48:57 pm »

Also Enabled TOR on test build. NXT client runs smooth as with TOR Socks Proxy enabled for it.

Will also include Jay NRS Wallet, to build.
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

TheCoinWizard

  • Hero Member
  • *****
  • Karma: +97/-55
  • Offline Offline
  • Posts: 614
  • Learn by questioning everything!
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #56 on: July 23, 2015, 09:24:13 pm »

Also Enabled TOR on test build. NXT client runs smooth as with TOR Socks Proxy enabled for it.

Will also include Jay NRS Wallet, to build.
Just in case it isn't on it yet...
Why not also add the greatest offline nxt client so far created... Vapor wallet...
http://jnxt.org/vapor/
Logged
Welcome to the After Nxt Calendar era...
Which started in the year 222 of the French Republic, Frost month, on the fifth day of the first week, better known as the 2456621th Julian day,
even better known as 24 November 2013 at 12:00:00 UTC.

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: Raspberry Pi for Nxt
« Reply #57 on: July 23, 2015, 09:26:39 pm »

Also Enabled TOR on test build. NXT client runs smooth as with TOR Socks Proxy enabled for it.

Will also include Jay NRS Wallet, to build.
Just in case it isn't on it yet...
Why not also add the greatest offline nxt client so far created... Vapor wallet...
http://jnxt.org/vapor/

Sure, I'll put it in my list to add in project. :)

The project is now called SuperMesh.
Official forum thread is: https://nxtforum.org/nxtservices-releases/spacemesh-org-and-supermesh-io-asset/
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal
Pages: 1 2 [3]  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly