3 NeuroDebian Virtual Machine
4 ===========================
10 For all systems running a non-Debian-based operation system, such as MS Windows
11 or Mac OS X, we offer a `virtual machine`_ that can be equipped with a large
12 variety of neuroscience software with just a few mouse clicks (e.g. AFNI_,
15 .. _virtual machine: http://en.wikipedia.org/wiki/Virtual_machine
16 .. _AFNI: http://afni.nimh.nih.gov/afni/
17 .. _Caret: http://brainvis.wustl.edu/wiki/index.php/Caret:About
18 .. _FSL: http://www.fmrib.ox.ac.uk/fsl/
19 .. _PyMVPA: http://www.pymvpa.org
21 The virtual machine contains an installation of `Debian 6.0 (squeeze)`_ with a
22 GNOME_ desktop environment. All installed software comes from standard Debian
23 packages, or prospective Debian packages from NeuroDebian. The virtual machine
24 can be seen as a showcase of what Debian for neuroscience research feels like.
25 Once downloaded this virtual machine can be kept up to date, just as any other
26 Debian installation. Using convenient graphical package management tools users
27 will benefit from security bug fixes provided by the Debian project for the
28 whole operating system, as well as from software updates for
29 neuroscience-related packages.
31 Even on Debian-based systems this virtual machine is an excellent way to
32 maintain an analysis environment that remains identical throughout the lifetime
33 of a study and that can be archived alongside acquired data and publications.
34 This is a much more practical way than freezing the entire software stack of a
35 whole workstation, where it quickly becomes troublesome to combine the desire
36 for latest research methodology for new studies and the need for stability for
39 .. _Debian 6.0 (squeeze): http://www.debian.org/releases/squeeze
40 .. _GNOME: http://www.gnome.org/
46 The following instructions demonstrate how to install the NeuroDebian virtual
47 machine -- here shown exemplary for Mac OS X, but the procedure is virtually
48 identical on a Windows box. There is also a video tutorial at coffee break
49 length. `[Virtual machine setup video tutorial]
50 <http://www.youtube.com/watch?v=eqfjKV5XaTE>`_.
52 If you don't have t already, first download and install a recent version of
53 VirtualBox_. VirtualBox is a virtualization software that is freely available
54 for Windows, MacOS X, Solaris, and Linux. VirtualBox comes with a comprehensive
55 manual that should answer potential questions regarding installation and
58 .. _VirtualBox: http://www.virtualbox.org
60 Obtain the most recent version of the NeuroDebian virtual machine by visiting
61 http://neuro.debian.net and selecting your operating system and a download
62 server on the frontpage.
64 Start VirtualBox and select "Import Appliance" from the file menu.
66 .. image:: pics/vm_import_app.jpg
68 The next dialog will ask you to choose a virtual machine. Please navigate to the
69 extracted NeuroDebian download and select the `.ova` (or extracted
70 `.ovf` for older appliances shipped as `.zip`) file.
72 .. image:: pics/vm_import_wizard.jpg
74 You can finish importing of NeuroDebian by clicking on *next* a couple of
75 times. There is no need to change anything, as we will get through the
76 settings in a second. Importing of the virtual machine will take a short
77 while, as it is distributed in a compressed format that now gets extracted
78 (total extracted size about 2 GB). Once imported, the NeuroDebian virtual
79 machine will appear in the list of available machines. Do **not** start it yet,
80 but select NeuroDebian and hit the *Settings* button. In the following dialog
81 you'll have a chance to configure the machine. You can assign the amount of RAM
82 that should be made available to it (for serious fMRI data processing, please
83 allow at least 2 GB). If you have a recent computer with multiple CPU cores,
84 you can also decide how many cores should be used by the virtual machine.
86 .. image:: pics/vm_add_host_folder.jpg
88 However, most important is the *Shared Folders* setup. Shared folders allow the
89 virtual machine to access the local harddrive of the host computer. This is an
90 easy way to access data on the computer without duplicating it or using the
91 network to access it. The virtual machine is preconfigured to access a shared
92 folder named labeled "host". Click on the *add* button to select a folder that
93 shall be accessible by the machine (e.g. your home directory) and put "host" as
94 the folder name and mark it to be auto-mounted. Note, the folder name is simply a label. Your directory will
97 .. image:: pics/vm_host_folder.jpg
99 If you have a large screen you should increase the display memory to
100 32 MB in the *Display* settings. Also you might like to enable the
101 support for 3D Acceleration
103 .. image:: pics/vm_settings_display.jpg
105 Finally, close the settings dialog. You have now completed the setup, and you
106 can start the virtual machine by hitting the *Start* button. A new window will
107 appear showing the boot process. After a short while the NeuroDebian desktop
108 will appear, and a setup wizard will guide your through the final steps of the
109 configuration. You can now explore the system. The virtual machine is connected
110 with your host computer, and shares its Internet connection. Via this
111 connection you can update the contained software packages at any time.
113 .. image:: pics/vm_settings.jpg
115 The virtual machine logs yourself in automatically. This is the default account:
118 :password: neurodebian
120 :root password: neurodebian
122 In most cases you should not be forced to type the password, because ``sudo``
123 is configured to work without it.
127 For increased security you might want to change the default password. You can
128 do so by opening a terminal window and running the ``passwd`` command.
131 Working with the virtual machine
132 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134 The NeuroDebian virtual machine has very low maintenance demands. We have
135 prepared a short video demo that shows most typical procedures that you will
136 probably perform while working with NeuroDebian inside a virtual machine:
137 use the virtual machine in full-screen and seamless mode, shared folder access,
138 software installation, as well as suspending and resuming the
139 virtual machine. `[Virtual machine handling video tutorial]
140 <http://www.youtube.com/watch?v=OV7fYSEoOeQ>`_
143 .. _chap_vm_troubleshooting:
150 <div class="expandinstructions">Click on an item to expand it</div>
152 Updating the VM or installing new packages doesn't work
153 The VM uses as service that tries to figure out the best/closest package
154 repository for you. In some network environments this service might not work
155 well, or not at all. To check if this is a problem, you can modify the
156 respective configuration by hand. Edit ``/etc/apt/sources.list`` (you need to
157 use ``sudo`` for that) and replace the package repository URL with a mirror
158 close to you. A comprehensive list of mirrors is available at:
159 http://www.debian.org/mirror/list
161 Pick one and replace all ``geomirror.debian.net`` URLs with the new mirror
162 URL. For example, in Canada you might want to change::
164 deb http://i386-geomirror.debian.net/debian squeeze main non-free contrib
168 deb http://ftp.ca.debian.org/debian/ squeeze main non-free contrib
170 Only modify lines that refer to ``geomirror`` (all of them), but do **not**
171 modify entries for ``security.debian.org``.
173 I cannot hear sounds played in the virtual machine
174 By default the sound is muted. To enable playback launch the mixer applet by
175 clicking on the mixer icon in the task bar. Unmute the master volume control.
176 Now click on the "Volume control" to load the channel mixer dialog. Unmute
177 the "Master" and "PCM" channels and raise the volume as desired. You should
178 now be able to hear sounds played within the virtual machines through your
179 host computer's speakers.
181 My VM lost mounted host directories after upgrading from VirtualBox from 3.x to 4.x
182 NeuroDebian VMs prior 6.0.3 were shipped with guest additions from
183 3.x series of VirtualBox and some initial versions of VirtualBox in
184 4.x series have failed to mount host directories properly.
185 VirtualBox 4.0.8 seems to work fine with guest additions from 3.x
186 series. If you nevertheless want to upgrade guest additions within
187 NeuroDebian VM, please rebuild the version available from the
190 sudo apt-get install -y linux-headers-2.6-amd64 # or -686 for 32bit
191 sudo apt-get install -y -t squeeze-backports virtualbox-ose-guest-dkms \
192 virtualbox-ose-guest-utils virtualbox-ose-guest-x11
202 <div class="expandinstructions">Click on an item to expand it</div>
205 * Updated core system to Debian squeeze 6.0.3
206 * Updated shipped virtualbox-ose guest-utils and guest-x11 to 4.0.10
208 - ``~/host`` is now symlinked to correct path ``/media/sf_host``
209 - ``brain`` user is added to ``vboxsf`` group so mounted host
210 directories should become readily available
212 * Root partition size and swap space got doubled in size (40GB
213 and 2GB correspondingly). Space is allocated dynamically so
214 the actual size of the virtual drive should not grow unless
218 * Updated shipped virtualbox-ose guest-utils and guest-x11 to 4.0.4
220 6.0.3 -- 12 Jun 2011 [Superseded in the archive by 6.0.4]
221 * Updated to Squeeze 6.0.1
222 * Updated VirtualBox guest additions to 4.0.4 from backports.debian.org
223 * Appliance is available as a single file (.ova) ready for the import