#!/bin/bash ##################################################################################################### # Install script to add to Ubuntu Mini Remix - http://www.ubuntu-mini-remix.org - # # in order to get a Ubuntu Openbox Remix # # More informations from a script where I started to pick ideas: # # http://bazaar.launchpad.net/~lubuntu-desktop/+junk/lubuntu-tools/view/head:/iso/lubuntu-build.sh # # Reviewed and improved by captnfab # ##################################################################################################### set -eu # Be strict export LC_ALL=C CODENAME=$(lsb_release -cs) ## Add repositories # We might need to have add-apt-repository (or not) # apt-get -q -y install python-software-properties # Meets echo "deb http://ppa.launchpad.net/meets/ppa/ubuntu ${CODENAME} main #openbox-menu" > /etc/apt/sources.list.d/meets.list apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C84C67E9 # Tiheum echo "deb http://ppa.launchpad.net/tiheum/equinox/ubuntu ${CODENAME} main #faenza-icon-theme" > /etc/apt/sources.list.d/tiheum.list apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4631BBEA # danielrichter2007 echo "deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu ${CODENAME} main #grub-customizer" > /etc/apt/sources.list.d/danielrichter.list apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3F055C03 # Medibuntu wget -q -O /etc/apt/sources.list.d/medibuntu.list "http://www.medibuntu.org/sources.list.d/${CODENAME}.list" apt-get -q update apt-get --yes -q --allow-unauthenticated install medibuntu-keyring apt-get -q update ## Updates and installs # Update in-chroot package database apt-get -q update # Install French language packs apt-get -q -y install wfrench firefox-locale-fr language-pack-fr language-pack-fr-base language-pack-gnome-fr language-pack-gnome-fr-base manpages-fr # Install headers apt-get -q -y install linux-headers-generic # Update the system # apt-get -q -y dist-upgrade // as a test will not update for this time # Install core packages //ones not yet installed into Ubuntu Mini Remix apt-get -q -y --purge install laptop-detect # Install Xorg / xserver for the graphical environment apt-get -q -y install xorg gcc-4.6-locales libglide3 mesa-utils xfonts-100dpi xfonts-75dpi xfonts-scalable gcc-4.6 x11-utils # Install driver and device to setup the touchpad on laptops - and laptop related apt-get -q -y install xserver-xorg-input-synaptics xserver-xorg-input-mtrack gpointing-device-settings laptop-mode-tools # Install graphical package manager apt-get -q -y install synaptic aptdaemon ## option for the time being : update-notifier # Install a few more packages for the system apt-get -q -y install xdg-user-dirs xdg-user-dirs-gtk upower gnome-system-tools gnome-time-admin policykit-desktop-privileges libpam-ck-connector gnome-keyring scim # Install a session manager apt-get -q -y install lightdm lightdm-gtk-greeter mythbuntu-lightdm-theme ## changing mythbuntu-lightdm-theme background for our use for the time being # Install plymouth along with a theme apt-get -q -y install plymouth plymouth-label plymouth-theme-solar plymouth-theme-text # Install packages for the Openbox environment setup apt-get -q -y install openbox sakura obconf obmenu hsetroot xcompmgr xsnow feh tint2 pcmanfm lxappearance lxshortcut lxsession-edit lxrandr libjpeg-progs python-xdg # Install openbox-menu with --force-yes because it is not authentified apt-get -q --force-yes --allow-unauthenticated install openbox-menu # Install packages for the look and feel in the desktop apt-get -q -y install gtk2-engines-pixbuf gtk2-engines-murrine murrine-themes hicolor-icon-theme gnome-icon-theme gnome-icon-theme-full faenza-icon-theme dmz-cursor-theme # gtk2-engines is already in the Ubuntu Mini Remix ## faenza-cupertino icon-theme recolored from tiheum's faenza-icon-theme - for now I have it in the etcskel tarball #wget -q -c -P /tmp http://gnome-look.org/CONTENT/content-files/129008-Faenza-Cupertino.tar.gz #mkdir -p /etc/skel/.icons #tar xvzf /tmp/129008-Faenza-Cupertino.tar.gz -C /etc/skel/.icons #rm -f /tmp/129008-Faenza-Cupertino.tar.gz # Install system and hardware related packages apt-get -q -y install acpid apmd sdparm ethtool wireless-tools wpasupplicant linux-firmware-nonfree hardinfo ## to be continued # Packages for network apt-get -q -y install libatm1 network-manager network-manager-gnome netplug tcpd tcpdump ppp pppconfig pppoe sshfs ssh ssh-import-id openssl # Install drivers to test the distro in Virtualbox with possibly a good resolution apt-get -q -y install virtualbox-guest-utils virtualbox-guest-x11 # Install alsa packages, gstreamer and such apt-get -q -y install alsa-base alsa-oss alsa-tools alsa-utils gnome-alsamixer volumeicon-alsa gstreamer0.10-alsa gstreamer-tools gstreamer0.10-ffmpeg gstreamer0.10-plugins-base gstreamer0.10-plugins-bad gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-pulseaudio gstreamer0.10-tools gstreamer0.10-x libgstreamer-plugins-bad0.10-0 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 gir1.2-gstreamer-0.10 # A few small text mode utilities apt-get -q -y install scrot irssi lftp testdisk foremost pastebinit htop mc wodim # Some graphical applications apt-get -q -y install firefox xchat geany file-roller geeqie galculator epdfview # Some sets of fonts apt-get -q -y install fonts-droid fonts-liberation ttf-dejavu # Packages for install time apt-get -q -y install gparted ubiquity ubiquity-casper ubiquity-frontend-gtk ubiquity-ubuntu-artwork # Additional and for the time being, with permission of Julien Lavergne - thanks - # apt-get -q -y install ubiquity-slideshow-lubuntu // tried but that didn't change the black background in Ubiquity # List borrowed from Lubuntu apt-get -q -y install software-properties-gtk language-selector-gnome lxkeymap jockey-gtk cifs-utils # List borrowed from Lubuntu core - http://packages.ubuntu.com/precise/lubuntu-core apt-get -q -y install anacron bc ca-certificates ghostscript-x inputattach nvidia-common ttf-freefont zip acpi-support avahi-daemon kerneloops-daemon libnss-mdns pcmciautils ## paquets à installer peut-être... à voir →→ ## blueman bluez bluez-alsa bluez-cups ttf-ubuntu-font-family # some packages I want to have (need to be spread in categories as time comes) apt-get -q -y install gksu gfxboot grub-customizer libgtk2.0-bin librsvg2-common gvfs gnupg-agent gnupg2 sound-theme-freedesktop p7zip-full unzip reiserfsprogs jfsutils ntfsprogs ntp rfkill usb-modeswitch xterm deborphan dialog desktop-file-utils gvfs-backends gvfs-fuse pm-utils apport-gtk ibus # Install configuration files for Openbox along with openbox-menu, tint2 and a bit more wget -q -c -P /tmp http://meets.free.fr/debian/configurations/OBUbuntu-etcskel.tar.xz tar xvJf /tmp/OBUbuntu-etcskel.tar.xz -C / rm -f /tmp/OBUbuntu-etcskel.tar.xz # Install two desktop launchers (My Home and Trash) wget -q -c -P /tmp http://meets.free.fr/debian/configurations/OBUbuntu-desktop-launchers.tar.xz tar xvJf /tmp/OBUbuntu-desktop-launchers.tar.xz -C / rm -f /tmp/OBUbuntu-desktop-launchers.tar.xz # Install obsession from mimas development webspace - while it is not yet packaged for Ubuntu # I will probably copy a binary ready to use to /usr/local # http://code.google.com/p/mimarchlinux/ wget -q -c -P /tmp http://meets.free.fr/debian/configurations/OBUbuntu-obsession.tar.xz tar xvJf /tmp/OBUbuntu-obsession.tar.xz -C / rm -f /tmp/OBUbuntu-obsession.tar.xz # Install modified lightdm-theme Mythbuntu and background images wget -q -c -P /tmp http://meets.free.fr/debian/configurations/OBUbuntu-themes.tar.xz tar xvJf /tmp/OBUbuntu-themes.tar.xz -C / rm -f /tmp/OBUbuntu-themes.tar.xz # ZRAM apt-get -q -y install zram-config ## / Ne pas oublier de configurer le fichier quivabien pour avoir zram dans le live - un fichier est sous squashfs-root/usr/share/initramfs-tools/conf.d avec un fichier "compcache" et l'autre dans quashfs-root/etc/initramfs-tools/initramfs.conf wget -q -c -P /tmp http://meets.free.fr/debian/configurations/OBUbuntu-Zram-live.tar.xz tar xvJf /tmp/OBUbuntu-Zram-live.tar.xz -C / rm -f /tmp/OBUbuntu-Zram-live.tar.xz # Remove old kernels apt-get remove --purge -q -y $(dpkg -l 'linux-image-*' | grep ^ii | head -1 | awk '{print $2}') ## Reconfigure a few items # If /var/lock is missing Ubiquity is not started mkdir var/lock # If virtualbox-dkms is installed the guest graphical driver is not used apt-get -q -y --purge remove virtualbox-dkms # If this file is in the system there is an ugly "Other" empty submenu in Applications rm -f usr/share/applications/synaptic-kde.desktop # attendre deux secondes et s'auto-détruire sleep 2 rm -f /OBUbuntu.sh