#!/bin/sh
# 
# Updates for Fedora 7
# This script must be run as root.
# For more details, see 
# Fedora 7 Installation Guide
# http://www.my-guides.net/en/content/view/59/26/
# For multimedia additions, see
# Fedora 7: Installing multimedia Support
# http://fedoranews.org/cms/node/2853
# ===========================================================

uid=`whoami`
if [ "$uid" != "root" ]
then
	echo "You must be root to run this script."
	exit 1
fi


# Start with repository updates
#-------------------------------

# FreshRPMs
echo "Installing FreshRPMs repo"
rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/7/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
rpm --import http://freshrpms.net/RPM-GPG-KEY-freshrpms

# Livna
echo "Installing Livna repo"
rpm -ivh http://rpm.livna.org/livna-release-7.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna

# ATrpms - provides better MythTV support, among others
# echo "Installing ATrpms repo"
rpm -ivh http://dl.atrpms.net/f7-i386/atrpms/stable/atrpms-package-config-118-1.fc7.i386.rpm
rpm -import http://atrpms.net/RPM-GPG-KEY.atrpms

# Flash Player Repo
# echo "Installing Flash Player repo"
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm


# Microsoft Fonts
# -----------------------------
echo "Installing Microsoft Fonts"
rpm -ivh http://www.my-guides.net/downloads/msttcorefonts-2.0-1.noarch.rpm
service xfs restart


# Add Browser plugins
#-------------------------------

# Adobe Reader plugin
echo "Installing Adobe Reader plugin (this one will take awhile)"
rpm -ivh http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.1/enu/AdobeReader_enu-8.1.1-1.i486.rpm

# Install Flash Player Plugin
echo "Installing Adobe Reader plugin"
# rpm -ivh http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-9.0.48.0-release.i386.rpm
yum -y install flash-plugin

# MPlayer plugin
echo "Installing Mplayer plugin"
yum -y install --enablerepo=freshrpms mplayerplug-in


# Graphics
#-------------------------------
echo "Installing Dia and GQview"
yum -y install dia gqview


# Multimedia
#-------------------------------

# GStreamer plugins and ffmpeg
echo "Installing GStreamer Plugins and ffmpeg."
yum -y install gstreamer-plugins-ugly ffmpeg

# XMMS w/MP3
echo "==============================================================="
echo "Not installing xmms with MP3 support. (Broken as of 2008-01-27)"
# yum -y --enablerepo=freshrpms install xmms xmms-libs xmms-mp3
echo "==============================================================="

# MPlayer
echo "Installing MPlayer w/DVD playback."
yum -y --enablerepo=freshrpms install mplayer mplayer-skins mplayer-fonts libdvdcss mplayer-gui

# Get rid of Totem so we can use Xine
echo "Removing Totem to replace with Xine"
yum -y remove totem totem-plparser

# Xine
echo "Installing Xine w/DVD playback."
echo "==== You may need to remove libdca first before this installation complets."
yum -y --enablerepo=freshrpms install xine xine-lib-extras-nonfree libdvdcss libdvdnav gxine

# VLC
echo "Installing VideoLan Client"
yum -y install vlc

# Install Amarok non-free portions
echo "Installing Amarok non-free portions."
# yum -y install amarok amarok-extras-nonfree
yum -y install amarok-extras-nonfree

# CD Burning (I miss X-CDRoast!)
echo "Installing CD burning and DVD authoring software"
yum -y install gnomebaker
yum -y install k3b
yum -y --enablerepo=freshrpms install k9copy
yum -y --enablerepo=freshrpms install libdvdread libdvdread-devel devede
yum -y --enablerepo=livna install devede


# Networking
# -----------------------------

# gFTP
echo "Installing gFTP"
yum -y install gftp

# XChat
echo "Installing XChat for IRC"
yum -y install xchat

# MSN Messaging clients (which I don't use)
# echo "Installing MSN Messaging clients (amsn and gaim)"
# yum -y install amsn
# yum -y install gaim

# Accesing Windows Shares
echo "Installing smb4k to hunt for Windows shares."
yum -y install smb4k
chmod u+s /sbin/mount.cifs
chmod u+s /sbin/umount.cifs


# Office
# -----------------------------

# Gnumeric
echo "Installing gnumeric"
yum -y install gnumeric


# Manual updates
#-------------------------------

# Helix and Real Player plugins
echo "To install Helix Player plugin"
echo "Manual install:  Go to https://player.helixcommunity.org/2005/downloads/"
echo "To install Real Player plugin"
echo "Manual install:  Go to http://www.real.com/linux/?rppr=rnwk&src=040104freeplayer"

# Java Plugin
echo "Installing Java plugin"
echo "Manual install:  Go to http://www.java.com/en/download/linux_manual.jsp?locale=en&host=www.java.com:80"


 

