= Installation and updates = Brainstorm is available in two forms: an open-source Matlab application (Matlab license required) and a stand-alone Java executable (free). Both are available for download in the same package. == Requirements == ==== With Matlab ==== * No specific operating system requirements * Matlab version >= '''R2006b (7.3)''' * Optional: Signal Processing Toolbox (for frequency filtering and resampling) ==== Without Matlab ==== * Operating system: * '''Windows''': Any version ([[http://www.mathworks.com/support/sysreq/release2014b/index.html?sec=windows|details]]) * '''Linux''': Ubuntu 13.10+, !RedHat 6.x, Debian 7.x, SUSE 11.3+ ([[http://www.mathworks.com/support/sysreq/release2014b/index.html?sec=linux|details]]) * '''MacOS''': 10.7.4+ (Lion), 10.8 (Mountain Lion), 10.9 (Mavericks), 10.10 (Yosemite) ([[http://www.mathworks.com/support/sysreq/release2014b/index.html?sec=mac|details]]) * If your system is not listed here, try with another version: [[InstallationR2012b|2012b]], [[InstallationR2013b|2013b]] or [[InstallationR2014a|2014a]] * Matlab Compiler Runtime: * '''MCR version''': R2014b (8.4) * Download for free from the [[http://www.mathworks.com/products/compiler/mcr/|Mathworks website]] ==== Hardware recommendations ==== Working with MEG/EEG recordings involves a lot of computational resources and large display windows. Therefore we recommend that you use a computer with a decent processing capacity and a screen larger than 13". You would also add to your comfort by using an external mouse instead of your laptop pad. Most of the manipulations are done with the mouse, and some involve an intensive use of the scrolling operation. A mouse wheel or the "two-finger move" on !MacBooks are perfect for this, but this operation is not always easy to perform on some laptops. == Installation == 1. Go to the [[http://neuroimage.usc.edu/brainstorm3_register/download.php|Download]] page, complete the quick and free registration process <
>(it helps us keep track of our users' demographics) 1. Download the latest brainstorm_....zip archive 1. Unzip it somewhere on your computer, for example:<
> * __Windows__: My documents\brainstorm3 * __Linux__: /usr/local/brainstorm3 (or ~/brainstorm3 if you are not admin) * __MacOS__: Applications/brainstorm3 1. Create a new folder "'''brainstorm_db'''" for the Brainstorm database, for example: * __Windows__: My documents\brainstorm_db * __Linux__: /home/username/brainstorm_db * __MacOS__: Documents/brainstorm_db == Start Brainstorm == ==== With Matlab ==== 1. Start Matlab 1. Do '''NOT '''add brainstorm3 folder to your Matlab path: this will be done automatically 1. Go to the brainstorm3 folder 1. Type "brainstorm" in the command window 1. When asked for the Brainstorm database folder, pick the "brainstorm_db" you have just created 1. Follow all the 12+3 introduction tutorials: [[Tutorials]] ==== Without Matlab ==== 1. Download the '''MCR R2014b (8.4)''' for your operating system: [[http://www.mathworks.com/products/compiler/mcr/|Mathworks website]] 1. Install the MCR: * __Windows__: Double-click on the .exe and follow the instructions * __Linux__: From a terminal, unzip .zip, then run ./install * __MacOS__: Click on the zip file to unzip it, then click on "InstallForMacOSX". 1. Run the program in brainstorm3/bin/R2014b/ * __Windows__: Double-click on ''brainstorm3.bat'' * __MacOS__: Double-click on ''brainstorm3.command ''and wait for instructions * __Linux__: From a terminal, run:<
>''cd brainstorm3/bin/R2014b/''<
>''./brainstorm3.command '' 1. Troubleshooting for MacOS or Linux: * On recent versions of MacOS, you may get an error message "Application can't be opened because it is from an unindentified developer". This message would appear for all the programs that were not downloaded from the Apple appstore. To go around this verification: right-click on the application > Open, then click on the Open button. * From a terminal, make sure that the file "''brainstorm3.command''" is executable:<
>''chmod a+x brainstorm3.command'' * If nothing happens, run: <
>''./brainstorm3.command MCR_DIR''<
>MCR_DIR is the MCR 8.4 folder (ex: /Applications/MATLAB/MCR/v84) * Try with another binary release: [[InstallationR2012b|Matlab 2012b]], [[InstallationR2013b|Matlab 2013b]], [[InstallationR2014a|2014a]] 1. On Linux or MacOS, you will be prompted to select the folder where you installed the MCR. 1. When asked for the Brainstorm database folder, pick the "brainstorm_db" you have just created. 1. Follow all the 12+3 introduction tutorials: [[Tutorials]] == Updates == Brainstorm is quickly improving and evolving. We have chosen not to go through a stable-release policy but rather, we established a quick and easy way to update the software seamlessly for you. Although this approach has its shares of risks of possibly seeing new bugs emerging from the most recent update, it has the great advantage of being dynamic and of rapidly disseminating new, important features. We encourage our users to report bugs through our [[http://neuroimage.usc.edu/forums|forum]], and our experience shows fixes are completed quickly enough to avoid disruptive downtime to our users. For these reasons, we recommend that you update Brainstorm regularly using the following options: * Automatic updates (Matlab version only): * When Brainstorm starts, it checks online if a version newer than a month-old is available. * To disable the automatic updates, edit the software preferences (File > Set preferences...) * Restart Matlab after updating the software. * Manual updates (Matlab version only): * Menu '''Help ''''''> Update Brainstorm''', in the main application window. * If it doesn't work: check that you have the rights to write in the brainstorm3 folder. * Restart Matlab after updating the software. * Stand-alone version (or in case the above methods do not work for you) * Delete the brainstorm3 folder (it will not delete your database, which is in your user folder) * Download the latest release of the Brainstorm version * Follow the installation instructions (see above)