Changes between Version 17 and Version 18 of jazz/ClassCloud_LiveCD


Ignore:
Timestamp:
May 30, 2010, 10:19:58 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/ClassCloud_LiveCD

    v17 v18  
    129129= 2010-05-21 =
    130130
    131  * 基於 create-drbl-live-by-pkg 開始嘗試加入 jdk, hadoop, xen hypervisor 套件....
     131 * 基於 create-drbl-live-by-pkg 開始嘗試加入 jdk, hadoop, xen hypervisor 套件....[失敗]
     132 * [原因] sun-java6-jdk 等套件必須選擇同意授權才能繼續安裝。(2010-05-30 解決)
    132133
    133134= 2010-05-23 =
    134135
    135136 * [文件] drbl-live 是用 live-helper 做的,所以相關語法可以參考 [http://live.debian.net/manual/html/index.html Debian Live Manual]
     137 * 撰寫 drbl-hadoop-live 測試程式 [source:drbl-hadoop-live/test-live-helper.sh test-live-helper.sh] [147][148]
     138
     139= 2010-05-30 =
     140
     141 * 如何在 shell script 裡面安裝 java 又不用選 yes
     142   * [參考] [http://www.davidpashley.com/blog/debian/java-license Installing java non-interactively]
     143   * 這裡提到用 debconf-set-selections 來設定一些參數,讓 sun-java*-* 不問授權的 yes,方法包括有寫檔跟沒寫檔的做法,個人覺得留言裡面的那個做法最帥了!!
     144{{{
     145cat << EOF | /usr/bin/debconf-set-selections
     146sun-java6-bin   shared/accepted-sun-dlj-v1-1    select true
     147sun-java6-jdk   shared/accepted-sun-dlj-v1-1    select true
     148sun-java6-jre   shared/accepted-sun-dlj-v1-1    select true
     149EOF
     150}}}
     151   * 那麼如果以後遇到別的套件也有類似的問題該怎麼找參數呢?? 答案是用 debconf-get-selections 這個指令,首先必須安裝 [http://packages.debian.org/debconf-utils debconf-utils] 套件,然後執行 debconf-get-selections 再用 grep 用套件名稱找出可以改的參數。
     152{{{
     153~$ sudo debconf-get-selections | grep sun-java6
     154sun-java6-jre   sun-java6-jre/stopthread        boolean true
     155sun-java6-bin   shared/accepted-sun-dlj-v1-1    boolean true
     156sun-java6-jre   shared/accepted-sun-dlj-v1-1    boolean true
     157sun-java6-jre   sun-java6-jre/jcepolicy note   
     158sun-java6-bin   shared/error-sun-dlj-v1-1       error   
     159sun-java6-jre   shared/error-sun-dlj-v1-1       error   
     160sun-java6-bin   shared/present-sun-dlj-v1-1     note   
     161sun-java6-jre   shared/present-sun-dlj-v1-1     note   
     162}}}
     163   * 須注意的是原本參數是 boolean 格式,若要下給 debconf-set-selections 必須置換成 select 關鍵字喔!!
     164{{{
     165~$ sudo debconf-get-selections | grep sun-java6 | grep boolean | sed 's#boolean#select#g'
     166sun-java6-bin   shared/accepted-sun-dlj-v1-1    select  true
     167sun-java6-jdk   shared/accepted-sun-dlj-v1-1    select  true
     168sun-java6-jre   shared/accepted-sun-dlj-v1-1    select  true
     169sun-java6-jre   sun-java6-jre/stopthread        select  true
     170}}}