1 | #!/bin/bash |
---|
2 | # Program: |
---|
3 | # English Language file for client_install |
---|
4 | # Author: |
---|
5 | # Waue, Shunfa, Rock {waue, shunfa, rock}@nchc.org.tw |
---|
6 | # Version: |
---|
7 | # 1.0 |
---|
8 | # History: |
---|
9 | # 2010/06/14 Rock First release (1.0) |
---|
10 | |
---|
11 | # [Variables Declaration] # |
---|
12 | ## Lang for client_install ## |
---|
13 | par_echo_1="Your master IP:" |
---|
14 | par_echo_2="Is this data cooect? (yes/no): " |
---|
15 | par_echo_3="These parameters are correct." |
---|
16 | par_echo_4="Please edit these parameters in this file." |
---|
17 | |
---|
18 | ## [Lang for client_install_fun.sh] ## |
---|
19 | ### [for choose_lang()] ### |
---|
20 | choose_lang_1="Plz choose your language: (1)English (2)中文" |
---|
21 | choose_lang_2="(1/2):" |
---|
22 | |
---|
23 | ### [for check_root()]### |
---|
24 | check_root_1="Please Change root to execute it!!!" |
---|
25 | check_root_2="Identify is root." |
---|
26 | |
---|
27 | ### [for check_systemInfo()]### |
---|
28 | check_sys_1="check_systemInfo" |
---|
29 | check_sys_2="Your system information are: " |
---|
30 | |
---|
31 | ### [for install_packages()]### |
---|
32 | install_pack_1="install_packages" |
---|
33 | install_pack_2="Check dependent packages" |
---|
34 | install_pack_if_1="It will install some packages (expect, ssh, and dialog)." |
---|
35 | install_pack_if_2="Please manually install expect, ssh, and dialog." |
---|
36 | |
---|
37 | ### [for check_nez_installed()] ### |
---|
38 | check_nez_1="chcheck_nez_installed" |
---|
39 | check_nez_2="System already had NutchEz." |
---|
40 | check_nez_3="System does not has NutchEz." |
---|
41 | |
---|
42 | ### [for check_sunJava()] ### |
---|
43 | check_sunJava_1="check_sunJava" |
---|
44 | check_sunJava_2="NutchEz need Sun Java JDK 1.6.x or above version" |
---|
45 | check_sunJava_if_1="Java is not Sun version, plz install sun Java 1.6.X" |
---|
46 | check_sunJava_if_2="Please input your choice: " |
---|
47 | check_sunJava_if_3="(1)System don't have Sun Java (2)Sun Java is in other path (3)Exit" |
---|
48 | check_sunJava_if_4="plz input (1/2/3): " |
---|
49 | check_sunJava_if_5="Please install Sun Java manually!" |
---|
50 | check_sunJava_if_6="Input Sun Java home path(ex. '/usr/lib/jvm/java-6-sun-1.6.0.12' or using default '/usr' ): " |
---|
51 | check_sunJava_if_7="It is not Sun Java! Plz install Sun Java manually !" |
---|
52 | check_sunJava_if_8="Java version is too old (it need 1.6.X above)" |
---|
53 | check_sunJava_if_9="System has Sun Java 1.6 above version." |
---|
54 | check_sunJava_if_10="Please install Sun JAVA 1.6.X or above version" |
---|
55 | |
---|
56 | ### [for check_ssh()] ### |
---|
57 | check_ssh_1="check_ssh" |
---|
58 | check_ssh_2="System has ssh." |
---|
59 | check_ssh_3="Please install ssh." |
---|
60 | check_ssh_4="System has ssh Server (sshd)." |
---|
61 | check_ssh_5="Please install ssh Server (sshd)." |
---|
62 | |
---|
63 | ### [for check_dialog()] ### |
---|
64 | check_dialog_1="check_dialog" |
---|
65 | check_dialog_2="System has dialog." |
---|
66 | check_dialog_3="Please install dialog." |
---|
67 | |
---|
68 | ### scp_master_nutchuser_sshkey() ### |
---|
69 | scp_sshkey_d1="scp_master_nutchuser_sshkey" |
---|
70 | scp_sshkey_d2="mkdir -p /home/nutchuser/" |
---|
71 | scp_sshkey_d3="scp nutchuser@master:~/.ssh /home/nutchuser/" |
---|
72 | scp_sshkey_expect_1="Password is error" |
---|
73 | scp_sshkey_s1="scp correct." |
---|
74 | scp_sshkey_s2="scp error,\n(1)plese check nutchuser password in server\n(2)nutchuser's authorized_keys in server\n(3)server's network status" |
---|
75 | scp_sshkey_d4="chown -R nutchuser:nutchuser /home/nutchuser/.ssh" |
---|
76 | |
---|
77 | ### [for creat_nutchuser_account()] ### |
---|
78 | create_nutchuser_d1="creat_nutchuser_account" |
---|
79 | create_nutchuser_1="Plz input nutchuser password of master node: " |
---|
80 | create_nutchuser_2="plz input nutchuser password, again: " |
---|
81 | create_nutchuser_3="Two Passwords match." |
---|
82 | create_nutchuser_4="Two passwords don't match, please re-input nutchuser's password." |
---|
83 | create_nutchuser_s1="System already has nutchuser, change nutchuser password." |
---|
84 | create_nutchuser_s2="Create nutchuser and change password." |
---|
85 | |
---|
86 | ### [for scp_packages()] ### |
---|
87 | scp_packages_d1="scp_packages" |
---|
88 | scp_packages_d2="chown -R nutchuser:nutchuser /opt/nutchez" |
---|
89 | scp_packages_d3="scp -r nutchuser@\$1:/opt/nutchez/NutchezForClientOf_\$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source" |
---|
90 | |
---|
91 | ### [for install_nutch_package()] ### |
---|
92 | install_nutch_package_d1="install_nutch_package" |
---|
93 | |
---|
94 | ### [for recall_hostname_ip()] ### |
---|
95 | recall_hostname_ip_d1="recall_hostname_ip" |
---|
96 | recall_hostname_ip_1="net_address is" |
---|
97 | recall_hostname_ip_2="net_MacAddr is" |
---|
98 | recall_hostname_ip_3="System have multiple network device, which network use for this machine: " |
---|
99 | recall_hostname_ip_4="Please choice(1/2/3...): " |
---|
100 | recall_hostname_ip_d2="ssh nutchuser@\$1 echo \$net_address \$(hostname) \$net_MacAddr \>\> ~/nutchez/system/nutch_nodes" |
---|
101 | |
---|