]> git.donarmstrong.com Git - neurodebian.git/blob - sphinx/vm.rst
ENH: added info/links for VM 6.999.b4.20121231
[neurodebian.git] / sphinx / vm.rst
1 .. _chap_vm:
2
3 NeuroDebian Virtual Machine
4 ===========================
5
6 .. quotes::
7    :random: 1
8    :tags: vm
9
10 For those who are not yet running a Debian-based operation system we offer a
11 `virtual machine`_ that can be used with `VirtualBox`_, allowing users to benefit
12 from a Debian-based research environment on other operating systems.
13 This virtual machine initially comes as a compact Debian installation that can,
14 once installed, be equipped with a large variety of neuroscience software with
15 just a few mouse clicks (e.g. AFNI_, Caret_, FSL_, PyMVPA_).
16
17 .. _virtual machine: http://en.wikipedia.org/wiki/Virtual_machine
18
19
20 Downloads
21 ---------
22
23 Stable (6.x series)
24 ~~~~~~~~~~~~~~~~~~~
25
26 Based on current stable `Debian 6.0 (squeeze)`_ release.  This VM
27 provides a stable, well tested environment with the most of the recent
28 releases available from NeuroDebian.
29
30 * `NeuroDebian 6.0.6 image (32bit)
31   <http://neuro.debian.net/debian/vm/NeuroDebian_6.0.6_i386.ova>`_ [~559MB]
32
33   *This image should work on virtually all systems that are supported by*
34   VirtualBox_ *and can be used whenever the, otherwise preferable, 64bit image
35   is not compatible with a host machine.*
36
37 * `NeuroDebian 6.0.6 image (64bit)
38   <http://neuro.debian.net/debian/vm/NeuroDebian_6.0.6_amd64.ova>`_ [~576MB]
39
40   *This image only works on 64bit host machines with active hardware
41   virtualization support. The should include all recent Apple hardware and most
42   64bit Windows systems.*
43
44 Development (to be 7.x series)
45 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46
47 Based on upcoming `Debian 7.0 (wheezy)`_ release.  Although already
48 quite stable, there might be outstanding issues.  This VM also
49 switches from GNOME_ (v.2) desktop environment to XFCE4_.  We
50 recommend this VM over a stable one for anyone needing recent releases
51 of tools not available for the stable VM (e.g. recent pandas) --
52 **getting a complete "Scientific Python" stack with 100s of other
53 Python modules was never easier**.  Moreover your feedback might also
54 be valuable to polish upcoming Debian wheezy release and NeuroDebian
55 VM 7.0.
56
57 * `NeuroDebian 6.999.b4.20121231 image (32bit)
58   <http://neuro.debian.net/debian/vm/NeuroDebian_6.999.b4.20121231_i386.ova>`_ [~656MB]
59
60 * `NeuroDebian 6.999.b4.20121231 image (64bit)
61   <http://neuro.debian.net/debian/vm/NeuroDebian_6.999.b4.20121231_amd64.ova>`_ [~660MB]
62
63
64 Historical
65 ~~~~~~~~~~
66
67 Virtual appliances above carry guest additions for 4.x series of the
68 VirtualBox. If you still have VirtualBox 3.x, use previous 6.0.2
69 virtual appliances:
70
71 * `NeuroDebian 6.0.2 image (32bit)
72   <http://neuro.debian.net/debian/vm/neurodebian_6.0.2_i386.zip>`_ [~545MB]
73
74 * `NeuroDebian 6.0.2 image (64bit)
75   <http://neuro.debian.net/debian/vm/neurodebian_6.0.2_amd64.zip>`_ [~560MB]
76
77 .. note::
78
79   This older virtual appliances are distributed as a `zip` file. Please
80   extract all files from the `.zip` file, using appropriate software
81   for your operating system.
82
83 .. note::
84
85   You can verify that you have downloaded archives correctly using
86   `md5sums -c MD5SUMS
87   <http://neuro.debian.net/debian/vm/MD5SUMS>`_ . You can also verify
88   the authenticity of the `MD5SUMS
89   <http://neuro.debian.net/debian/vm/MD5SUMS>`_ itself using `gpg
90   --verify MD5SUMS.gpg
91   <http://neuro.debian.net/debian/vm/MD5SUMS.gpg>`_ signed with
92   NeuroDebian archive key.
93
94 * `VirtualBox download page <http://www.virtualbox.org/wiki/Downloads>`_ (Windows, Linux, Mac,
95   Solaris)
96
97   *This webpage offers installers of the VirtualBox application, as well as the
98   documentation.*
99
100 Changes
101 -------
102
103 6.999.b4.20121231 -- 31 Dec 2012
104
105       * Based on beta 4 release of debian-installer_ for wheezy
106       * Comes with XFCE4_ instead of GNOME_
107
108 6.0.6 -- 01 Oct 2012
109
110       * Updated core system to Debian squeeze 6.0.6
111
112 6.0.5 -- 10 Nov 2011
113
114       * Updated core system to Debian squeeze 6.0.3
115       * Updated shipped virtualbox-ose guest-utils and guest-x11 to 4.0.10
116
117         - ``~/host`` is now symlinked to correct path ``/media/sf_host``
118         - ``brain`` user is added to ``vboxsf`` group so mounted host
119           directories should become readily available
120
121       * Root partition size and swap space got doubled in size (40GB
122         and 2GB correspondingly).  Space is allocated dynamically so
123         the actual size of the virtual drive should not grow unless
124         you use it
125
126 6.0.4 -- 13 Jun 2011
127
128       * Updated shipped virtualbox-ose guest-utils and guest-x11 to 4.0.4
129
130 6.0.3 -- 12 Jun 2011 [Superseded in the archive by 6.0.4]
131
132       * Updated to Debian squeeze 6.0.1
133       * Updated VirtualBox guest additions to 4.0.4 from backports.debian.org
134       * Appliance is available as a single file (.ova) ready for the import
135
136 6.0.2 -- 08 Feb 2011
137
138 6.0.1 -- 01 Dec 2010
139
140 Documentation
141 -------------
142
143 The virtual machine contains an installation of `Debian 6.0 (squeeze)`_ with a
144 GNOME_ desktop environment. All installed software comes from standard Debian
145 packages, or prospective Debian packages from NeuroDebian. This means that all
146 contained software is readily available for any system running a Debian
147 operating system (or a recent Ubuntu release). The virtual machine can be seen
148 as a showcase of what Debian for neuroscience research feels like. Moreover,
149 once downloaded this virtual machine can be kept up to date, just as any other
150 Debian installation. Using convenient graphical package management tools users
151 will benefit from security bug fixes provided by the Debian project for the
152 whole operating system, as well as from software updates for
153 neuroscience-related packages.
154
155
156
157 Installation
158 ~~~~~~~~~~~~
159
160 The following video shows how to get the NeuroDebian virtual machine running
161 on your machine. The installation is shown for Mac OS X. It should, however, be
162 very similar on a Windows box. If you cannot watch the video, please take a
163 look at the written instructions below.
164
165 .. raw:: html
166
167   <iframe title="YouTube video player"
168           class="youtube-player"
169           type="text/html"
170           width="640"
171           height="375"
172           src="http://www.youtube.com/embed/eqfjKV5XaTE?hd=1"
173           frameborder="0"></iframe>
174
175 First download and install a recent version of VirtualBox_. VirtualBox is a
176 virtualization software that is freely available for Windows, MacOS X, Solaris,
177 and Linux. VirtualBox comes with a comprehensive manual that should answer
178 potential questions regarding installation and maintenance.
179
180 .. _VirtualBox: http://www.virtualbox.org
181
182 Next, download the most recent version of the NeuroDebian virtual machine from
183 the Downloads_ section.  Start VirtualBox and select "Import Appliance" from the file
184 menu.
185
186 .. image:: pics/vm_import_app.jpg
187
188 The next dialog will ask you to choose a virtual machine. Please navigate to the
189 extracted NeuroDebian download and select the `.ova` (or extracted
190 `.ovf` for older appliances shipped as `.zip`) file.
191
192 .. image:: pics/vm_import_wizard.jpg
193
194 You can finish importing of NeuroDebian by clicking on *next* a couple of
195 times.  There is no need to change anything, as we will get through the
196 settings in a second.  Importing of the virtual machine will take a short
197 while, as it is distributed in a compressed format that now gets extracted
198 (total extracted size about 2 GB).  Once imported, the NeuroDebian virtual
199 machine will appear in the list of available machines. Do **not** start it yet,
200 but select NeuroDebian and hit the *Settings* button. In the following dialog
201 you'll have a chance to configure the machine. You can assign the amount of RAM
202 that should be made available to it (for serious fMRI data processing, please
203 allow at least 2 GB). If you have a recent computer with multiple CPU cores,
204 you can also decide how many cores should be used by the virtual machine.
205
206 .. image:: pics/vm_add_host_folder.jpg
207
208 However, most important is the *Shared Folders* setup. Shared folders allow the
209 virtual machine to access the local harddrive of the host computer. This is an
210 easy way to access data on the computer without duplicating it or using the
211 network to access it. The virtual machine is preconfigured to access a shared
212 folder named labeled "host".  Click on the *add* button to select a folder that
213 shall be accessible by the machine (e.g. your home directory) and put "host" as
214 the folder name and mark it to be auto-mounted. Note, the folder name is simply a label. Your directory will
215 not be renamed.
216
217 .. image:: pics/vm_host_folder.jpg
218
219 If you have a large screen you should increase the display memory to
220 32 MB in the *Display* settings.  Also you might like to enable the
221 support for 3D Acceleration
222
223 .. image:: pics/vm_settings_display.jpg
224
225 Finally, close the settings dialog. You have now completed the setup, and you
226 can start the virtual machine by hitting the *Start* button. A new window will
227 appear showing the boot process. After a short while the NeuroDebian desktop
228 will appear, and a setup wizard will guide your through the final steps of the
229 configuration. You can now explore the system. The virtual machine is connected
230 with your host computer, and shares its Internet connection. Via this
231 connection you can update the contained software packages at any time.
232
233 .. image:: pics/vm_settings.jpg
234
235 The virtual machine logs yourself in automatically. The name of the virtual
236 machine user is `brain` and the password is `neurodebian`. The *root* password
237 is also `neurodebian`. In most cases, however, you should not be forced to type
238 the password, since `sudo` is configured to work without it.
239
240 .. note::
241
242   For increased security you might want to change the default password. You can
243   do so by opening a terminal window and running the ``passwd`` command.
244
245
246 Working with the virtual machine
247 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
248
249 The next video is a demonstration of some basic desktop integration features.
250 It shows how to use the virtual machine in full-screen and seamless mode, shared
251 folder access, software installation, as well as suspending and resuming the
252 virtual machine.
253
254 .. raw:: html
255
256   <iframe title="YouTube video player"
257           class="youtube-player"
258           type="text/html"
259           width="640"
260           height="375"
261           src="http://www.youtube.com/embed/OV7fYSEoOeQ?hd=1"
262           frameborder="0"></iframe>
263
264
265 .. _chap_vm_troubleshooting:
266
267 Troubleshooting
268 ~~~~~~~~~~~~~~~
269
270 Updating the VM or installing new packages doesn't work.
271
272   The VM uses as service that tries to figure out the best/closest package
273   repository for you. In some network environments this service might not work
274   well, or not at all. To check if this is a problem, you can modify the
275   respective configuration by hand. Edit ``/etc/apt/sources.list`` (you need to
276   use ``sudo`` for that) and replace the package repository URL with a mirror
277   close to you. A comprehensive list of mirrors is available at:
278   http://www.debian.org/mirror/list
279
280   Pick one and replace all ``geomirror.debian.net`` URLs with the new mirror
281   URL. For example, in Canada you might want to change::
282
283     deb http://i386-geomirror.debian.net/debian squeeze main non-free contrib
284
285   to::
286
287     deb http://ftp.ca.debian.org/debian/ squeeze main non-free contrib
288
289   Only modify lines that refer to ``geomirror`` (all of them), but do **not**
290   modify entries for ``security.debian.org``.
291
292 I cannot hear sounds played in the virtual machine.
293
294   By default the sound is muted. To enable playback launch the mixer applet by
295   clicking on the mixer icon in the task bar. Unmute the master volume control.
296   Now click on the "Volume control" to load the channel mixer dialog. Unmute
297   the "Master" and "PCM" channels and raise the volume as desired. You should
298   now be able to hear sounds played within the virtual machines through your
299   host computer's speakers.
300
301 I have upgraded VirtualBox from 3.x series to 4.x, and my VM lost
302 mounted host directories.
303
304   NeuroDebian VMs prior 6.0.3 were shipped with guest additions from
305   3.x series of VirtualBox and some initial versions of VirtualBox in
306   4.x series have failed to mount host directories properly.
307   VirtualBox 4.0.8 seems to work fine with guest additions from 3.x
308   series.  If you nevertheless want to upgrade guest additions within
309   NeuroDebian VM, please rebuild the version available from the
310   backports::
311
312     sudo apt-get install -y linux-headers-2.6-amd64 # or -686 for 32bit
313     sudo apt-get install -y -t squeeze-backports virtualbox-ose-guest-dkms \
314          virtualbox-ose-guest-utils  virtualbox-ose-guest-x11
315
316   and reboot VM.
317
318 .. include:: link_names.txt