Skip to content

Instantly share code, notes, and snippets.

@repinel
Created February 20, 2016 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save repinel/8f15e5acb4fe8a08ecdd to your computer and use it in GitHub Desktop.
Save repinel/8f15e5acb4fe8a08ecdd to your computer and use it in GitHub Desktop.
My Ubuntu Minimal Desktop script
#!/bin/bash
#
# Ubuntu Minimal Desktop v2.4.1
# Roque Pinel
#
# Based on:
# wget http://minimal-desktop.sublevel21.com/latest-stable.sh
#
if [ $UID -ne 0 ]; then
echo "Running as root."
sudo $0
exit 0
fi
LOG_FILE="ubuntu_minimal.log"
cat /dev/null > $LOG_FILE
echo "Updating the system..."
sudo aptitude update >> $LOG_FILE
sudo aptitude safe-upgrade >> $LOG_FILE
sudo aptitude full-upgrade >> $LOG_FILE
echo "* Installing OpenSSH Server..."
aptitude -y install openssh-server >> $LOG_FILE
echo "* Installing X.org and the Linux Sound base system..."
aptitude -y install alsa-utils sox xinit >> $LOG_FILE
echo "* Installing GNOME and other essentials..."
aptitude -y install gdm gnome-core gnome-themes-selected gnome-themes-ubuntu light-themes indicator-applet-session >> $LOG_FILE
#aptitude -y install wicd >> $LOG_FILE
aptitude -y install network-manager-gnome >> $LOG_FILE
aptitude -y install vim file-roller gcalctool gdebi gnome-screensaver gnome-utils jockey-gtk update-manager evince >> $LOG_FILE
echo "* Installing Firefox..."
aptitude -y install firefox >> $LOG_FILE
echo "* Installing Totem Mozilla Plugin..."
aptitude -y install totem-mozilla >> $LOG_FILE
echo "* Installing Pidgin..."
aptitude -y install pidgin >> $LOG_FILE
echo "* Installing OpenOffice.org..."
aptitude -y install openoffice.org-writer openoffice.org-impress openoffice.org-calc openoffice.org-gtk openoffice.org-style-tango >> $LOG_FILE
echo "* Installing Thunderbird..."
aptitude -y install thunderbird >> $LOG_FILE
echo "* Installing extra themes..."
aptitude -y install gnome-themes gnome-themes-extras gnome-theme-gilouche language-selector ubuntu-artwork >> $LOG_FILE
echo "* Performing some clean-up..."
aptitude -y -f install >> $LOG_FILE
aptitude clean >> $LOG_FILE
echo "* Installing some background applications..."
aptitude -y install g++ "pkg-config" python-gtk2-dev libgtkmm-2.4-dev autoconf subversion cvs git >> $LOG_FILE
echo "* Installing some util applications..."
aptitude -y install gconf-editor gimp gthumb gedit-plugins nautilus-open-terminal >> $LOG_FILE
aptitude -y install meld unrar keepassx notecase >> $LOG_FILE
aptitude -y install checkgmail multiget filezilla amule >> $LOG_FILE
aptitude -y install k3b ktorrent audacity goobox mencoder >> $LOG_FILE
aptitude -y install chromium-browser flashplugin-installer >> $LOG_FILE
aptitude -y install software-center >> $LOG_FILE
echo "* Installing GNOME MPlayer..."
aptitude -y install gnome-mplayer >> $LOG_FILE
sed -i 's/# vo=xv,x11/vo=xv,x11/g' /etc/mplayer/mplayer.conf
echo "* Installing DVD playback support..."
wget -O libdvdcss2.deb http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.10-0.3medibuntu1_i386.deb >> $LOG_FILE
dpkg -i libdvdcss2.deb >> $LOG_FILE
rm libdvdcss2.deb
echo "* Installing NotifyOSD Configuration..."
add-apt-repository ppa:leolik/leolik >> $LOG_FILE
add-apt-repository ppa:amandeepgrewal/notifyosdconfig >> $LOG_FILE
sed -i 's/maverick/lucid/g' /etc/apt/sources.list.d/amandeepgrewal-notifyosdconfig-maverick.list
sed -i 's/maverick/lucid/g' /etc/apt/sources.list.d/leolik-leolik-maverick.list
apt-get update >> $LOG_FILE
apt-get upgrade >> $LOG_FILE
apt-get -y install notifyosdconfig
echo "* Installing Mono and Libraries..."
aptitude -y install mono-runtime
aptitude -y install libmono-winforms2.0-cil
echo "* Installing Bluetooth..."
aptitude -y install gnome-bluetooth rfkill >> $LOG_FILE
cp ./script/disable-bluetooth /etc/init.d/
chmod +x /etc/init.d/disable-bluetooth
update-rc.d disable-bluetooth defaults
echo "* Installing VNC support..."
aptitude -y install vino rdesktop vinagre >> $LOG_FILE
echo "* Installing Clementine..."
add-apt-repository ppa:me-davidsansome/clementine >> $LOG_FILE
aptitude update >> $LOG_FILE
aptitude -y -f install >> $LOG_FILE
aptitude -y install clementine >> $LOG_FILE
echo "* Installing Sun Java 6 JDK..."
add-apt-repository 'deb http://archive.canonical.com/ubuntu maverick partner' >> $LOG_FILE
aptitude update >> $LOG_FILE
aptitude -y install sun-java6-jdk sun-java6-plugin | tee $LOG_FILE
echo "* Installing Skype..."
aptitude -y install skype pulseaudio-module-bluetooth >> $LOG_FILE
echo "* Installing Mendeley Desktop..."
cat "deb http://www.mendeley.com/repositories/xUbuntu_10.10 /" >> /etc/apt/sources.list
aptitude update
aptitude -y install mendeleydesktop
echo "* Installing Battery Status..."
add-apt-repository ppa:iaz/battery-status >> $LOG_FILE
aptitude update >> $LOG_FILE
aptitude -y install battery-status >> $LOG_FILE
echo "* Installing Infrareded Remote Control... [choose Apple Mini on the first screen and None on the second]"
echo "[press any key to continue]"
read dummy
aptitude -y install lirc lirc-x xautomation | tee $LOG_FILE
mkdir /etc/lirc/lirc
echo "* Installing IR Switcher..."
wget -O ir_switcher.deb http://ir-switcher.googlecode.com/files/ir_switcher_0.1_all.deb >> $LOG_FILE
dpkg -i ir_switcher.deb >> $LOG_FILE
rm ir_switcher.deb
echo "* Installing iSight camera..."
add-apt-repository ppa:mactel-support/ppa >> $LOG_FILE
aptitude update >> $LOG_FILE
aptitude upgrade
aptitude -y install isight-firmware-tools
aptitude -y install cheese >> $LOG_FILE
echo "* Installing Wine..."
aptitude -y install wine
echo "* Installing Picasa..."
wget -O picasa.deb http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_i386.deb >> $LOG_FILE
dpkg -i picasa.deb > /dev/null
rm picasa.deb
echo "* Performing some clean-up..."
aptitude -y -f install >> $LOG_FILE
aptitude clean >> $LOG_FILE
echo "* Configuring keyboard..."
cp ./config/hid_apple.conf /etc/modprobe.d/
update-initramfs -u
echo "Install the Wireless Driver Broadcom STA - Broadcom Corporation BCM4321 802.11a/b/g/n when asked."
# EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment