#!/bin/sh

mv /etc/apt/sources.list /etc/apt/sources.list.orig

echo "#deb cdrom:[Kubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://de.archive.ubuntu.com/ubuntu/ hardy main restricted
#deb-src http://at.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
#deb-src http://at.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://de.archive.ubuntu.com/ubuntu/ hardy universe
#deb-src http://at.archive.ubuntu.com/ubuntu/ hardy universe
deb http://de.archive.ubuntu.com/ubuntu/ hardy-updates universe
#deb-src http://at.archive.ubuntu.com/ubuntu/ hardy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ hardy multiverse
#deb-src http://at.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://de.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
#deb-src http://at.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://at.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
#deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
#deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
#deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse

## Medibuntu - Ubuntu 8.04 LTS "hardy heron"
## Please report any bug on https://bugs.launchpad.net/medibuntu/
deb http://packages.medibuntu.org/ hardy free non-free
#deb-src http://packages.medibuntu.org/ hardy free non-free
" > /etc/apt/sources.list

apt-get -y update

apt-get -y --force-yes install medibuntu-keyring

apt-get -y update

apt-get -y dist-upgrade

apt-get -y install sun-java6-jre sun-java6-plugin

apt-get -y install libdvdread3 libdvdcss2 w32codecs

apt-get -y install msttcorefonts gsfonts-x11
fc-cache -f -v
apt-get -y install movixmaker-2 sox lame

apt-get -y install pptp-linux firefox

apt-get -y install language-support-de gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse  gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse mplayer-nogui libdvdnav4 libxine1-ffmpeg gstreamer0.10-plugins-base gstreamer0.10-plugins-good

apt-get -y install gstreamer0.10-pitfdll

apt-get -y install flashplugin-nonfree ttf-xfree86-nonfree

apt-get -y install acroread mozilla-acroread acroread-plugins
apt-get -y install inkscape pstoedit gimp gimp-data-extras
apt-get -y install mozilla-mplayer

apt-get -y install vcdimager cdrdao subtitleripper mjpegtools ogmtools

apt-get -y install rar unrar vim mc tcpdump nmap nfs-common

apt-get -y install skype

apt-get -y install openvpn scribus quanta umbrello lynx pwgen smbfs qdvdauthor vlc mozilla-plugin-vlc

# In the menu bar of konqueror click settings (Next to help) --> configure konqueror --> scroll down the side to plugins --> click scan for new plugins

dpkg -l ubuntu-desktop &> /dev/null
UBUNTU=$?

if (( $UBUNTU == 0 ))
then
  echo "UBUNTU"
  apt-get -y install gxine
else
  echo "KUBUNTU"
## Only for kubuntu
  apt-get -y install libk3b2-extracodecs digikam-doc digikam

  #echo 'KDE_NO_IPV6=1' >> /etc/environment

  #echo "WICHTIG: Kaffeine auf eingebetteten MPlayer umstellen. Have fun!" |less

fi


