- 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 [email protected]
(default password forpi
user israspberry
)
sudo tcpdump -i eth0 udp -vv -X |
dig +short myip.opendns.com @resolver1.opendns.com |
scp ./DistributedSE.jar [email protected]:/ -i n1.pem |
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 |
if [ -d "$p2p_fs" ]; then | |
cd p2p_fs | |
git pull | |
else | |
git clone https://github.com/dinukasal/p2p_fs | |
cd p2p_fs | |
fi | |
cd ~/ |
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 |
ssh [email protected]
(default password for pi
user is raspberry
)import pyqtgraph as pg | |
import time | |
plt = pg.plot() | |
def update(data): | |
plt.plot(data, clear=True) | |
class Thread(pg.QtCore.QThread): |
#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; | |
} |
<!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> |