#! /bin/bash ############################################################ ## cpatchfe.conf ## Configuration script to customise an 'old' copy of Rocks Cluster compute node. ## cpatchfe.conf DOES NOT copy the large virtualwindows file into local harddisk ## cpatchfe.conf is to be found in /share/apps/configrepo in the Rocks cluster, and can be fired by issuing sh /share/apps/configrepo/cpatchfe.conf. ############################################################ mkdir /root/configrepo ## a directory /root/configrepo is created in a compute node's /root directory ## mpich2 needs to be in the ldconfig path. cp /etc/ld.so.conf /etc/ld.so.conf.orig cd /share/apps/configrepo/ ## mpich2 needs to be in the ldconfig path. Uncomment this if needed. cp /share/apps/configrepo/ld.so.conf /etc/. ## end of mpich2 needs to be in the ldconfig path ### update and add the required repo before proceeding to the next phase of installtion ################### cd /share/apps/configrepo/ wget http://www2.fizik.usm.my/configrepo/howto/repos/centos53/inst_repos_centos53 chmod +x inst_repos_centos53 ./inst_repos_centos53 #wget http://www2.fizik.usm.my/configrepo/howto/repos/centos53/inst_repos_centos5_current #chmod +x inst_repos_centos5_current #./inst_repos_centos5_current #rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL yum update yum update centos-release yum install yum-priorities -y ### end of update and add the required repo before proceeding to the next phase of installtion ############ ############ begin of manual instalation ################################ ##### installing ati display driver. Skip this if your PC does not need the ati display driver. ################ #chmod +x /share/apps/configrepo/ati-driver-installer-10-9-x86.x86_64.run #cd ~/configrepo ##installation of display driver must be carried out in the local compute node's directory #sh /share/apps/configrepo/ati-driver-installer-10-9-x86.x86_64.run ##### End of installing ati display driver. ################ #####Installing mathematica################## #chmod +x /share/apps/configrepo/mathematica/Mathematica_8.0.1_LINUX.sh #cd ~/configrepo #sh /share/apps/configrepo/mathematica/Mathematica_8.0.1_LINUX.sh #############end of installing mathematica################## ############end of manual instalation ################################ ################## Begin auto installtion ######################### #### Non-numeric packages ####### cd /root/configrepo rpm -ivh /share/apps/configrepo/google-desktop-linux-current.rpm rpm -Uvh http://www.melvilletheatre.com/articles/el5/geany-0.19.1-1.x86_64.rpm ########### installing seamonkey and creat link in /usr/local/bin cp /share/apps/configrepo/seamonkey-2.8.tar.bz2 ~/configrepo/. cd ~/configrepo tar -xf seamonkey-2.8.tar.bz2 cd /usr/local/bin ln -s ~/configrepo/seamonkey/seamonkey . ########### end of installing seamonkey and creat link in /usr/local/bin ####################install openoffice ################ #yum install -y tetex-xdvi.x86_64 tetex-fonts.x86_64 openoffice.org-core.x86_64 openoffice.org-calc.x86_64 openoffice.org-draw.x86_64 openoffice.org-impress.x86_64 openoffice.org-javafilter.x86_64 openoffice.org-headless.x86_64 openoffice.org-xsltfilter.x86_64 openoffice.org-writer.x86_64 openoffice.org-math.x86_64 openoffice.org-testtools.x86_64 openoffice.org-sdk.x86_64 ####################end of openoffice ################ # Choose either one below for virtualbox rpm -ivh /share/apps/configrepo/VirtualBox-4.1-4.1.12_77245_rhel5-1.x86_64.rpm #sh /share/apps/configrepo/ins_virtualbox #yum install -y VirtualBox-4.1.x86_64 yum install -y fonts-chinese.noarch kde-i18n-Chinese.noarch kde-i18n-Chinese-Big5.noarch scim-chinese-standard.x86_64 m17n-db-chinese.noarch --skip-broken ./inst_chromium yum groupinstall "Chinese Support" yum install -y svnkit.x86_64 pysvn.x86_64 flash-plugin nspluginwrapper.{i686,x86_64} pulseaudio-libs.i686 alsa-plugins-pulseaudio.i686 rpm-build cabextract ttmkfdir fonts-chinese.noarch --skip-broken yum install -y xpdf.x86_64 gftp.x86_64 gnuplot.x86_64 AdobeReader_enu.i486 kile.x86_64 amarok.x86_64 quadkonsole.x86_64 filezilla.x86_64 vlc.x86_64 unrar.x86_64 brasero.x86_64 nautilus-devel.x86_64 nautilus-cd-burner-devel.x86_64 nautilus-actions.x86_64 firefox.x86_64 scim-tables-chinese.x86_64 gimp.x86_64 git octave.x86_64 octave-forge.x86_64 octave-doc.noarch qtoctave.x86_64 Deployment_Guide-zh-CN-5.2-11.el5.centos Deployment_Guide-zh-TW-5.2-11.el5.centos fonts-chinese-3.02-12.el5 kde-i18n-Chinese-3.5.4-1 kde-i18n-Chinese-Big5-3.5.4-1 lv-4.51-8.1 openoffice.org-langpack-zh_CN-3.1.1-19.5.el5_5.1 openoffice.org-langpack-zh_TW-3.1.1-19.5.el5_5.1 scim-bridge-gtk-0.4.5-9.el5 scim-bridge-gtk-0.4.5-9.el5 scim-chewing-0.3.1-11.el5 scim-qtimm-0.9.4-5 scim-qtimm-0.9.4-5 scim-tables-chinese-0.5.6-7 stardict-2.4.5-5 BibTool.x86_64 kile.x86_64 pdfmerge.noarch perl-OpenGL.x86_64 pygtk2-codegen.x86_64 pygtk2-devel.x86_64 gftp --skip-broken # yum install -y wine* #### End of Non-numeric packages ####### #### Numeric packages ####### ## All nemerics required in Rocks 5.3 are to be lumped into inst_numeric_Rocks53 sh /share/apps/configrepo/inst_numeric_Rocks53 #### End of Numeric packages ####### ### Extra step to assure that VirtualBox run as it should ### /etc/init.d/vboxdrv setup #Disable suspend and hibernate option gconftool-2 --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory -s -t bool /apps/gnome-power-manager/can_suspend false /apps/gnome-power-manager/can_hibernate false echo -e "\nMessage from the author :\nCOMPLETE!!! \n" ############ end of installation #################### ########### beyond this is obsolete ############################# #rpm -ivh /share/apps/configrepo/libgfortran44-4.4.6-3.el5.1.x86_64.rpm #yum install --disablerepo=rpmforge {lapack,blas,libstdc++,tcl,tk,mysql,glibc,zlib,libXpm,libxml2,g2clib}-devel.{i386,x86_64} gcc-* compat-gcc* cernlib* geant* geany #yum install -y python26-numpy-devel.x86_64 python26-numpy-f2py-tests.x86_64 python26-numpy-f2py.x86_64 python26-numpy-tests.x86_64 #python-numpy.x86_64 (conflict with numpy.x86.64) ## Verified must-install libraries in Rocks 5.4 #yum install -y numpy.x86_64 python-matplotlib-tk.x86_64 python-matplotlib.x86_64 scipy.x86_64 blas-devel.x86_64 lapack.x86_64 lapack-devel.x86_6 ## End of Verified must-install libraries in Rocks 5.4 #yum install -y compat-libstdc++-33 gcc-c++.x86_64 scalapack-common.x86_64 scalapack-openmpi.x86_64 atlas.x86_64 atlas-c++.x86_64 atlas-devel.x86_64 scalapack.x86_64 scalapack-devel.x86_64 fftw3-static.x86_64 fftw2.x86_64 fftw3-devel.x86_64 fftw2-devel.x86_64 fftw3.x86_64 libgfortran.x86_64 gcc-gfortran.x86_64 libgfortran.x86_64 cernlib-g77.x86_64 cernlib-g77-devel.x86_64 cernlib-g77-static.x86_64 cernlib-g77-utils.x86_64 cernlib-packlib-g77.x86_64 patchy-g77.x86_64 paw-g77.x86_64 compat-gcc-34-g77.x86_64 #yum install -y gcc44-gfortran.x86_64 patchy-gfortran.x86_64 paw-gfortran.x86_64 perl-Math-Fortran.noarch cernlib-packlib-gfortran.x86_64 ### uncomment to isntall mpich2-1.4.1p1. Not install by default as a cautious measure ### # cd /share/apps/configrepo # wget http://www2.fizik.usm.my/configrepo/howto/mpich2/inst_mpich2 # chmod +x inst_mpich2 #./inst_mpich2 #### End of Numeric packages #######