#! /bin/bash -x

cat > /etc/apt/sources.list.d/trinity.list << EOF
deb http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/debian wheezy main
deb-src http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/debian wheezy main
deb http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/debian wheezy main
deb-src http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/debian wheezy main
EOF

echo "test" > /etc/hostname

declare -a PAKETE=("xorg" "xserver-xorg-input-all" "kdebase-trinity" "desktop-base-trinity" \
"kwin-trinity" "kdm-trinity" "kde-i18n-de-trinity" "knotes-trinity" "kcalc-trinity");

aptitude update && aptitude -y install ${PAKETE[@]}

# The paket "xorg" installs all video servers, but I only need the vmware-server
# So I remove all other servers
aptitude -y purge xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati \
xserver-xorg-video-chips xserver-xorg-video-cirrus xserver-xorg-video-i128 xserver-xorg-video-mach64 xserver-xorg-video-mga \
xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-r128 \
xserver-xorg-video-radeon xserver-xorg-video-rendition xserver-xorg-video-s3 xserver-xorg-video-s3virge \
xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sis xserver-xorg-video-sisusb \
xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-intel \
xserver-xorg-video-voodoo
# Now X11 and kdm-trinity is up and running
