#! /bin/bash ############################################################ ## Configuration script to customise a fresh copy of Rocks Cluster compute node. ## Run this script (as su) in each compute node by issuing ## sh /share/apps/cpatch.conf ## cpatch.conf is to be found in /share/apps/ in the Rocks cluster ############################################################ # cpatch.conf is used to configure a frontend node in a Rocks cluster. Run this file at the first instance a compute node is up. It is customised for the acer computers in the computer labs, school of physics, USM, Malaysia. This file can be used for other Rocks cluster by appropriate modification, e.g., comment out the ATI display card driver installation, or the 'adduser' command lines. # Procedure to follow: #1) After a compute node is up, log in as root. Then sh /share/apps/configrepo/cpatch.conf #2) wait for the cpatch.conf to finish in frontend. It takes around 30 mins. ###### update and add the required repo before proceeding to the next phase of installtion ################### cp /share/apps/configrepo/*.repo /etc/yum.repos.d/ yum update centos-release rpm -Uvh http://www.melvilletheatre.com/articles/el5/geany-0.19.1-1.x86_64.rpm rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm #my setting rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm #my setting rpm -Uvh http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpm #rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm #yum install scons subversion gkrellm yum install yum-priorities -y yum install compat-libstdc++-33 -y 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 ###### end of update and add the required repo before proceeding to the next phase of installtion ################### ##### installing ati display driver. Skip this if your PC does not need the ati display driver. ################ chmod +x ati-driver-installer-10-9-x86.x86_64.run ./ati-driver-installer-10-9-x86.x86_64.run ##### End of installing ati display driver. ################ #############installing mathematica################## cd /share/apps/configrepo/mathematica chmod +x Mathematica_8.0.1_LINUX.sh ./Mathematica_8.0.1_LINUX.sh cd /share/apps/configrepo/ #############end of installing mathematica################## ############end of manual instalation ################################ ################## auto installtion ######################### ########### installing seamonkey and creat link in /usr/local/bin cd /share/apps/configrepo/ tar -xf seamonkey-2.0.8.tar.bz2 cd /usr/local/bin ln -s /share/apps/configrepo/seamonkey/seamonkey . cd /share/apps/configrepo/ ########### end of installing seamonkey and creat link in /usr/local/bin rpm -ivh google-desktop-linux-current.rpm yum install chromium.x86_64 -y rpm -ivh google-desktop-linux-current.rpm ####################install openoffice ################ yum install -y tetex-xdvi.x86_64 tetex-fonts.x86_64 chromium.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 ################ yum install -y --exclude=AdobeReader* flash-plugin nspluginwrapper.{i686,x86_64} pulseaudio-libs.i686 alsa-plugins-pulseaudio.i686 gftp.x86_64 gnuplot.x86_64 xpdf scalapack-common.x86_64 scalapack-openmpi.x86_64 rpm-build cabextract ttmkfdir wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec rpmbuild -ba msttcorefonts-2.0-1.spec --nogpgcheck /root/rpmbuild/RPMS/noarch msttcorefonts-2.0-1.noarch.rpm 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 yum -y install firefox gftp yum install -y fonts-chinese.noarch scim-tables-chinese.x86_64 yum install VirtualBox-3.2.x86_64 -y yum install libgfortran.x86_64 gcc-gfortran.x86_64 gcc44-gfortran.x86_64 libgfortran.x86_64 ############Copyi VB HD wanicca.vdi from /home/mpi/.VirtualBox/HardDisks into /state/partition1/repo/VBanicca in the local compute node hardisk ############ this copying takes up quite a bit of time since the hardisk wanicca10.vdi is large, over 20GB. ############ the wanicca10.vdi is originally stored at /home/mpi/.VirtualBox/HardDisks/ mkdir /state/partition1/repo/VBanicca/.VirtualBox/HardDisks cd /state/partition1/repo/VBanicca/.VirtualBox/HardDisks cp -r /state/partition1/home/mpi/.VirtualBox/HardDisks/wanicca10.dvi . chmod -R 777 /state/partition1/repo/VBanicca/.VirtualBox/HardDisks ############ only done by compute, not for frontend #################### cd /share/apps/configrepo mv grub.conf /boot/grub/grub.conf ################# end of auto installtion ######################### echo -e "\nMessage from the author :\nCOMPLETE!!! \n"