After A Fresh Arch Linux Install - abrantsma/Pneumo GitHub Wiki
$ passwd # create password for root
bme462 # enter password
bme462 # enter password
$ nano /etc/motd # edit login message to display rpi<##>/ rpi<00>
$ pacman -Syyuu # update system
$ useradd -m -g users -s /bin/bash rpi00 # add user, has to be the same username for all pis in order to do parallel computing
$ pacman -S sudo # install sudo
$ nano /etc/sudoers # give user sudo rights
add 'rpi00 ALL=(ALL) ALL' under 'root ALL=(ALL) ALL'
$ passwd rpi00 # add password for new user
rpi00bme462 # enter password
rpi00bme462 # enter password
$ exit
ssh into rpi00@
$ sudo gpasswd -a rpi00 audio # give permission to various functions ...
$ sudo gpasswd -a rpi00 video
$ sudo gpasswd -a rpi00 power
$ sudo gpasswd -a rpi00 wheel
$ sudo nano /etc/hostname # change hostname from 'alarmpi' to 'alarmpi<00>'
$ sudo pacman -S octave nfs-utils base-devel openmpi vim gdb bc minicom
accept default install prefs.
$ mkdir builds
$ cd builds
$ curl -L -O http://www.mpich.org/static/downloads/1.5/mpich2-1.5.tar.gz # Acquire mpich2 build files
$ gunzip -c mpich2-1.5.tar.gz | tar xvf - # Build and install the package.
$ cd mpich2-1.5
$ sudo pacman -S gcc-fortran # will need in order to make mpich2..
$ sudo ./configure # run the configuration script... UNCLEAR IF NEED TO DO: "sudo ./configure" vs "./configure"
$ sudo make # like 30 minutes
$ sudo make install # like 2 minutes.
$ nano ~/.rhosts
Master pi00
Slave01 pi01
Slave02 pi02
$ sudo nano /etc/hosts
add:
192.168.1.108 Master
192.168.1.114 Slave01
192.168.1.111 Slave02
$ sudo nano /etc/hosts.allow
ALL+
$ sudo nano /etc/securetty
add:
rsh
rlogin
rexec
pts/0
pts/1
$ ssh-keygen -t rsa
$ ssh-keygen -t dsa
#Doesnt work...#$ ssh-keygen -t edsa
$ cat .ssh/id_rsa.pub | ssh rpi00@<IP> 'cat >> .ssh/authorized_keys' # Pair for password-less ssh
# current problem seems to be the fact that usernames are different...
# YES! ^ changed the username to be the same and it works.
$ octave
octave:1> pkg install -forge parallel -auto # this takes forever with no output. just wait it out.
##Test parallel:##
octave:2> pkg load parallel
octave:3> fun = @(x) x^2;
octave:4> vector_x = 1:10;
octave:5> vector_y = pararrayfun(nproc, fun, vector_x) #Output should be:
parcellfun: 10/10 jobs done
vector_y =
1 4 9 16 25 36 49 64 81 100
###################
$ sudo pacman -S git # install git so we can quickly pull code.
TODO: ADD MORE STUFF AND FORMAT PROPERLY.
Trying to get the touchscreen to work... Rob made some changes on the master /etc/modules-load.d/rasberrypi.conf and /etc/modprobe.d/fbtft.conf (I think?) look here: https://github.com/notro/fbtft/wiki#make-it-permanent-arch-linux and here: https://www.raspberrypi.org/forums/viewtopic.php?f=64&t=48967