From 9148ec9173d9c940a954c2283762a0b4b01b7eff Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 26 Nov 2010 13:03:18 -0500 Subject: [PATCH] moving vm tools under vm/tools, deprecating nd_setupguestos replaced with vm/d-i/tools/initial_setup now tools/ got overpopulated with things relevant for builders, live, and VM. it might unnecessarily complicate debian/*install, thus moving into corresponding directory under vm/tools --- tools/nd_setupguestos | 91 -------------------------- vm/d-i/tools/initial_setup | 0 {tools => vm/tools}/nd_compactvdi | 0 {tools => vm/tools}/nd_exportappliance | 0 4 files changed, 91 deletions(-) delete mode 100644 tools/nd_setupguestos mode change 100644 => 100755 vm/d-i/tools/initial_setup rename {tools => vm/tools}/nd_compactvdi (100%) rename {tools => vm/tools}/nd_exportappliance (100%) diff --git a/tools/nd_setupguestos b/tools/nd_setupguestos deleted file mode 100644 index f14fb11..0000000 --- a/tools/nd_setupguestos +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/bash - -# play safe -set -e -set -u - -# Standard Debian install - -# prepare on hydra and use debproxy for speed - -# have dedicated hard-drives for swap and home - -# expert install - -# hostname: neurodebian -# domain: '' - -# all file in one partition - -# root: not there -# user: brain -# pwd: neurodebian - - -# Do a minimal install -# -------------------- - -# All files in one partition/ -# just base system, run selection, but no tasks (not even 'Standard system') - -# set root password to 'neurodebian' too -echo "Set root passwd:" -passwd root - -apt-get install --no-install-recommends etckeeper - -# setup etckeeper -git config --global user.name NeuroDebian -git config --global user.email nd@localhost - -# install new stuff -# ----------------- - -# Add sources.list for backports and neurodebian -wget -O /etc/apt/sources.list.d/neuro.debian.net.list http://neuro.debian.net/_static/neurodebian.squeeze.us-nh.sources.list - -echo "deb http://backports.debian.org/debian-backports squeeze-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-Priority: 200 -EOT - -apt-get update -apt-get install neurodebian-keyring -apt-get update - -# to cheat the VM check -touch /dev/vboxguest -# to get all the stuff in recommends -apt-get install dkms neurodebian-guest-additions - -apt-get install --no-install-recommends \ - 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 - -# intermediate cleanup to prevent virtual harddrive from fragmenting too much -find /var/cache/apt/archives/ -name '*.deb' -delete - -# cleanup unwanted stuff -# video drivers (all but vesa) -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+ -apt-get purge brasero - -# and whatever is obsolete -apt-get autoremove --purge - -# 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 - -# reduce grub timeout to speed up boot of VM -sed -i -e 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/g' /etc/default/grub -update-grub - -# finally configure geomirror for APT and disable deb-src lists -sed -i -e "s/10.0.0.1:9999/$(dpkg --print-architecture)-geomirror.debian.net/" \ - -e "s/^deb-src/#deb-src/" /etc/apt/sources.list - -etckeeper commit "Initial VM setup done" diff --git a/vm/d-i/tools/initial_setup b/vm/d-i/tools/initial_setup old mode 100644 new mode 100755 diff --git a/tools/nd_compactvdi b/vm/tools/nd_compactvdi similarity index 100% rename from tools/nd_compactvdi rename to vm/tools/nd_compactvdi diff --git a/tools/nd_exportappliance b/vm/tools/nd_exportappliance similarity index 100% rename from tools/nd_exportappliance rename to vm/tools/nd_exportappliance -- 2.39.5