C4DM2013 Software » History » Version 20

Luis Figueira, 2013-03-11 05:33 PM

1 1 Luis Figueira
h1. C4DM2013 Software
2 1 Luis Figueira
3 16 Luis Figueira
You should ensure the following software is installed on your laptop before you arrive at the [[c4dm2013|C4DM SWC 2013 bootcamp]], so that we can get started promptly with the tutorials.
4 1 Luis Figueira
5 1 Luis Figueira
h2. Shortlist
6 1 Luis Figueira
7 1 Luis Figueira
* Bash (the particular Unix shell we’ll be using)
8 11 Luis Figueira
* Python 2.6+ (the scripting language used in the course)
9 11 Luis Figueira
* "Mercurial":http://mercurial.selenic.com/ and "EasyMercurial":http://easyhg.org (for version control)
10 1 Luis Figueira
* A text editor (for programming!)
11 2 Luis Figueira
* You can also save time on the day by creating an account beforehand at the "SoundSoftware code site":http://code.soundsoftware.ac.uk.
12 1 Luis Figueira
13 2 Luis Figueira
For the second day of the bootcamp you'll need the following Python packages: 
14 1 Luis Figueira
15 11 Luis Figueira
* "Numpy":http://www.numpy.org/
16 11 Luis Figueira
* "SciPy":http://www.scipy.org/
17 11 Luis Figueira
* "Matplotlib":http://matplotlib.org/
18 11 Luis Figueira
* "Scikits Audiolab":https://pypi.python.org/pypi/scikits.audiolab/
19 2 Luis Figueira
20 6 Luis Figueira
If you run into any trouble, please send us an email: info@soundsoftware.ac.uk.
21 1 Luis Figueira
22 3 Luis Figueira
h2. Installation on Linux
23 1 Luis Figueira
24 9 Luis Figueira
* Bash, Python and Firefox are all available using the appropriate package management tool in all major Linux distributions. Please check that the Python version is 2.x, (2.6 or higher, preferrably). If not, you may need to install a newer version “by hand” or upgrade your Linux installation.
25 14 Luis Figueira
* EasyMercurial can be downloaded as a .deb package (for Debian or Ubuntu installations) from the "EasyMercurial Download page":http://easyhg.org/download.html. Your package manager should automatically install any dependencies, including Mercurial itself. On Red Hat or other Linux distributions you will probably need to install Mercurial first using your package manager, then download the EasyMercurial source code package and compile and install it using the instructions in the included file README.txt: just run qmake and then make. The qmake tool is part of the qt-devel package, which you may need to install first.
26 9 Luis Figueira
* If you use Linux, you probably already have a favourite text editor. Emacs and Nano are popular choices, but there are many others.
27 1 Luis Figueira
28 3 Luis Figueira
h2. Installation on Windows
29 1 Luis Figueira
30 13 Luis Figueira
* You should install "MinGW and MSYS":http://www.mingw.org/. Check that you can run (from the Windows Start menu) MinGW -> MinGW Shell in order to open a Bash prompt.
31 13 Luis Figueira
* Install Python 2.7 using the MSI installer from python.org
32 13 Luis Figueira
* Install NumPy and SciPy packages from scipy.org
33 20 Luis Figueira
* Install the scikits.audiolab package from "this site":http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab, and matplotlib from SourceForge.
34 14 Luis Figueira
* EasyMercurial can be downloaded from the "EasyMercurial Download page":http://easyhg.org/download.html (the Windows installer will also install Mercurial itself).
35 4 Luis Figueira
* You will need to edit the PATH environment variable to add Python and Mercurial. To do this, go to Control Panel -> System and Security -> System -> Advanced system settings -> Advanced and click the Environment Variables button; then edit the PATH user variable and copy and paste
36 4 Luis Figueira
<pre>
37 1 Luis Figueira
C:\Python27;C:\Program Files\EasyMercurial;C:\Program Files (x86)\EasyMercurial
38 4 Luis Figueira
</pre>
39 1 Luis Figueira
onto the end of it.
40 19 Luis Figueira
* You can use Wordpad or Notepad as text editors, or install another editor such as Sublime Text 2 or TextWrangler.
41 1 Luis Figueira
42 5 Luis Figueira
h3. Installation on Mac OSX
43 1 Luis Figueira
44 12 Luis Figueira
* OSX comes with Bash and Python;
45 20 Luis Figueira
* You can download "Mercurial":http://mercurial.selenic.com/ from the Mercurial web site and EasyMercurial from the "EasyMercurial Download page":http://easyhg.org/download.html;
46 20 Luis Figueira
* There are many text editors available for OSX, but TextEdit will suffice (make sure you are saving the New Documents in Plain Text - see TextEdit's preferences);
47 1 Luis Figueira
48 1 Luis Figueira
h4. Python under OSX
49 1 Luis Figueira
50 20 Luis Figueira
The following instructions have been tested under OSX Lion (10.7). Please let us know if you run into any problem.  You’ll need to have both XCode and Homebrew installed:
51 5 Luis Figueira
52 17 Luis Figueira
* XCode: Please follow the instructions on this page to install XCode using the AppStore;
53 17 Luis Figueira
* Homebrew: Please follow the instructions in the Homebrew’s page.
54 17 Luis Figueira
* The easiest way to install SciPy, Numpy and Matplotlib is to use the following script: "ScipySuperpack":http://fonnesbeck.github.com/ScipySuperpack/
55 1 Luis Figueira
56 1 Luis Figueira
Audiolab depends on libsndfile, so you need to install it first. To install it run the following command on the Terminal:
57 1 Luis Figueira
58 17 Luis Figueira
<pre>
59 1 Luis Figueira
brew install libsndfile
60 17 Luis Figueira
</pre>
61 1 Luis Figueira
62 1 Luis Figueira
After this, you need to install Audiolab. To install Audiolab, you need to run the following commands on the Terminal (you might need to be sudo):
63 1 Luis Figueira
64 17 Luis Figueira
<pre>
65 1 Luis Figueira
easy_install pip
66 1 Luis Figueira
pip install scikits.audiolab
67 17 Luis Figueira
</pre>
68 1 Luis Figueira
69 4 Luis Figueira
h2. Testing the installed software
70 4 Luis Figueira
71 1 Luis Figueira
We recommend that you try the following simple tests to ensure that everything is installed and working correctly before the course starts.
72 1 Luis Figueira
73 4 Luis Figueira
h3. Bash
74 1 Luis Figueira
75 1 Luis Figueira
At the prompt, type “whoami”. You should be told what your user name is on the computer you are using.
76 1 Luis Figueira
77 4 Luis Figueira
h3. Python
78 1 Luis Figueira
79 1 Luis Figueira
At the prompt, type “print 2+2″ and check that you agree with the result.
80 1 Luis Figueira
81 1 Luis Figueira
Then type “import sqlite3″ and verify that you don’t see an error message.
82 1 Luis Figueira
83 4 Luis Figueira
h3. Mercurial
84 1 Luis Figueira
85 1 Luis Figueira
At the Bash prompt, type “hg”. You should see a list of basic Mercurial commands.
86 1 Luis Figueira
87 4 Luis Figueira
h3. EasyMercurial
88 1 Luis Figueira
89 1 Luis Figueira
Create a directory (folder) somewhere on your computer.
90 1 Luis Figueira
91 1 Luis Figueira
Start EasyMercurial and create a repository in your new directory: Open -> File folder -> navigate to your directory  and click “OK”.
92 1 Luis Figueira
93 4 Luis Figueira
h3. Text editor
94 1 Luis Figueira
95 1 Luis Figueira
Create and save a file with some plain text in it.