]> git.donarmstrong.com Git - neurodebian.git/blob - tools/makelivecd.sh
initial version for blends-inject
[neurodebian.git] / tools / makelivecd.sh
1 #!bin/sh
2
3 set -e
4
5 # for a fresh build one might want to run:
6 # sudo rm -rf cache/stages_bootstrap chroot/ config/ scripts/ binary* .stage
7
8 # the Debian release to use as a basis for the live-cd
9 nd_basedist="lenny"
10 # the NeuroDebian archive key
11 nd_key="A5D32F012649A5A9"
12 # packages to be installed
13 nd_packages="\
14 amide caret dicomnifti \
15 fsl fsl-doc fslview fslview-doc \
16 iceweasel \
17 lipsia lipsia-doc via-bin \
18 minc-tools nifti-bin odin praat \
19 python-mvpa python-nifti python-pyepl \
20 xmedcon"
21
22
23 lh_config \
24   --apt apt \
25   --apt-recommends disabled \
26   --architecture i386 \
27   --binary-images iso \
28   --binary-indices none \
29   --bootstrap-flavour minimal \
30   --categories "main contrib non-free" \
31   --debian-installer disabled \
32   --distribution ${nd_basedist} \
33   --hostname debian \
34   --iso-application NeuroDebian \
35   --iso-publisher "NeuroDebian; http://neuro.debian.org" \
36   --mirror-bootstrap "http://debian.lcs.mit.edu/debian/" \
37   --packages-lists xfce \
38   --packages "${nd_packages}" \
39   --username neuro \
40   --win32-loader enabled
41
42 # add the NeuroDebian repository to the APT setup
43 echo "deb http://neuro.debian.net/debian ${nd_basedist} main contrib non-free" \
44     > config/chroot_sources/neurodebian.chroot
45 cp config/chroot_sources/neurodebian.chroot config/chroot_sources/neurodebian.binary
46 # and the key
47 gpg --export -a ${nd_key} > config/chroot_sources/neurodebian.chroot.gpg
48 cp config/chroot_sources/neurodebian.chroot.gpg config/chroot_sources/neurodebian.binary.gpg
49
50
51 # use NeuroDebian package cache
52 if [ ! -e "cache/packages_bootstrap" ]; then
53   mkdir -p cache
54   ln -s ../../debian_aptcache/ cache/packages_bootstrap
55 fi