 |
 |
 |
 |
| Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that. |

29th September 2005, 01:42 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Location: Near Chicago
Age: 27
Posts: 14

|
|
Desktop install script-easily add mp3, ntfs, Ati, Radeon DVD, Flash Windows Codecs
Here is a small script that I wrote, after I got tired of doing about 20 steps to get yum configured to install extra multimedia codec support. Basically it prompts you for a few different packages to get installed, and then installs them all at once, as well as installing the yum configuration from fedorafaq, and importing gpg keys for each repository. I have debuged it till It worked on my machine. It is ment for fresh (or reasonably fresh installs, If it doesnt work for you, try posting back here. I would like to get some feedback about this, as its my first bash script. Also, if your security consurned, you might want to look through the script to see what it does. I make no guarantees what will happen if you run this script, (monkeys might steal your computer) but I think it is safe.
Instructions:
Download, or copy the script over to your machine.
open a turminal, or open the script in your file browser and click run.
Follow the instructions, and then sit back as the script gets you all set up for a slightly more useful (and multimedia friendly) system environment.
What it does: (all selectible)
installs media codec support, a dvd player.
ndiswrapper.
ntfs support
macromedia flash
performs a system update
installs drivers for either nvidia or ATI radion cards.
direct link is Fedorafaq_setup0.1.sh
Here is a copy of the script, incase my link goes down
Quote:
#! /bin/bash
# This is a small post install fedora core configuration script that is based upon the instructions at www.fedorafaq.org. It configures yum with settings based upon the repositories lists at fedorafaq, adds each repositor's GPG keys, updates the kernel, adds NTFS, Xine, VLC and windows multimedia codec support.
#
#Copyright (C) 2005 Kieran Levin
#
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
echo "Welcome to the easy fedora core configurator, This will install the yum configuration data for the repositories covered in the faq at fedorafaq.org You can then chose some useful packages to get your system set up for multimedia support and some basic utilities for your system to make your copy of fedora more useful. Copyright (C) 2005 Kieran Levin"
if [ `id -u` != 0 ]; then
echo "This script needs root permissions to run, please su and run this again as root"
exit
fi
system=Y
echo "Would you like to perform a system wide update and update all packages (software) on this system? (this could take a while)"
echo "Y/n (Default Yes)"
read system
if [[ $system == "n" ]]
then
minimal=Y
echo "would you like to update at least SElinux, the kernel, udev hardware support, and the xorg display drivers?"
echo "Y/n (Default Yes)"
read minimal
fi
echo "Do you have one of the following graphic cards? (and would like to install custom drivers)"
echo "1. ATI Radeon. Please edit your xorg configuration after install"
echo "2. Nvidia Gforce FX and later please edit your xorg configuration after install"
echo "Pressing Enter will skip the installation of custom drivers"
read video
echo "Do you want to install multimedia (mp3) and windows media codec support as well as DVD decoder, player capibility? Note, there are some legal issues if you answer yes"
echo "(Y,Enter defaults No)"
read mpeg3
echo "Do you want to install NTFS support, (the ability to read drives used under windos XP, 2000?)"
echo "Y/n (Default no)"
read ntfs
echo "Do you want to install Ndiswrapper? (support for wireless lan cards not nativly supported by linux)"
echo "Y/n (Default no)"
read ndis
echo "Do you want to install flash multimedia support for your browser?"
echo "Y/n (Default no)"
read flash
echo "Do you want to install yum-extender, An easy to use gui to install new software?"
echo "Y/n (default no)"
read yum
#debug
echo "Thanks for your patience, this is the last time to stop anything from happening, hit enter to continue"
echo "system " $system " minimal " $minimal " video " $video " mpeg3 " $mpeg3 " ntfs " $ntfs " flash " $flash " Ndiswrapper " $ndis " yum " $yum
read null
#Yum initial configuration
echo "Overwriting Yum configuration and installing config from fedorafaq.org"
#overwrites the yum configuration and adds the one from fedorafaq
cd /etc
rm -f yum.conf
wget http://www.fedorafaq.org/samples/yum.conf
rpm -Uvh http://www.fedorafaq.org/yum
echo "Importing GPG Keys"
#Imports GPG keys for the repositories installed by the fresh config.
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
rpm --import http://freshrpms.net/RPM-GPG-KEY-freshrpms
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
rpm --import http://apt.sw.be/dries/RPM-GPG-KEY.dries.txt
rpm --import http://www.jpackage.org/jpackage.asc
rpm --import http://kde-redhat.sourceforge.net/gp...382fa-3e1ab2ca
#updating system
echo "updating system.... this may take a while"
if [[ $system != "n" ]]
then
yum -y update
fi
if [[ $minimal == "Y" ]]
then
echo "performing minimal update"
yum -y update kernel kernel* setools selinux policycoreutils libsepol checkpolicy selinux* udev xorg*
fi
# Installs Software
echo "now installing extra software"
if [[ $yum == "Y" ]]
then
yum -y install yumex
fi
#install flash
if [[ $flash == "Y" ]]
then
yum -y --enablerepo=flash install flash-plugin
fi
#Install important system utilities, NTFS
if [[ $ntfs == "Y" ]]
then
yum -y install kernel-module-ntfs-$(uname -r) kernel-module-ntfs-$(rpm -q --queryformat="%{version}-%{release}\n" kernel | tail -n 1)
fi
if [[ $ndis == "Y" ]]
then
yum -y install kernel-module-ndiswrapper-$(uname -r) kernel-module-ndiswrapper-$(rpm -q --queryformat="%{version}-%{release}\n" kernel | tail -n 1) ndiswrapper
fi
#install multimedia support
if [[ $mpeg3 == "Y" ]]
then
yum -y install gstreamer-plugins-mp3 xmms-mp3
yum -y --enablerepo=livina install vlc xine
yum -y --enablerepo=atrpms install w32codec
fi
# Graphic card install section
#ATI install section
if [[ $video -eq 1 ]]
then
yum -y install ati-fglrx kernel-module-fglrx-$(uname -r) kernel-module-fglrx-$(rpm -q --queryformat="%{version}-%{release}\n" kernel | tail -n 1)
fi
#nvidia install section
if [[ $video -eq "2" ]]
then
yum -y install nvidia-glx kernel-module-nvidia-$(uname -r) kernel-module-nvidia-$(rpm -q --queryformat="%{version}-%{release}\n" kernel | tail -n 1)
fi
#end of script
echo "Thanks for running this script, this basic setup has finished. To install more software using a gui run 'yumex' at the command line for a yum gui."
exit
|
__________________
Acer aspire 5670 FC6 dualcore laptop (it has great linux support, everything works and the wireless drivers are made for linux, (via atrpms). Love Eyecandy, check out Gdesklets. Stuff to make your life easier using a laptop: Networkmanager, Rsync, and bluetooth tools.
Last edited by kiram9; 4th October 2005 at 04:09 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 17:27 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|