7 # Standard Debian install
9 # prepare on hydra and use debproxy for speed
11 # have dedicated hard-drives for swap and home
15 # hostname: neurodebian
18 # all file in one partition
25 # Do a minimal install
26 # --------------------
28 # All files in one partition/
29 # just base system, run selection, but no tasks (not even 'Standard system')
31 # set root password to 'neurodebian' too
32 echo "Set root passwd:"
35 apt-get install --no-install-recommends etckeeper
38 git config --global user.name NeuroDebian
39 git config --global user.email nd@localhost
44 # Add sources.list for backports and neurodebian
45 wget -O /etc/apt/sources.list.d/neuro.debian.net.list http://neuro.debian.net/_static/neurodebian.squeeze.us-nh.sources.list
47 echo "deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free" > /etc/apt/sources.list.d/backports.debian.org.list
48 cat << EOT > /etc/apt/preferences.d/backports.debian.org.pref
50 Pin: release a=squeeze-backports
55 apt-get install neurodebian-keyring
58 # to cheat the VM check
60 # to get all the stuff in recommends
61 apt-get install dkms neurodebian-guest-additions
63 apt-get install --no-install-recommends \
64 gnome-core mc evince bash-completion ntpdate file-roller gnome-utils \
65 gnome-themes eog vim \
66 software-center gdebi gedit-plugins gnome-media synaptic menu less
68 # intermediate cleanup to prevent virtual harddrive from fragmenting too much
69 find /var/cache/apt/archives/ -name '*.deb' -delete
71 # cleanup unwanted stuff
72 # video drivers (all but vesa)
73 apt-get purge $(apt-cache search --names-only --installed xserver-xorg-video | grep xserver-xorg-video | cut -d ' ' -f 1,1) xserver-xorg-video-vesa+
76 # and whatever is obsolete
77 apt-get autoremove --purge
80 # use NeuroDebian website as default homepage
81 sed -i -e 's,http://www.debian.org,http://neuro.debian.net,g' /etc/chromium-browser/master_preferences
83 # reduce grub timeout to speed up boot of VM
84 sed -i -e 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/g' /etc/default/grub
87 # finally configure geomirror for APT and disable deb-src lists
88 sed -i -e "s/10.0.0.1:9999/$(dpkg --print-architecture)-geomirror.debian.net/" \
89 -e "s/^deb-src/#deb-src/" /etc/apt/sources.list
91 etckeeper commit "Initial VM setup done"