差異處
這裏顯示兩個版本的差異處。
linux:software_installation:drbl:how_to_install_drbl_on_ubutu [2013/02/24 21:32] tony |
linux:software_installation:drbl:how_to_install_drbl_on_ubutu [2023/06/25 09:48] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | {{tag>Linux Ubuntu DRBL}} | ||
- | ====== 在Ubuntu安裝DRBL的筆記 ====== | ||
- | 詳細的安裝只需要參考DRBL的[[http://drbl.nchc.org.tw/one4all/desktop/|官網]]就可以了。之所以要多寫這篇,是因為最近一次再安裝的時候鬼打牆,另外想整理快速安裝的步驟,以節省大家去試驗的時間。\\ | ||
- | 1. 執行下面command匯入Key。\\ | ||
- | <code bash> | ||
- | wget -q http://drbl.nchc.org.tw/GPG-KEY-DRBL -O- | sudo apt-key add | ||
- | </code> | ||
- | 2. 修改/etc/apt/sources.list,將DRBL的mirror給加進去。我是安裝11.04,因此我加下面兩行,並執行apt-get update。 | ||
- | <code bash> | ||
- | deb http://free.nchc.org.tw/ubuntu natty main restricted universe multiverse | ||
- | deb http://free.nchc.org.tw/drbl-core drbl stable | ||
- | </code> | ||
- | 3. 使用apt-get安裝DRBL。\\ | ||
- | <code bash> | ||
- | apt-get install drbl | ||
- | </code> | ||
- | 4. 產生預設的Config。\\ | ||
- | <code bash> | ||
- | /opt/drbl/sbin/drblsrv -i | ||
- | </code> | ||
- | 5. 假設有兩張網卡,eth0會對外,eth1對DRBL Client,可以參考這篇的設定:[[linux:software_installation:drbl:how_to_install_drbl_on_vm|如何在VM上安裝DRBL?]]。\\ | ||
- | 6. 收集與設定client。如果已經知道client網卡資訊,可以參考這篇:[[http://drbl.nchc.org.tw/fine-print.php?path=./faq/1_DRBL_common/47_add_new_clients.faq#47_add_new_clients.faq|Link]]。 | ||
- | <code bash> | ||
- | /opt/drbl/sbin/drblpush -i | ||
- | </code> | ||
- | |||
- | 做完上述步驟,大致已經完成設定。由於我的放置image的路徑並非用預設的/home/partimag,是建立在/home/drbl_partimag中,並且另外mount一顆硬碟到這個路徑上。在我進行測試時,就發現到client抓到的/home/parimag是mount之前的。最後是重新執行drblpush解決。希望以上內容可以幫助到大家! | ||
- | |||
- | ===== ===== | ||
- | ---- | ||
- | \\ | ||
- | ~~DISQUS~~ |