~darkxst/+junk/iso-build-script

« back to all changes in this revision

Viewing changes to livecd-script-chroot.sh

  • Committer: Jeremy Bicha
  • Date: 2012-09-01 22:19:36 UTC
  • Revision ID: jbicha@ubuntu.com-20120901221936-14yrhe6o4odo6469
initial commit, based off Jan Hoffmann's work for the Ubuntu
GNOME Shell Remix

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# mount file systems and set up environment
 
4
mount -t proc none /proc
 
5
mount -t sysfs none /sys
 
6
mount -t devpts none /dev/pts
 
7
export HOME=/root
 
8
export LC_ALL=C
 
9
alias ls="ls --color -F"
 
10
 
 
11
# set up environment
 
12
dbus-uuidgen > /var/lib/dbus/machine-id
 
13
dpkg-divert --local --rename --add /sbin/initctl
 
14
ln -s /bin/true /sbin/initctl
 
15
 
 
16
# add ppa signing key
 
17
#apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9C245DE2
 
18
 
 
19
# update package sources
 
20
apt-get update
 
21
 
 
22
# remove unity-specific packages and install gnome-shell-specific ones
 
23
# this list = dependencies of ubuntu-dektop on a system with only ubuntu-standard and gnomeshell-desktop, plus ubuntu-desktop
 
24
apt-get -y --purge remove activity-log-manager-common activity-log-manager-control-center adium-theme-ubuntu appmenu-gtk appmenu-gtk3 appmenu-qt branding-ubuntu checkbox checkbox-qt cmap-adobe-japan2 compiz compizconfig-backend-gconf compiz-core compiz-gnome compiz-plugins-default compiz-plugins-main-default dmz-cursor-theme firefox* fonts-opensymbol gir1.2-gdata-0.0 gir1.2-goa-1.0 grcompiler gtk2-engines-murrine gtk3-engines-unico humanity-icon-theme hunspell-be hunspell-ru hunspell-sv-se landscape-client-ui-install libbamf3-0 libboost-date-time1.49.0 libboost-serialization1.49.0 libcmis-0.2-2 libcompizconfig0 libcurl3 libdconf-dbus-1-0 libdconf-qt0 libdecoration0 libexttextcat-1.0-0 libexttextcat-data libfreerdp1 libfreerdp-plugins-standard libglew1.8 libglewmx1.7 libgnome-menu2 libgtkspell-3-0 libhyphen0 libjodconverter-java liblightdm-gobject-1-0 libmatchbox1 libmythes-1.2-0 libnux-3.0-0 libnux-3.0-common libqt4-designer libqt4-help libqt4-scripttools libqt4-sql-mysql libqt4-svg libqt4-test  libqtassistantclient4 libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-emailmerge libreoffice-gnome libreoffice-gnome libreoffice-gnome libreoffice-gtk libreoffice-gtk libreoffice-gtk libreoffice-gtk3 libreoffice-help-en-us libreoffice-impress libreoffice-math libreoffice-style-human libreoffice-style-tango libreoffice-voikko libreoffice-writer libreoffice-zemberek libsdl1.2debian libssh-4 libunity-core-6.0-5 libunity-misc4 libvncserver0 libwnck22 libwnck-common libxsettings-client0 lightdm light-themes mozilla-libreoffice myspell-pl myspell-uk notify-osd notify-osd-icons nux-tools overlay-scrollbar overlay-scrollbar-gtk2 overlay-scrollbar-gtk3 python3-lxml python3-uno python3-xdg python-debtagshw python-egenix-mxdatetime python-egenix-mxtools python-gconf python-libproxy python-lxml python-sip python-uno python-virtkey remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc software-center software-center-aptdaemon-plugins thunderbird thunderbird-globalmenu thunderbird-gnome-support ubiquity ubiquity-frontend-gtk ubiquity-ubuntu-artwork ubuntu-artwork ubuntu-desktop ubuntu-mono ubuntuone-client ubuntuone-client-gnome ubuntuone-control-panel ubuntuone-control-panel-common ubuntuone-control-panel-qt ubuntuone-couch ubuntuone-installer ubuntu-sounds ubuntu-sso-client ubuntu-sso-client-qt ubuntu-wallpapers ubuntu-wallpapers-quantal unity unity-asset-pool unity-common unity-greeter unity-lens-applications unity-lens-files unity-lens-music unity-lens-video unity-scope-gdocs unity-scope-musicstores unity-scope-video-remote unity-services unoconv uno-libs3 update-manager ure xfonts-mathml xul-ext-ubufox
 
25
 
 
26
apt-get -y --purge install ubuntu-gnome-desktop indicator-datetime ubiquity-frontend-gtk ubiquity-ubuntu-artwork
 
27
 
 
28
# upgrade packages
 
29
apt-get -y upgrade
 
30
apt-get -y dist-upgrade
 
31
 
 
32
# remove all kernels and install current one (ensure that only one kernel is installed)
 
33
apt-get -y --purge remove linux-image-*
 
34
apt-get -y install linux-generic
 
35
apt-get -y autoremove
 
36
 
 
37
# clean system, revert environment changes
 
38
apt-get clean
 
39
rm /sbin/initctl
 
40
dpkg-divert --rename --remove /sbin/initctl
 
41
 
 
42
# unmount file systems
 
43
umount /proc/sys/fs/binfmt_misc
 
44
umount /proc
 
45
umount /sys
 
46
umount /dev/pts
 
47
 
 
48
# quit the chroot and let the other script take over
 
49
exit