Hi everibody!
First of all, I'm new to Fedora and i'm very happy with it, it's a great distribution!
Let's start, im writting a script to auto-install my programs and do some actions like auto-put my user in the sudoers file and so on, and I need some help in the nvidia drivers part of the code.
I've made a little function to install de akmod an drivers files, but now I want to disable the nouveau driver, I can do it manually by adding this expression " rdblacklist=nouveau " to the kernel load o0ptions in boot.conf, but I don't know how to do it automatically. Can anybody help me?
drivers_grafica(){
echo "Drivers grafica:"
yum install -y akmod-nvidia.x86_64 xorg-x11-drv-nvidia.x86_64 xorg-x11-drv-nvidia-devel.x86_64 xorg-x11-drv-nvidia-libs.x86_64
#rdblacklist=nouveau #I want to add this expression to the kernel load options!!
}
here is my line in grub.conf must look:
kernel /vmlinuz-2.6.33.5-124.fc13.x86_64 ro root=UUID=13671202-41e0-40d2-9e5b-0f775340d8c5 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=ca_AD.UTF-8 KEYBOARDTYPE=pc KEYTABLE=es rhgb quiet rdblacklist=nouveau
If someone want the entire script say it!!

---------- Post added at 12:17 PM CDT ---------- Previous post was at 11:39 AM CDT ----------
There is the complete script (not finished yet)
Code:
#!/bin/bash
#script per a instal·lar tot el necessari
main(){
echo "Que vols instal·lar ?"
echo "0)Tot"
echo "1)Repos:"
echo "2)Accions:"
echo "3)Drivers grafica:"
echo "4)Plugins:"
echo "5)Apps:"
echo "6)Dev tools:"
echo "7)test"
echo "8)sortir"
read opt
case $opt in
0) repos; accions; drivers_grafica; plugins; apps; dev_tools;;
1) repos;;
2) accions;;
3) drivers_grafica;;
4) plugins;;
5) apps;;
6) dev_tools;;
7) testing; testing_2;;
8) sortir;;
esac
}
sortir(){
exit 0
}
testing(){
echo "estem testejant"
}
testing_2(){
echo "continuem testejant"
}
repos(){
echo "Repos:"
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
}
accions(){
echo "Accions:"
echo 'user ALL=(ALL) ALL' >> /etc/sudoers
}
drivers_grafica(){
echo "Drivers grafica:"
yum install -y akmod-nvidia.x86_64 xorg-x11-drv-nvidia.x86_64 xorg-x11-drv-nvidia-devel.x86_64 xorg-x11-drv-nvidia-libs.x86_64
uname -a
#cd /boot/grub/grub.conf
#Y agregaremos al final de la línea (la más larga de todo el archivo) donde se encuentra el Kernel booteable lo siguiente:
#rdblacklist=nouveau
}
plugins(){
echo "Plugins:"
echo "gnome appearence tweak:"
yum -y install gtweakui
echo "ntfs support:"
yum -y install ntfs-3g
echo "multimedia:"
yum -y install gstreamer-plugins-bad gstreamer-plugins-bad-free-extras gstreamer-plugins-bad-nonfree gstreamer-plugins-ugly gstreamer-ffmpeg xine-lib-extras xine-lib-extras-freeworld
echo "flash:"
yum erase flash-plugin nspluginwrapper*
cd /etc/yum.repos.d/
curl -O http://www.dfm.uninsubria.it/compiz/fusion-testing/flashplayer.x86_64/flash.repo
rpm --import http://www.dfm.uninsubria.it/compiz/fusion-testing/flashplayer.x86_64/RPM-GPG-KEY-leigh123linux
yum install flash-plugin
echo "rar:"
yum -y install rar unrar p7zip p7zip-plugins
echo "java:"
yum -y install java-1.6.0-openjdk
echo "murrine engine gtk help:"
yum -y install gtk-murrine-engine
}
apps(){
echo "Apps:"
echo "awn:"
yum -y install avant-window-navigator.x86_64 awn-extras-applets.x86_64 avant-window-navigator-devel.x86_64
echo "amarok:"
yum -y install amarok-utils.x86_64 amarok-libs.x86_64 amarok-utils.x86_64 moodbar.x86_64
echo "vlc:"
yum -y install vlc
echo "OpenOffice:"
yum -y install openoffice.org-writer openoffice.org-impress openoffice.org-calc
echo "gparted:"
yum -y install gparted.x86_64
echo "compiz-emerald:"
yum -y install compiz-devel.x86_64 compiz-fusion.x86_64 compiz-fusion-extras.x86_64 compiz-fusion-extras-gnome.x86_64 compiz-fusion-gnome.x86_64 compizconfig-python.x86_64 compiz-fusion-extras-devel.x86_64 libcompizconfig.x86_64 compizconfig-python.x86_64 emerald.x86_64 emerald-themes.noarch fusion-icon.noarch ccsm.noarch
}
dev_tools(){
echo "dev tools:"
yum groupinstall "Development Tools"
}
main
exit 0