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 # Needs to be assured since it got reset to debian
20 sed -i -e 's/^127\.0\.1\.1.*/127.0.1.1\tneurodebian/g' /etc/hosts
22 # all file in one partition
29 # Do a minimal install
30 # --------------------
32 # All files in one partition/
33 # just base system, run selection, but no tasks (not even 'Standard system')
35 # set root password to 'neurodebian' too
36 #echo "Set root passwd:"
39 apt-get install --no-install-recommends -y etckeeper
42 git config --global user.name NeuroDebian
43 git config --global user.email nd@localhost
48 # Add sources.list for backports and neurodebian
49 wget -O /etc/apt/sources.list.d/neuro.debian.net.list http://neuro.debian.net/_static/neurodebian.squeeze.us-nh.sources.list
51 echo "deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free" > /etc/apt/sources.list.d/backports.debian.org.list
52 cat << EOT > /etc/apt/preferences.d/backports.debian.org.pref
54 Pin: release a=squeeze-backports
59 # Backports' Release files signed with both ftpmaster and old backports keys
60 # That causes APT to spit out a warning, but to not confuse users, lets simply
61 # obtain that key if possible
62 gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C && \
63 gpg --export 16BA136C | apt-key add - || :
65 apt-get install -y --allow-unauthenticated neurodebian-keyring
68 # to cheat the VM check
70 # to get all the stuff in recommends
71 apt-get install -y dkms neurodebian-guest-additions
73 apt-get install --no-install-recommends -y \
74 gnome-core mc evince bash-completion ntpdate file-roller gnome-utils \
75 gnome-themes eog vim \
76 software-center gdebi gedit-plugins gnome-media synaptic menu less libxp6
78 # intermediate cleanup to prevent virtual harddrive from fragmenting too much
79 find /var/cache/apt/archives/ -name '*.deb' -delete
81 # cleanup unwanted stuff
82 # video drivers (all but vesa)
83 apt-get purge -y $(apt-cache search --names-only --installed xserver-xorg-video | grep xserver-xorg-video | cut -d ' ' -f 1,1) xserver-xorg-video-vesa+
84 apt-get purge -y brasero
86 # and whatever is obsolete
87 apt-get autoremove --purge -y
90 # use NeuroDebian website as default homepage
91 sed -i -e 's,http://www.debian.org,http://neuro.debian.net,g' /etc/chromium-browser/master_preferences
93 # reduce grub timeout to speed up boot of VM
94 sed -i -e 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/g' /etc/default/grub
97 # finally configure geomirror for APT and disable deb-src lists
98 sed -i -e "s/10.0.0.1:9999/$(dpkg --print-architecture)-geomirror.debian.net/" \
99 -e "s/^deb-src/#deb-src/" /etc/apt/sources.list
101 etckeeper commit "Initial VM setup done"
103 # Create a link to automatically mounted Shared folder
104 # Created by the Welcome Wizard
105 #sudo -u brain ln -s /mnt/host /home/brain/