- Download Spark 1.4 to your local machine (laptop, or PC)
- Go to 192.168.1.1 to get local IPs for newly connected RPis
ssh pi@192.168.1.XXX(default password forpiuser israspberry)
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>AWS IoT Pub/Sub Demo</title> | |
| </head> | |
| <body> | |
| <h1>AWS IoT Pub/Sub Demo</h1> | |
| <form> | |
| <button type="button" id="connect">connect!</button> |
| #include <iostream> | |
| #include <string> | |
| #include <curl/curl.h> | |
| static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) | |
| { | |
| ((std::string*)userp)->append((char*)contents, size * nmemb); | |
| return size * nmemb; | |
| } |
| import pyqtgraph as pg | |
| import time | |
| plt = pg.plot() | |
| def update(data): | |
| plt.plot(data, clear=True) | |
| class Thread(pg.QtCore.QThread): |
ssh pi@192.168.1.XXX (default password for pi user is raspberry)| echo "Compile git without sudo" | |
| wget https://www.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz | |
| ./configure --prefix=/home/user/myroot && make && make install |
| if [ -d "$p2p_fs" ]; then | |
| cd p2p_fs | |
| git pull | |
| else | |
| git clone https://github.com/dinukasal/p2p_fs | |
| cd p2p_fs | |
| fi | |
| cd ~/ |
| git clone http://github.com/dinukasal/install | |
| cd install | |
| ./install.sh | |
| java -version | |
| cd ~/ | |
| git clone http://github.com/dinukasal/p2p_fs/ | |
| cd p2p_fs |
| scp ./DistributedSE.jar ubuntu@54.191.26.128:/ -i n1.pem |
| dig +short myip.opendns.com @resolver1.opendns.com |
| sudo tcpdump -i eth0 udp -vv -X |