Raspberry Pi Cluster
I used the Rasbian version that comes in the NOOBS package.
Installing Root
-
sudo apt-get install git dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python-dev gfortran
-
tar -zxvf xxxx.tar.gz
In order to use pyRoot with Raspbian you need to specify where the libx11, libxpm etc files are. It is the .so you are looking for. A good method to search for these is to type:
-
find / -name libx11.so -print
Then do
-
./configure linuxarm --enable-python --with-x11-libdir=/usr/share/doc/ --with-xmp-libdir=/usr/share/doc/
The path to x11 and xmp will be the same, and you may need one or two more for xeft (or something, look at the error messages).
Finally,
Root and pyRoot should now work. There are tests you can run in the Examples directory.
Setting up wireless with USB
-
sudo nano /etc/network/interfaces
Add:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
Then
-
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Add:
network={
ssid="eduroam"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
auth_alg=OPEN
eap=PEAP
identity="usrname@wf.uct.ac.za"
password="password"
}=
Logging in automatically
To make the raspberry pi login automatically do:
Comment out the line
1:2345:respawn:/sbin/getty 115200 tty1
then below it add:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
mpi4py
To get mpi4py you need pip:
-
sudo apt-get install python-pip
-
pip install mpi4py