]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Add tools to build a live-cd (needs live-helper).
authorMichael Hanke <michael.hanke@gmail.com>
Mon, 11 May 2009 18:08:19 +0000 (20:08 +0200)
committerMichael Hanke <michael.hanke@gmail.com>
Mon, 11 May 2009 18:08:19 +0000 (20:08 +0200)
sphinx/livecd.rst [new file with mode: 0644]
tools/makelivecd.sh [new file with mode: 0644]

diff --git a/sphinx/livecd.rst b/sphinx/livecd.rst
new file mode 100644 (file)
index 0000000..5ea637e
--- /dev/null
@@ -0,0 +1,2 @@
+.. literalinclude:: ../../tools/makelivecd.sh
+  :language: sh
diff --git a/tools/makelivecd.sh b/tools/makelivecd.sh
new file mode 100644 (file)
index 0000000..f872460
--- /dev/null
@@ -0,0 +1,37 @@
+# the Debian release to use as a basis for the live-cd
+nd_basedist="lenny"
+# the NeuroDebian archive key
+nd_key="A5D32F012649A5A9"
+# packages to be installed
+nd_packages="dicomnifti lipsia fsl fslview nifti-bin caret odin"
+
+# perform basic setup for the live-cd
+lh_config \
+  --apt apt \
+  --apt-recommends disabled \
+  --architecture i386 \
+  --binary-images iso \
+  --binary-indices none \
+  --bootstrap-flavour minimal \
+  --debian-installer disabled \
+  --distribution ${nd_basedist} \
+  --hostname debian \
+  --iso-application NeuroDebian \
+  --iso-publisher "Debian Experimental Psychology Project; http://alioth.debian.org/projects/pkg-exppsy" \
+  --mirror-bootstrap "http://ftp.uni-magdeburg.de/aftp/projects/linux/debian/" \
+  --packages-lists lxde \
+  --categories "main contrib non-free" \
+  --username neuro \
+  --packages ${nd_packages}
+
+# add the NeuroDebian repository to the APT setup
+echo "deb http://apsy.gse.uni-magdeburg.de/debian ${nd_basedist} main contrib non-free" \
+    > config/chroot_sources/neurodebian.chroot
+cp config/chroot_sources/neurodebian.chroot config/chroot_sources/neurodebian.binary
+# and the key
+gpg --export -a ${nd_key} > config/chroot_sources/neurodebian.chroot.gpg
+cp config/chroot_sources/neurodebian.chroot.gpg config/chroot_sources/neurodebian.binary.gpg
+
+
+# build the live-cd with some noise
+lh_build --verbose