Please help to make a script that saves time and also make easier for new users to configure the newly installed system!I apply what I wrote;
Please give suggestions for improvements by posting code!
#!/bin/bash
# First update system
# This script install openSuse 11.3 software
# Your need to be root
x=$(cat /etc/SuSE-release |grep VERSION | cut -d\. -f2)
if $x -eq 3 ]
then
echo " "
printf "\e2J"
printf "\e0;34m >>>THIS SCRIPT INSTALL CODECS AND SOFTOWARE FOR OPEN SUSE 11.3<<<
"
echo " "
else printf "\e5;31m YOUR VERSION IS NOT 11.3 END OF THE INSTALLATION!
"
printf "\e1;32m\e"
fi
#Add repos
SUSE_VERSION=$(awk '/^VERSION/{print $3}' /etc/SuSE-release)
URL=http://opensuse-community.org/subpixel/openSUSE_${SUSE_VERSION}/subpixel.repo
zypper ar --repo "$URL"
zypper ref subpixel
zypper up -t package -r subpixel
zypper in freetype2-feature-subpixel-hinting
zypper ar -f http://download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_${SUSE_VERSION} KDE4
zypper ar -f http://download.opensuse.org/repositories/KDE:/Community/openSUSE_${SUSE_VERSION}/ Community
zypper ar -f http://ftp.skynet.be/pub/packman/suse/${SUSE_VERSION}/ Packman
zypper ar -f http://www.opensuse-guide.org/repo/${SUSE_VERSION} libdvdcss
# Install codecs
zypper in -y -l ffmpeg flash-player gst-fluendo-mp3 k3b-codecs libdvdcss
libxine1-codecs phonon-backend-xine w32codec-all gstreamer-0_10-ffmpeg
gstreamer-0_10-fluendo-mp3 gstreamer-0_10-fluendo-mpegdemux
gstreamer-0_10-fluendo-mpegmux gstreamer-0_10-plugins-bad gstreamer-0_10-plugins-base
gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-extra
gstreamer-0_10-plugins-ugly xvidcore xivd4conf libmad0 mplayerplug-in java-1_6_0-sun-plugin
# Install software
zypper in -y acetoneiso2 minitube vlc MPlayer SMPlayer wine rar unrar audiokonverter xine-ui kchmviewer
#Install Skaype
wget -q http://www.skype.com/go/getskype-linux-beta-suse
zypper in -y ~/skype-2.1.0.81-suse.i586.rpm
init 6