C4DM2013 Software » History » Version 24
Luis Figueira, 2013-03-11 05:42 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 | 21 | Luis Figueira | |
32 | 21 | Luis Figueira | * Python + SciPy + Numpy + Matplotlib: |
33 | 21 | Luis Figueira | ** Install Python 2.7 using the MSI installer from python.org |
34 | 21 | Luis Figueira | ** Install NumPy and SciPy packages from scipy.org |
35 | 21 | Luis Figueira | ** Alternatively, you can either use one of these pre-packaged Python distributions, such as "EPD":http://www.enthought.com/products/epd_free.php or "Anaconda":https://store.continuum.io/cshop/academicanaconda |
36 | 20 | Luis Figueira | * Install the scikits.audiolab package from "this site":http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab, and matplotlib from SourceForge. |
37 | 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). |
38 | 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 |
39 | 4 | Luis Figueira | <pre> |
40 | 1 | Luis Figueira | C:\Python27;C:\Program Files\EasyMercurial;C:\Program Files (x86)\EasyMercurial |
41 | 4 | Luis Figueira | </pre> |
42 | 1 | Luis Figueira | onto the end of it. |
43 | 19 | Luis Figueira | * You can use Wordpad or Notepad as text editors, or install another editor such as Sublime Text 2 or TextWrangler. |
44 | 1 | Luis Figueira | |
45 | 5 | Luis Figueira | h3. Installation on Mac OSX |
46 | 1 | Luis Figueira | |
47 | 12 | Luis Figueira | * OSX comes with Bash and Python; |
48 | 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; |
49 | 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); |
50 | 1 | Luis Figueira | |
51 | 1 | Luis Figueira | h4. Python under OSX |
52 | 1 | Luis Figueira | |
53 | 24 | Luis Figueira | _The following instructions have been tested under OSX Lion (10.7)._ |
54 | 1 | Luis Figueira | |
55 | 24 | Luis Figueira | * Install XCode: Please follow the instructions "on this page":https://itunes.apple.com/gb/app/xcode/id497799835?mt=12 to install XCode using the AppStore; |
56 | 24 | Luis Figueira | * Install Homebrew: "please follow these instructions":http://mxcl.github.com/homebrew/ installed: |
57 | 24 | Luis Figueira | * SciPy+Numpy +Matplotlib |
58 | 24 | Luis Figueira | ** either use the following script: "ScipySuperpack":http://fonnesbeck.github.com/ScipySuperpack/ |
59 | 24 | Luis Figueira | ** Alternatively, you can also use one of these pre-packaged Python distributions, "EPD":http://www.enthought.com/products/epd_free.php or "Anaconda":https://store.continuum.io/cshop/academicanaconda |
60 | 22 | Luis Figueira | * Audiolab depends on libsndfile, so you need to install it first. To install it run the following command on the Terminal: |
61 | 1 | Luis Figueira | |
62 | 17 | Luis Figueira | <pre> |
63 | 1 | Luis Figueira | brew install libsndfile |
64 | 17 | Luis Figueira | </pre> |
65 | 1 | Luis Figueira | |
66 | 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): |
67 | 1 | Luis Figueira | |
68 | 17 | Luis Figueira | <pre> |
69 | 1 | Luis Figueira | easy_install pip |
70 | 1 | Luis Figueira | pip install scikits.audiolab |
71 | 17 | Luis Figueira | </pre> |
72 | 1 | Luis Figueira | |
73 | 4 | Luis Figueira | h2. Testing the installed software |
74 | 4 | Luis Figueira | |
75 | 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. |
76 | 1 | Luis Figueira | |
77 | 4 | Luis Figueira | h3. Bash |
78 | 1 | Luis Figueira | |
79 | 1 | Luis Figueira | At the prompt, type “whoami”. You should be told what your user name is on the computer you are using. |
80 | 1 | Luis Figueira | |
81 | 4 | Luis Figueira | h3. Python |
82 | 1 | Luis Figueira | |
83 | 1 | Luis Figueira | At the prompt, type “print 2+2″ and check that you agree with the result. |
84 | 1 | Luis Figueira | |
85 | 1 | Luis Figueira | Then type “import sqlite3″ and verify that you don’t see an error message. |
86 | 1 | Luis Figueira | |
87 | 4 | Luis Figueira | h3. Mercurial |
88 | 1 | Luis Figueira | |
89 | 1 | Luis Figueira | At the Bash prompt, type “hg”. You should see a list of basic Mercurial commands. |
90 | 1 | Luis Figueira | |
91 | 4 | Luis Figueira | h3. EasyMercurial |
92 | 1 | Luis Figueira | |
93 | 1 | Luis Figueira | Create a directory (folder) somewhere on your computer. |
94 | 1 | Luis Figueira | |
95 | 1 | Luis Figueira | Start EasyMercurial and create a repository in your new directory: Open -> File folder -> navigate to your directory and click “OK”. |
96 | 1 | Luis Figueira | |
97 | 4 | Luis Figueira | h3. Text editor |
98 | 1 | Luis Figueira | |
99 | 1 | Luis Figueira | Create and save a file with some plain text in it. |