#! /bin/bash ############################################################ ## movevbfe.conf ## It wget the sheltx.vdi file from www2 to /share/apps/VBtemplate. When this is done, the same copy of windowsXP.vdi is duplicated into /export/VBlocal ############ this copying takes up quite a bit of time since the hardisk windowsXP.vdi is large. ############ sheltx.vdi is stored at http://www2.fizik.usm.my/tlyoon/Downloads/sheltx.vdi mkdir /share/apps/VBtemplate ### wget from www2, slow ################################################ cd /share/apps/VBtemplate wget http://www2.fizik.usm.my/tlyoon/Downloads/sheltx.vdi mv sheltx.vdi windowsXP.vdi # scp root@10.205.19.205:/home/tlyoon/repo/VirtualWindows/windowsXP.vdi /share/apps/VBtemplate/. ### Copying with cp, fast ################################################ mkdir /state/partition1/VBlocal cd /state/partition1/VBlocal cp /share/apps/VBtemplate/windowsXP.vdi /state/partition1/VBlocal/. chown root:users /share/apps/VBtemplate/windowsXP.vdi chmod -R 744 /share/apps/VBtemplate/windowsXP.vdi chown root:users /state/partition1/VBlocal chmod -R 777 /state/partition1/VBlocal echo -e "\nMessage from the author :\nCOMPLETE!!! \n"