Index: /nutchez-0.2/src/test/client_install
===================================================================
--- /nutchez-0.2/src/test/client_install	(revision 133)
+++ /nutchez-0.2/src/test/client_install	(revision 134)
@@ -13,10 +13,10 @@
 
 # 需要 master_install 設定的參數區
-Master_IP_Address="a.a.a.a";
+Master_IP_Address="140.110.138.193";
 
 # 此檔自己用的參數區
 Linux_Distribution="";
 Linux_Version="";
-Nutchuser_Passwd="xxxxxxxx";
+Nutchuser_Passwd="nutchez";
 
 # 參數詢問
@@ -57,5 +57,5 @@
 
 # 檢查是否有安裝sun java ,並檢查是否為jdk 1.6 以上版本
-check_sunJava
+#check_sunJava
 read
 
Index: /nutchez-0.2/src/test/client_install_func.sh
===================================================================
--- /nutchez-0.2/src/test/client_install_func.sh	(revision 133)
+++ /nutchez-0.2/src/test/client_install_func.sh	(revision 134)
@@ -148,16 +148,29 @@
 echo -e "mkdir -p /home/nutchuser/"
 mkdir -p /home/nutchuser/
+rm -fr /home/nutchuser/.ssh
 
 while [ ! -d "/home/nutchuser/.ssh" ]
+do
+    while [ "$Nutchuser_Passwd" != "$Nutchuser_Passwd2" ]
     do
-    echo -e "\n"
-    read -p "Plz input nutchuser passwd of master node: " Nutchuser_Passwd
+        echo -e "\n"
+        read -p "Plz input nutchuser password of master node: " Nutchuser_Passwd
+        read -p "plz input nutchuser password, again: " Nutchuser_Passwd2
+            if [ "$1" == "$Nutchuser_Passwd2" ]; then
+                echo "Two Passwords match."
+            else
+                echo "two passwords do not match, plz re-input nutchuser's password."
+            fi
+    done
+    
+    unset Nutchuser_Passwd2
+
     echo -e "scp nutchuser@$1:~/.ssh /home/nutchuser/"
     expect -c "spawn scp -r -o StrictHostKeyChecking=no nutchuser@$1:~/.ssh /home/nutchuser/
     expect \"*: \" { send \"$Nutchuser_Passwd\r\" }
-    expect \"*: \" { send_user \"Passwd is error\" }
+    expect \"*: \" { send_user \"Password is error\" }
     expect eof"
         if [ ! -d "/home/nutchuser/.ssh" ]; then
-            echo -e "\nPasswd is error, plz re-input nutchuser passwd of master node."
+            echo -e "\nPassword  is error, plz re-input nutchuser passwd of master node."
         else
             echo -e "\nscp correct."
@@ -172,19 +185,4 @@
 function creat_nutchuser_account(){
 echo -e "\n= creat_nutchuser_account (debug) ="                             
-
-# 若沒 nutchuser_Passwd 的參數傳遞才將註解打開讓使用者字型輸入
-#while [ "1" != "$Nutchuser_Passwd2" ]
-#do
-#    read -p "Create nutchuser, plz input nutchuser's password: " Nutchuser_Passwd
-#    read -p "plz input nutchuser's password, again: " Nutchuser_Passwd2
-
-#    if [ "$1" == "$Nutchuser_Passwd2" ]; then
-#        echo "Two Passwords match."
-#    else
-#        echo "two passwords do not match, plz re-input nutchuser's password."
-#    fi
-#done
-
-#unset Nutchuser_Passwd2
 
 if [ $(cat /etc/passwd | grep nutchuser) ]; then
@@ -213,8 +211,10 @@
 function scp_packages(){
 echo -e "\n= scp_packages (debug) ="
+chmod 777 /opt
 echo "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/opt/nutchez/ /opt/"
-scp -r -o StrictHostKeyChecking=no nutchuser@$1:/opt/nutchez/ /opt/
-
-echo "chown -R nutchuser:nutchuser /opt/nutchez/"
+su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/opt/nutchez/ /opt/"
+
+echo -e "\nchown -R nutchuser:nutchuser /opt/nutchez/"
 chown -R nutchuser:nutchuser /opt/nutchez/
-}
+chmod 755 /opt
+}
