Setting up directories

We’ll need to set up some directories that will be used.  For this, we use the terminal.  You’ll be using Terminal for almost all of the compiling and installing of the software. So, if you know nothing but click,click,click, it’s time to learn how to really use a computer.  Here’s a start: Intro to Mac OS Command Line.  You can also use Google to search for “learn terminal commands for mac”.

When you open, you’ll get a prompt that looks like
rall:~ bzlab$

this tells you that you’re on and in the home directory for bzlab.  What you type comes after the “$”.  The prompt changes as you change directories, but I’m just going to show it as “$” and make the text that you type in bold.  Spaces and capitalization are important.

$ mkdir /usr/local  — some programs we compile and install will go here
mkdir /usr/local/lib
mkdir /usr/local/include
$ mkdir /Users/Shared/camtmp  — where frames from the camera are temporarily stored
$ mkdir /Users/Shared/camtmp/frames1
$ mkdir /Users/Shared/camtmp/frames2
$ mkdir /Users/Shared/camtmp/pre_frames1
$ mkdir /Users/Shared/camtmp/pre_frames2

$ mkdir ~/DataFolder  — where the data from the Igor program will be stored
$ mkdir ~/DataFolder/data1   — data from first box
$ mkdir ~/DataFolder/data2 — data from 2nd box
$ mkdir ~/src  — a folder to hold the source code for the programs we’re building

If you’re going to be using a single-camera setup (e.g. on the Prairie or other 2-P setup), then you’ll need a few more directories for the single-camera Igor programs.  The “1” and “2” suffixes weren’t added until we wrote MultiBlink, so the earlier programs look for the folders without them.

mkdir ~/DataFolder/data
mkdir /Users/Shared/camtmp/frames
mkdir /Users/Shared/camtmp/pre_frames


Note: the “~” is shorthand for your home folder, /Users/bzlab.