]> git.donarmstrong.com Git - neurodebian.git/blob - sandbox/2012-02-08_comp_neurosci_ubuntu_live_usb.rst
Merge remote-tracking branch 'gh-cengique/master'
[neurodebian.git] / sandbox / 2012-02-08_comp_neurosci_ubuntu_live_usb.rst
1 :date: 2012-02-08 19:02:00
2 :tags: neuroscience, computational neuroscience, ubuntu, software, live cd, usb disk, linux distribution
3
4 .. _chap_comp_neurosci_ubuntu_live_usb:
5
6 A Live Ubuntu/NeuroDebian USB Stick for Computational Neuroscience
7 ====================================================================
8
9 I prepared an `Ubuntu 11.04`_/NeuroDebian_ live image with computational neuroscience tools for mainly use in USB sticks. This live image will let you run a full `Live Ubuntu Linux`_ system **without installing anything on your hard drives**, and it includes `persistent storage`_ that **maintains new files and packages across reboots**. The system is bundled with several computational neuroscience tools like GENESIS_, NEURON_ and XPPAUT_. It is made to fit in USB sticks of size >1GB. To use it, you will have to restart your PC with the USB stick inserted. After you turn on your computer, you will possibly also need to bring up your boot menu and choose to boot from the USB stick (most likely by pressing F10 or F12). 
10
11 .. _`Ubuntu 11.04`: http://help.ubuntu.com/11.04/ubuntu-help/index.html
12 .. _GENESIS: http://www.genesis-sim.org/GENESIS/
13 .. _NEURON: http://neuron.duke.edu/
14 .. _XPPAUT: http://www.math.pitt.edu/~bard/xpp/xpp.html
15 .. _NeuroDebian: http://neuro.debian.net
16 .. _`Live Ubuntu Linux`: http://help.ubuntu.com/community/LiveCd
17 .. _`persistent storage`: http://help.ubuntu.com/community/LiveCD/Persistence
18
19 *Note: You do not have to reboot your computer if you have a virtual machine* (e.g., `VirtualBox <http://www.virtualbox.org>`_, `VMware <http://www.vmware.com/>`_, etc.) *and you can point it boot from the USB stick.*
20
21 .. warning:: 
22  In general, a USB stick is not preferable media for a day-to-day use of Linux because flash memory has a short lifetime (on the order of about several months to a year, based on usage). In addition to the chance of hardware failure over a long time frame, the Ubuntu Live CD also has a tendency to slowly `get corrupted over time`_, but with special care taken, it can be used safely. 
23
24 As a first precaution, the USB stick should be routinely backed up. You can also copy your files over to your hard drive. To improve performance, it is even possible to transfer the persistent storage to your hard drive. See below for details.
25
26 .. _`get corrupted over time`: http://bugs.launchpad.net/ubuntu/+source/upstart/+bug/125702
27
28 .. attention::
29  RULES FOR KEEPING YOUR FILES SAFE:
30
31  1. NEVER YANK OUT THE USB STICK WHILE UBUNTU IS RUNNING. PERFORM PROPER "SHUTDOWN" FIRST.
32
33  2. REGULARLY BACKUP DATA FROM USB STICK ONTO HARD DRIVE
34
35 *Disclaimer: I take no responsibility over lost data whatsoever. By using this image, you assume all responsibility of your data.*
36
37 Copying files to your hard drives:
38 -----------------------------------
39 Open the file browser by clicking on the home icon in the left sidebar on the Desktop. In the file browser window, you should be able to see your hard drives on the left sidebar. When you click on them, they will be "mounted" (i.e., become visible) and show up as directories under /media. Then, you can copy files back and forth.
40
41 Backing up the persistent storage that holds your files:
42 --------------------------------------------------------
43 Do this routinely to save your new files on the USB stick:
44
45 1. While running your favorite PC operating system, insert USB stick 
46
47 2. Copy file "casper-rw" on your Desktop, preferably with a date
48
49 To restore it, copy it back on the USB and make sure it's named "casper-rw"
50
51 Transferring the persistent storage to your hard drive:
52 ---------------------------------------------------------------
53
54 1. While running any host operating system, insert USB stick 
55
56 2. Copy file "casper-rw" to the root of one of your hard disks (e.g. C:\\casper-rw). Ubuntu will find it and use it from there. Keep on making backups of it as it can still get corrupted over time.
57
58 3. Delete or rename "casper-rw" to something else on the USB stick so your hard disk copy is used.
59
60 4. At any time, you can copy your hard disk copy back onto the USB stick
61
62 What to do in case of corruption and boot failure:
63 --------------------------------------------------------
64 You can either:
65
66 1a. Copy your backed up "casper-rw" file onto the USB disk. You will lose your changed files since last backup.
67
68 1b. Boot the USB stick by choosing a non-persistent boot option from the Ubuntu boot disk and perform a filesystem check. Once you get a terminal. Issue:
69
70 ::
71
72  $ sudo su -
73
74 Which should give you root access. And then run the disk check:
75
76 ::
77
78  # e2fsck -p /cdrom/casper-rw
79
80 Press "y" and enter for the questions that it asks. Should not ask more than 10-20 of them. After this you should be able to reboot back into the Live Ubuntu.
81
82 Installing Ubuntu completely on your hard drive for dual booting
83 ----------------------------------------------------------------
84 Click on the "Install Ubuntu 11.04" link on the Desktop and follow the instructions.
85
86 Other troubleshooting:
87 ----------------------
88 This Live USB Stick is completely based on a Ubuntu 11.04 Live CD distribution. Please refer to their thorough documentation for further issues: https://help.ubuntu.com/community/LiveCD
89
90 .. admonition:: Created by...
91
92   | *v1* created on 2012-01-31 for use at the `Emory University <http://www.emory.edu>`_ BIO450/IBS534 Computational Neuroscience Course by Cengiz Gunay <cgunay AT emory.edu>, <cengique AT users.sf.net>
93
94  .. image:: CC_by_3.0_88x31.png
95         :alt: Creative Commons License
96         :align: left
97         :target: http://creativecommons.org/licenses/by/3.0/
98
99  This Live Comp Neurosci Ubuntu/NeuroDebian USB Stick contains free and open-source software provided by Ubuntu GNU/Linux and NeuroDebian_ repositories, which are distributed with their own respective licenses. The distribution of this image with the added computational neuroscience tools is licensed by Cengiz Gunay under a `Creative Commons Attribution 3.0 Unported License <http://creativecommons.org/licenses/by/3.0/>`_. This means you can customize and redistribute this image as long as you say that you originally took it from here.
100
101
102