Ubuntu
These are instructions for setting up Bpod on a computer running Ubuntu
We recommend at least an Intel Corei5 processor and 8GB of RAM.
This tutorial assumes you have loaded Bpod's firmware* if you self-assembled the state machine
Install Ubuntu (64bit) with >100GB partition
Update Ubuntu to current version if necessary
Install MATLAB.
When prompted, check “install script”.
Run MATLAB (if default install location, from terminal: sudo /usr/local/MATLAB/RXXXX/bin/matlab
Install PsychToolbox:
Download PsychToolbox by following instructions for linux here. Use the SUBVERSION based installation.
Allow all patches and use default settings when prompted.
Copy Bpod files from here and add /Bpod_Gen2/Bpod System Files to MATLAB path
Close MATLAB
Open a terminal window and add yourself to the “dialout” group:
sudo usermod -a -G dialout kepecslab (if kepecslab is your username)
Restart matlab as root (same as step 4)
Run Bpod from the command prompt.
Note: Gnome ModemManager does not play well with Arduino; it discovers Arduino and probes it with bytes that interfere with communications, possibly leaving Bpod in a state where it expects bytes that will never arrive. If you experience issues starting Bpod and you're using Gnome, consider disabling the modem manager.
Note: A previous installation step was automated in the current version. If you are not using PsychToolbox, MATLAB needs to be instructed that ports of the form /dev/ttyACMx are valid serial ports. On first run, Bpod should automatically handle this, and then ask you to restart MATLAB. If it fails, do the following:
from terminal, launch the editor as root. Run: sudo gedit
Paste the following line into the text editor: -Dgnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1:/dev/USB0:/dev/ttyACM0
Save the file as java.opts to the following location: /usr/local/MATLAB/R2011a/bin/glnxa64
*State machines purchased from the Sanworks Assembly Service have firmware pre-installed