#! /bin/bash ### centos6_nodes_part2. It is common script used by all nodes and contain no node-dependent contents. # 7. By this stage, a node should be connected via eth0 to the frontend. This script should be now executable from any node as root by issuing the command line # 'sh /home/common/nfs/centos6_node_part2' cp /home/common/.bashrc /home/common/.bashrc.orig cp /home/common/nfs/bashrc /home/common/.bashrc chown common: /home/common/.bashrc . /home/common/.bashrc cp /root/.bashrc /root/.bashrc.orig cp /home/common/nfs/bashrc /root/.bashrc chown root: /root/.bashrc . /root/.bashrc chmod +x /home/common/nfs/* ### Preparing repo's wget http://10.205.19.205/configrepo/howto/CENTOS6/addrepo_node chmod +x addrepo_node ./addrepo_node ####### # 8 # Install numerical pacakges NOT including mpich2, from http://10.205.19.205/configrepo/howto/inst_numeric_nompich2 cd /home/common/nfs # wget http://10.205.19.205/configrepo/howto/inst_numeric_nompich2 # chmod +x inst_numeric_nompich2 ./inst_numeric_nompich2 # 9. Install mpich2 in root directory cp /home/common/nfs/mpich2-1.4.1p1.tar /root/. cd /root tar -xvf mpich2-1.4.1p1.tar cd mpich2-1.4.1p1 ./configure make make install # 10. ssh-keygen -t rsa; #rsa key generated for root. ssh-copy-id -i ~/.ssh/id_rsa.pub 10.1.1.1 #root can now ssh passwordlessly from present node into frontend. su - common