#!/bin/bash ### Simple minded install script for ### FreeGeek Chicago by David Eads ### Updates by Brent Bandegar ### rev 006 ### Get codename from /etc/lsb-release CODENAME=`grep CODENAME /etc/lsb-release | cut -c 18-` echo "################################" echo "# FreeGeek Chicago Installer #" echo "################################" # Default sources.list already has: # main restricted universe multiverse # -security main restricted universe multiverse # -updates main restricted echo "# Commenting out source repositories -- we don't mirror them locally." sed -i 's/deb-src/#deb-src/' /etc/apt/sources.list # Figure out if this part of the script has been run already # TODO: Look at the default sources.list grep "${CODENAME}-updates universe" /etc/apt/sources.list if (($? == 1)); then echo "Adding ${CODENAME} updates line for universe and multiverse" cp /etc/apt/sources.list /etc/apt/sources.list.backup echo "deb http://us.archive.ubuntu.com/ubuntu/ ${CODENAME}-updates universe multiverse" >> /etc/apt/sources.list else echo "# Already added universe and multiverse ${CODENAME}-updates line to sources," fi # Enable Medibuntu Repos if [ -e /etc/apt/sources.list.d/medibuntu.list ]; then echo "# Already added Medibuntu repo, OK." else wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | apt-key add - wget http://www.medibuntu.org/sources.list.d/${CODENAME}.list -O /etc/apt/sources.list.d/medibuntu.list fi # Enable Wine Repo if [ -e /etc/apt/sources.list.d/winehq.list ]; then echo "# Already added Wine repo, OK." else wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | apt-key add - wget http://wine.budgetdedicated.com/apt/sources.list.d/${CODENAME}.list -O /etc/apt/sources.list.d/winehq.list fi # Update everything apt-get -y update && apt-get -y upgrade # Install packages apt-get -y install openoffice.org openoffice.org-gcj openoffice.org-gtk msttcorefonts java-gcj-compat apt-get -y install xubuntu-restricted-extras ca-certificates vlc exaile mplayer mozilla-mplayer libdvdcss2 w32codecs flashplugin-nonfree language-pack-es language-support-es language-pack-gnome-es sl echo "Installation complete -- relax, and watch this STEAM LOCOMOTIVE" sl