C4DM2013 Software » History » Version 19

Luis Figueira, 2013-03-11 05:16 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 4 Luis Figueira
* Install the scikits.audiolab package from this site, 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 12 Luis Figueira
* You can download Mercurial from the Mercurial web site and EasyMercurial from the EasyMercurial download page;
46 5 Luis Figueira
* There are many text editors available for OSX.
47 1 Luis Figueira
48 5 Luis Figueira
h4. Python under OSX
49 1 Luis Figueira
50 1 Luis Figueira
The following instructions have been tested under OSX Lion (10.7). Please let us know if you run into any problem. 
51 1 Luis Figueira
52 1 Luis Figueira
You’ll need to have both XCode and Homebrew installed.
53 5 Luis Figueira
54 17 Luis Figueira
* XCode: Please follow the instructions on this page to install XCode using the AppStore;
55 17 Luis Figueira
* Homebrew: Please follow the instructions in the Homebrew’s page.
56 17 Luis Figueira
* The easiest way to install SciPy, Numpy and Matplotlib is to use the following script: "ScipySuperpack":http://fonnesbeck.github.com/ScipySuperpack/
57 1 Luis Figueira
58 1 Luis Figueira
Audiolab depends on libsndfile, so you need to install it first. To install it run the following command on the Terminal:
59 1 Luis Figueira
60 17 Luis Figueira
<pre>
61 1 Luis Figueira
brew install libsndfile
62 17 Luis Figueira
</pre>
63 1 Luis Figueira
64 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):
65 1 Luis Figueira
66 17 Luis Figueira
<pre>
67 1 Luis Figueira
easy_install pip
68 1 Luis Figueira
pip install scikits.audiolab
69 17 Luis Figueira
</pre>
70 1 Luis Figueira
71 4 Luis Figueira
h2. Testing the installed software
72 4 Luis Figueira
73 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.
74 1 Luis Figueira
75 4 Luis Figueira
h3. Bash
76 1 Luis Figueira
77 1 Luis Figueira
At the prompt, type “whoami”. You should be told what your user name is on the computer you are using.
78 1 Luis Figueira
79 4 Luis Figueira
h3. Python
80 1 Luis Figueira
81 1 Luis Figueira
At the prompt, type “print 2+2″ and check that you agree with the result.
82 1 Luis Figueira
83 1 Luis Figueira
Then type “import sqlite3″ and verify that you don’t see an error message.
84 1 Luis Figueira
85 4 Luis Figueira
h3. Mercurial
86 1 Luis Figueira
87 1 Luis Figueira
At the Bash prompt, type “hg”. You should see a list of basic Mercurial commands.
88 1 Luis Figueira
89 4 Luis Figueira
h3. EasyMercurial
90 1 Luis Figueira
91 1 Luis Figueira
Create a directory (folder) somewhere on your computer.
92 1 Luis Figueira
93 1 Luis Figueira
Start EasyMercurial and create a repository in your new directory: Open -> File folder -> navigate to your directory  and click “OK”.
94 1 Luis Figueira
95 4 Luis Figueira
h3. Text editor
96 1 Luis Figueira
97 1 Luis Figueira
Create and save a file with some plain text in it.