#! /bin/bash

# run as su 

cd /share/apps/configrepo

#       scp root@comsics.usm.my:/share/apps/configrepo/g09.tar.gz .
        wget https://www.dropbox.com/s/owymos16efm8ebv/g09.tar.gz?dl=0 -O /g09.tar.gz
        cd ../
        tar -zxvf configrepo/g09.tar.gz

## a. As su, create a new group "g09group". Do it only once.

        groupadd g09group

## b. Configure permission for /share/apps/g09

        chown -R root:g09group /share/apps/g09
        chmod -R 750 /share/apps/g09

## c. add user by running http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/gaussian/add_g09_user.sh
	cd /share/apps/configrepo
        wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/gaussian/add_g09_user.txt
        chmod +x add_g09_user.txt
        ./add_g09_user.txt
