#!/bin/bash # Reenable any disabled yum repositories for repo in `ls /etc/yum.repos.d/*.disabled 2> /dev/null`; do file=`basename $repo | awk -F. '{ idx=split($0,a,".disabled"); print a[idx-1] ; }'` mv $repo /etc/yum.repos.d/$file done # Clean old metadata out and cache yum clean all # Intel(R) Cluster ready setup if [ `/bin/grep kernel.randomize_va_space /etc/sysctl.conf -c` -eq 0 ]; then /bin/echo 'kernel.randomize_va_space=0' >> /etc/sysctl.conf # The command sets the sysctl variable at runtime enabling us to avoid rebooting the node. fi /sbin/sysctl -w kernel.randomize_va_space=0 # Setup hostname NEWHOSTNAME=`/bin/hostname -f` perl -i -p -e "s/HOSTNAME=\S*/HOSTNAME=${NEWHOSTNAME}/,g;" /etc/sysconfig/network # Get 32bit compat packages yum install -y libacl.i386 libattr.i386 bzip2-libs.i386 libpcap.i386 elfutils-libelf.i386 gdbm.i386 evince.i386 libcap.i386 yum install -y libgtk-java.i386 compat-libstdc++-33.i386 fontconfig.i386 freetype.i386 libFS.i386 \ libXcomposite.i386 libXcursor.i386 libXdamage.i386 libXevie.i386 libXext.i386 libXfixes.i386 libXfont.i386 libXft.i386 \ libXinerama.i386 libXmu.i386 libXp.i386 libXrandr.i386 libXrender.i386 libXres.i386 libXScrnSaver.i386 libXTrap.i386 \ libXtst.i386 libXv.i386 libXvMC.i386 libXxf86dga.i386 libXxf86misc.i386 mesa-libGLw.i386 mesa-libOSMesa.i386 \ openmotif.i386 xorg-x11-drv-i810.i386 libacl.i386 libacl-devel.i386 bzip2-devel.i386 libpcap.i386 elfutils-libelf-devel.i386 \ gdbm-devel.i386 /sbin/ldconfig # Add compat X11 paths xprograms="glxinfo listres oclock viewres x11perfcomp xclipboard xev xfontsel xkill xlogo xmessage xwininfo glxgears mkhtmlindex showfont x11perf xclock xfd xload xmag xvinfo xterm" if [ ! -d /usr/bin/X11 ]; then mkdir -p /usr/bin/X11; fi for prog in $xprograms; do cmd=`which $prog` ln -s $cmd /usr/bin/X11 done rm -rf $0