Raspberry Pi Cluster

I used the Rasbian version that comes in the NOOBS package.

-- JoshuaWyattSmith - 19 Jan 2014

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,

  • make
  • make install

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:
  • sudo nano /etc/inittab

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
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2014-01-19 - JoshuaWyattSmith
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback