-#!bin/sh
+#!/bin/bash
set -e
# sudo rm -rf cache/stages_bootstrap chroot/ config/ scripts/ binary* .stage
# the Debian release to use as a basis for the live-cd
-nd_basedist="lenny"
+nd_basedist="squeeze"
# the NeuroDebian archive key
-nd_key="A5D32F012649A5A9"
+# nd_key="A5D32F012649A5A9"
+# we will just use our key file
+
# packages to be installed
nd_packages="\
+gnome-core mc evince bash-completion ntpdate file-roller gnome-utils \
+gnome-themes eog vim \
+software-center gdebi gedit-plugins gnome-media synaptic menu less \
amide caret dicomnifti \
fsl fsl-doc fslview fslview-doc \
iceweasel \
lipsia lipsia-doc via-bin \
minc-tools nifti-bin odin praat \
python-mvpa python-nifti python-pyepl \
-xmedcon"
+xmedcon \
+neurodebian-keyring
+"
-lh_config \
+lb config \
--apt apt \
--apt-recommends disabled \
--architecture i386 \
- --binary-images iso \
+ --archive-areas "main contrib non-free" \
+ --binary-images iso-hybrid \
--binary-indices none \
--bootstrap-flavour minimal \
- --categories "main contrib non-free" \
--debian-installer disabled \
--distribution ${nd_basedist} \
- --hostname debian \
- --iso-application NeuroDebian \
- --iso-publisher "NeuroDebian; http://neuro.debian.org" \
- --mirror-bootstrap "http://debian.lcs.mit.edu/debian/" \
- --packages-lists xfce \
+ --hostname neurodebian \
+ --iso-application "NeuroDebian Live" \
+ --iso-preparer "NeuroDebian v.6.0.0; http://neuro.debian.net" \
+ --iso-publisher "NeuroDebian project; http://neuro.debian.net" \
+ --mirror-bootstrap "http://debproxy:9999/debian/" \
+ --mirror-chroot "http://debproxy:9999/debian/" \
+ --mirror-chroot-security "http://debproxy:9999/security/" \
+ --security true \
--packages "${nd_packages}" \
- --username neuro \
+ --username brain \
--win32-loader enabled
+ # --mirror-bootstrap "http://debian.lcs.mit.edu/debian/" \
+ # --packages-lists xfce \
+
+# May be
+# Deploy 1:1 copy of the running Live system
+# --debian-installer live
+
+# Would be nice to have it utterly useful, but rescue is too bloated, may be
+# at least forensics
+# --packages-lists
+
+# Do we need any of the additional tools from live.debian.net?
+# --repositories live.debian.net \
+
+
# add the NeuroDebian repository to the APT setup
echo "deb http://neuro.debian.net/debian ${nd_basedist} main contrib non-free" \
- > config/chroot_sources/neurodebian.chroot
-cp config/chroot_sources/neurodebian.chroot config/chroot_sources/neurodebian.binary
+ >| config/chroot_sources/neurodebian.chroot
+cp config/chroot_sources/neurodebian.{chroot,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
+install --mode=644 -t config/chroot_sources \
+ $(dirname $0)/../keys/neurodebian-archive-keyring.gpg
+cp config/chroot_sources/neurodebian.{chroot,binary}.gpg
-# use NeuroDebian package cache
-if [ ! -e "cache/packages_bootstrap" ]; then
- mkdir -p cache
- ln -s ../../debian_aptcache/ cache/packages_bootstrap
-fi
+## use NeuroDebian package cache
+#if [ ! -e "cache/packages_bootstrap" ]; then
+# mkdir -p cache
+# ln -s ../../debian_aptcache/ cache/packages_bootstrap
+#fi