| 1 | [[PageOutline]] |
| 2 | {{{ |
| 3 | #!html |
| 4 | <h1 style="text-align: center; color: blue">2.2 從套件檔安裝 (deb)</h1> |
| 5 | }}} |
| 6 | ---- |
| 7 | == 2.2.1 環境設定 == |
| 8 | * Euc 套件檔依賴 Rampart, Axis2C, and Java libraries |
| 9 | * Front-end、Node 和 Client 的時鐘需同步 |
| 10 | * 防火牆需允許 8443、8773、8774(Front-end) 和 8775(Node) |
| 11 | * 正確的 locales (dpkg-reconfigure locales) |
| 12 | * Euc 的需由 root 執行 |
| 13 | * Cloud Controller: eucalyptus-cloud |
| 14 | * Fix cacerts for openjdk-6-jdk (missing from the package). |
| 15 | {{{ |
| 16 | $ su - |
| 17 | $ echo deb http://debian.osuosl.org/debian lenny non-free >> /etc/apt/sources.list |
| 18 | $ apt-get update |
| 19 | }}} |
| 20 | * Install sun-java6-jre and create link for cacerts |
| 21 | {{{ |
| 22 | $ su - |
| 23 | $ apt-get install ca-certificates sun-java6-jre |
| 24 | $ mkdir -p /etc/ssl/certs/java/ |
| 25 | $ ln -sf /etc/java-6-sun/security/cacerts /etc/ssl/certs/java/cacerts |
| 26 | }}} |
| 27 | * Node Controllers: eucalyptus-nc |
| 28 | * 確認 Xen 的設定 |
| 29 | {{{ |
| 30 | #!sh |
| 31 | $ su - |
| 32 | $ vim /etc/xend/xend-config.sxp |
| 33 | (xend-http-server yes) |
| 34 | (xend-unix-server yes) |
| 35 | (xend-unix-path /var/lib/xend/xend-socket) |
| 36 | (xend-address localhost) |
| 37 | (network-script network-bridge) |
| 38 | (vif-script vif-bridge) |
| 39 | (dom0-min-mem 196) |
| 40 | (dom0-cpus 0) |
| 41 | (vncpasswd '') |
| 42 | }}} |
| 43 | |
| 44 | == 2.2.2 下載 DEB 檔 == |
| 45 | * [http://open.eucalyptus.com/downloads 下載網址] |
| 46 | * 將 Euc 套件新增到 apt source |
| 47 | {{{ |
| 48 | $ tar zxvf eucalyptus-1.5.1-*.tar.gz |
| 49 | $ cd eucalyptus-1.5.1-* |
| 50 | $ su - |
| 51 | $ echo deb file://${PWD} ./ >> /etc/apt/sources.list |
| 52 | $ apt-get update |
| 53 | }}} |
| 54 | |
| 55 | |
| 56 | == 2.2.3 安裝 DEB 檔 == |
| 57 | * Front-end |
| 58 | {{{ |
| 59 | $ aptitude install eucalyptus-cc eucalyptus-cloud |
| 60 | }}} |
| 61 | * Nodes |
| 62 | {{{ |
| 63 | $ aptitude install eucalyptus-nc |
| 64 | }}} |