Created
June 11, 2009 00:44
-
-
Save mhorbul/127626 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -*- shell -*- | |
sudo su - | |
# | |
# Audio: fix ubuntu 9.04 broken sound | |
# | |
apt-get install build-essential xmlto libncurses5-dev | |
export ALSA="1.0.20" | |
cd /tmp | |
wget -O - ftp://ftp.alsa-project.org/pub/driver/alsa-driver-$ALSA.tar.bz2 \ | |
| tar oxj | |
cd alsa-driver-$ALSA | |
./configure --with-cards=hda-intel --with-kernel=/usr/src/linux-headers-$(uname -r) | |
make && make install | |
cd /tmp | |
wget -O - ftp://ftp.alsa-project.org/pub/lib/alsa-lib-$ALSA.tar.bz2 \ | |
| tar oxj | |
cd alsa-lib-$ALSA | |
./configure | |
make && make install | |
cd /tmp | |
wget -O - ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$ALSA.tar.bz2 \ | |
| tar oxj | |
cd alsa-utils-$ALSA | |
./configure --disable-nls | |
make && make install | |
cat >/etc/modprobe.d/alsa-base.conf <<\EOF | |
options snd-pcsp index=-2 | |
alias snd-card-0 snd-hda-intel | |
alias sound-slot-0 snd-hda-intel | |
options snd-hda-intel model=hp-m4 | |
options snd-hda-intel enable_msi=1 | |
EOF | |
cat > /etc/rc.local <<\EOF | |
amixer set Speaker unmute | |
amixer set Speaker 100% | |
amixer set 'PC Beep' mute | |
amixer set Master 70% | |
amixer set 'Input Source' Line | |
EOF | |
# reboot | |
# | |
# Packages | |
# | |
# dev tools | |
apt-get install default-jdk git-svn mercurial darcs cvs maven2 \ | |
rabbitmq-server libmagick++-dev libxpm-dev libgif-dev \ | |
ruby ruby-dev rubygems | |
# medibuntu | |
wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list | |
apt-get -q update | |
apt-get --yes -q --allow-unauthenticated install medibuntu-keyring | |
apt-get -q update | |
apt-get install ubuntu-restricted-extras skype | |
# apps | |
apt-get install cheese tomboy beagle liferea flashplugin-installer | |
# xmonad and gnome-do are nice add ons to gnome | |
apt-get install xmonad gnome-do | |
# configure xmonad like this -> | |
# http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome | |
# as is google's browser | |
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x5a9bf3bb4e5e17b5 | |
echo "deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main" >> /etc/apt/sources.list.d/chromium.list | |
apt-get update | |
apt-get install chromium-browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment