]> git.donarmstrong.com Git - neurodebian.git/commitdiff
ENH: adjusted initial_setup and preseed.cfg for wheezy
authorYaroslav Halchenko <debian@onerussian.com>
Fri, 20 Jul 2012 16:44:09 +0000 (12:44 -0400)
committerYaroslav Halchenko <debian@onerussian.com>
Fri, 20 Jul 2012 16:44:09 +0000 (12:44 -0400)
vm/d-i/wheezy/initial_setup
vm/d-i/wheezy/preseed.cfg

index 6c2e5af4ba0a517e7d4e9e442dfe4a963721f401..bdddf3e9b4f2e3fdeab3b6f51ae8416800c514dc 100755 (executable)
@@ -47,12 +47,13 @@ git config --global user.email nd@localhost
 # -----------------
 
 # Add sources.list for backports and neurodebian
-wget -O /etc/apt/sources.list.d/neuro.debian.net.list http://neuro.debian.net/lists/squeeze.us-nh
+wget -O /etc/apt/sources.list.d/neuro.debian.net.list http://neuro.debian.net/lists/wheezy.us-nh
 
-echo "deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free" > /etc/apt/sources.list.d/backports.debian.org.list
+## No backports yet
+## echo "deb http://backports.debian.org/debian-backports wheezy-backports main contrib non-free" > /etc/apt/sources.list.d/backports.debian.org.list
 cat << EOT > /etc/apt/preferences.d/backports.debian.org.pref
 Package: *
-Pin: release a=squeeze-backports
+Pin: release a=wheezy-backports
 Pin-Priority: 200
 EOT
 
@@ -79,11 +80,11 @@ cdarch=${cunamer##*-}
 [ $cdarch = '486' ] && darch='686' || darch=$cdarch
 apt-get install -y linux-headers-2.6-$cdarch
 
-# Forcefully install guest additions from backports so we are
-# compatible with VirtualBox 4.x series
-apt-get install -y -t squeeze-backports virtualbox-ose-guest-dkms \
-       virtualbox-ose-guest-utils  virtualbox-ose-guest-x11 \
-       >| /var/log/initial_setup-dkms.log 2>&1
+## # Forcefully install guest additions from backports so we are
+## # compatible with VirtualBox 4.x series
+## apt-get install -y -t wheezy-backports virtualbox-ose-guest-dkms \
+##     virtualbox-ose-guest-utils  virtualbox-ose-guest-x11 \
+##     >| /var/log/initial_setup-dkms.log 2>&1
 
 # to get all the rest stuff in recommends
 apt-get install -y dkms neurodebian-guest-additions
@@ -112,7 +113,7 @@ adduser brain vboxsf
 find /lib/modules/*$darch -iname vboxsf.ko | grep -q .
 
 apt-get install --no-install-recommends -y \
- gnome-core mc evince bash-completion ntpdate file-roller gnome-utils \
+ gnome-core mc evince bash-completion ntpdate file-roller \
  gnome-themes eog vim reportbug \
  software-center gdebi gedit-plugins gnome-media synaptic menu less libxp6
 
@@ -132,7 +133,7 @@ find /var/cache/apt/archives/ -name '*.deb' -delete
 
 # cleanup unwanted stuff
 # video drivers (all but vesa)
-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+
+apt-get purge -y --force-yes $(apt-cache search --names-only --installed xserver-xorg-video | grep xserver-xorg-video | cut -d ' ' -f 1,1) xserver-xorg-video-vesa+
 apt-get purge -y brasero
 
 # and whatever is obsolete
@@ -140,7 +141,7 @@ apt-get autoremove --purge -y
 
 # custom config
 # use NeuroDebian website as default homepage
-sed -i -e 's,http://www.debian.org,http://neuro.debian.net,g' /etc/chromium-browser/master_preferences
+sed -i -e 's,http://www.debian.org,http://neuro.debian.net,g' /etc/chromium*/master_preferences
 
 # reduce grub timeout to speed up boot of VM
 sed -i -e 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/g' /etc/default/grub
index 4b785664fa24a2d4785fb35b609d80f170fc8b07..4b07195560eafe39f87329606bbdfaf4842fd89c 100644 (file)
@@ -1,17 +1,31 @@
 #### Contents of the preconfiguration file (for squeeze)
 ### Notes:
 ###   WiP: not entirely tested and relies on our local proxy 10.0.0.1:9999 atm
+### Hints:
+###   To get a list of current d-i setting keys, run
+###     sudo debconf-get-selections --installer
+###   on an up-to-date system
 ###
 ### Localization
 # Locale sets language and country.
 d-i debian-installer/locale string en_US
+d-i debian-installer/language string en
+d-i debian-installer/country string US
+d-i debian-installer/keymap string us
+d-i debconf/language string en
 
 # Keyboard selection.
 #d-i console-tools/archs select at
 #d-i console-setup-pc-ekmap/keymap select us
+# Need to set "American English" for "Keymap to use"
 d-i countrychooser/country-name select United States
 # Example for a different keyboard architecture
 #d-i console-keymaps-usb/keymap select mac-usb-us
+d-i console-keymaps-at/keymap select us
+
+# try avoiding even messing with above settings to figure out correct
+# for wheezy and just skip them altogether
+d-i console-tools/archs select skip-config
 
 ### Network configuration
 # netcfg will choose an interface that has link if possible. This makes it