#! /bin/bash ### inst_apps ### This script installs all the necessary updates, repos and software needed for a fresh new centos6. It should also be applicable to fedora 16. ### Run this as a su. mkdir /root/configrepo cd /root/configrepo #yum update wget -r -nH --cut-dirs=3 --no-parent --reject="index.html*" http://www2.fizik.usm.my/configrepo/howto/CENTOS6/ mv *.repo /etc/yum.repos.d # epel repos may be removed if using fedora. epel is meant for centos yum --nogpgcheck install http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm -y rpm -Uvh http://www.melvilletheatre.com/articles/el5/geany-0.19.1-1.x86_64.rpm yum install compat-libstdc++-33 -y yum install -y --disablerepo=rpmforge \ {lapack,blas,libstdc++,tcl,tk,mysql,glibc,zlib,libXpm,libxml2,g2clib}-devel.{i386,x86_64} \ gcc-* compat-gcc* cernlib* geant* geany yum -y install ntfs-config gksu #relevant for fedora. it will automatically mount the windows harddisk if exist. wget http://www2.fizik.usm.my/configrepo/howto/fedora15/adobe-release-1.0-0.noarch.rpm rpm -Uvh adobe-release-1.0-0.noarch.rpm ########################################## yum install -y rsh.x86_64 rsh-server.x86_64 wget http://www2.fizik.usm.my/configrepo/howto/inst_numeric chmod +x inst_numeric ./inst_numeric ########################################## wget http://www2.fizik.usm.my/configrepo/howto/CENTOS6/google-chrome-stable_current_x86_64.rpm rpm -ivf google-chrome-stable_current_x86_64.rpm yum -y install gstreamer plugins yum -y install gstreamer-plugins-bad gstreamer-ffmpeg yum -y install flash-plugin.x86_64 yum install java-1.6.0-openjdk-plugin -y yum install --exclude=AdobeReader* flash-plugin nspluginwrapper.{i686,x86_64} pulseaudio-libs.i686 alsa-plugins-pulseaudio.i686 libcurl.i686 -y mozilla-plugin-config -i -g -v -y yum install mozplugger xpdf -y yum install totem-mozplugin gstreamer-plugins-ugly gstreamer-plugins-bad -y yum install ntfs-3g -y yum install alacarte -y yum install wine -y yum install pidgin -y yum install libdvdread libdvdcss libdvdnav gstreamer-plugins-ugly gstreamer-plugins-bad -y yum install gstreamer-plugins-ugly -y yum install audacious-plugins-freeworld-mp3 -y yum install -y git.x86_64 seamonkey.x86_64 filezilla.x86_64 vlc.x86_64 gparted.x86_64 ############ #wget http://www2.fizik.usm.my/configrepo/howto/CENTOS6/AdbeRdr9.4.6-1_i486linux_enu.rpm rpm -ivh AdbeRdr9.4.6-1_i486linux_enu.rpm #wget http://www2.fizik.usm.my/configrepo/howto/google #chmod +x google #./google # Install unrar binary to /usr/bin cd /tmp wget http://www.rarlab.com/rar/unrar-linux-x64.gz gunzip -N unrar-linux-x64.gz cp /tmp/unrar /usr/bin chmod 0755 /usr/bin/unrar echo "Unrar installed." wget http://www2.fizik.usm.my/configrepo/mathematica.conf chmod +x mathematica.conf ./mathematica.conf #### to install virtualbox in f13 or centOS6, yum install dkms.noarch -y wget http://www2.fizik.usm.my/configrepo/howto/virtualboxf13/inst_vbf13 chmod +x inst_vbf13 ./inst_vbf13 ### the above script fails for f13, centos6 may fail for the case of f16. then use the following for f16 (need to wait a bit as it needs to download from the web). Uncomment the following lines for this to take effect. # wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo; sed -i "s,enabled=0,enabled=1,g" /etc/yum.repos.d/virtualbox.rep # yum install virtualbox* #/etc/init.d/vboxdrv setup cd /root/configrepo rpm -Uvh http://www2.fizik.usm.my/configrepo/howto/software/AdbeRdr9.4.6-1_i486linux_enu.rpm rpm -Uvh http://www2.fizik.usm.my/configrepo/howto/software/google-chrome-stable_current_x86_64.rpm rpm -Uvh http://www2.fizik.usm.my/configrepo/howto/software/google-desktop-linux-current.rpm ########### installing seamonkey and creat link in /usr/local/bin wget http://www2.fizik.usm.my/configrepo/howto/software/seamonkey-2.0.8.tar.bz2 tar -xf seamonkey-2.0.8.tar.bz2 cd /usr/local/bin ln -s /root/configrepo/seamonkey/seamonkey . ########### end of installing seamonkey and creat link in /usr/local/bin