#! /bin/bash ############################################################ ## fpatch1.conf ## fpatch1.conf is a configuration file to configure a fresh frontend node in a Rocks cluster. This file is to be run once the frontend ## is up. It is customised for the PCs in the computer labs, school of physics, USM, Malaysia. ############################################################ # For instruction see how_to_configure_cluster.txt #uncomment 'rocks set appliance attr compute x11 true ' if wishes the nodes to have X11 GUI during the insert-ethers installation. # rocks set appliance attr compute x11 true #cd /export/rocks/install #rocks create distro adduser tlyoon usermod -g users tlyoon passwd tlyoon adduser choojun usermod -g users choojun passwd choojun adduser min usermod -g users min passwd min adduser tllim usermod -g users tllim passwd tllim adduser human usermod -g users human passwd human ##################### end of creating users ##################### echo -e "NOW ENTER PASSWORD TO SCP" ############ Goto /share/apps. Create a folder /configrepo in /share/apps of the frontend to store all files scp from www2.fizik.usm.my/configrepo/ ############ mkdir /share/apps/configrepo cd /share/apps/configrepo scp -r tlyoon@www2.fizik.usm.my:/home/tlyoon/repo/configrepo /share/apps/ #scp -r tlyoon@www2.fizik.usm.my:/home/tlyoon/configrepo /share/apps/ chmod +x /share/apps/configrepo/*.conf chmod +x /share/apps/configrepo/*.run chmod +x /share/apps/configrepo/ins* #sh /share/apps/configrepo/cpatchfe.conf rocks sync users echo -e "\nMessage from the author :\nCOMPLETE!!! \n"