From 84f7d51479bed5e5a3f4e886ed4f31981c8bed06 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Mon, 11 May 2009 20:08:19 +0200 Subject: [PATCH] Add tools to build a live-cd (needs live-helper). --- sphinx/livecd.rst | 2 ++ tools/makelivecd.sh | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 sphinx/livecd.rst create mode 100644 tools/makelivecd.sh diff --git a/sphinx/livecd.rst b/sphinx/livecd.rst new file mode 100644 index 0000000..5ea637e --- /dev/null +++ b/sphinx/livecd.rst @@ -0,0 +1,2 @@ +.. literalinclude:: ../../tools/makelivecd.sh + :language: sh diff --git a/tools/makelivecd.sh b/tools/makelivecd.sh new file mode 100644 index 0000000..f872460 --- /dev/null +++ b/tools/makelivecd.sh @@ -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 -- 2.39.2