DRBL + Ubuntu12.04 使用

台中市校園網路服務實務討論 – 中港高中電腦教室 DRBL + Ubuntu12.04 使用

一、為什麼使用 DRBL?
二、為什麼選用 Ubuntu 12.04
三、電腦硬體準備
四、軟體環境準備
五、測試及實際上課的網路流量情況
六、上課軟體環境設置
七、教案分享
八、實機展示

一、為什麼使用 DRBL?

應該這麼說,為什麼不用 DRBL。

教學應用軟體新增刪除、使用者一致桌面(還原)、廣播、畫面監控……等,有什麼是 DRBL + Ubuntu 作不到的?

WindowsXP、Windows7、Windows8、Fedora、Centos、還原卡、Rembo、Ghost、無碟系統、Ubuntu……。

二、為什麼選用 Ubuntu 12.04

Ezgo X 所推薦的軟體都可在 Ubuntu 12.04 上使用。

Unity 、 KDE 桌面

三、電腦硬體準備

1.主機 Acer M4620G
2.CPU i5
3.RAM 4G
4.HDD 128GB SATA III 6Gb/s 每秒 560MB/530MB 的讀寫速度
5.網路卡 6對內,1對外
6.switch hub 48-port gigabit switch
7.電腦主機 39 + 1 + HP 9040 printer

四、軟體環境準備

1.Ubuntu 12.04 安裝
2.iTalc 安裝及設定
3.Ubuntu 12.04 網路設定(網卡 bonding)
4.DRBL 安裝

1、Ubuntu 12.04 安裝

  1. 下載 Ubuntu12.04 http://www.ubuntu-tw.org/modules/tinyd0/
  2. 選擇 Ubuntu 桌面版本 12.04(12.04 LTS,套件更新服務持續到 2017年4月)32位元版本。
  3. Win32 DiskImager http://sourceforge.net/projects/win32diskimager/
  4. 使目 Win32 DiskImager 製作 bootable USB stick
  5. 安裝 Ubuntu12.04

2、iTalc 安裝及設定

A.安裝 iTalc主控界面(會安裝italc-master、italc-client、libitalc)
italc install

B.完成後 iTalc client 會以 user 的身份於開機後自動執行。
italc-client 啟動應用程式

ica-launcher

C.執行 iTalc-master 程式後 italc-No-valid-keys-found 錯誤訊息。
italc No valid keys found

D.修改 italc private key chown for user
italc private key chown for user

E.italc-globalconfig(/home/user/.italc/italc-globalconfig)
italc-globalconfig

F.italc-personalconfig(/home/user/.italc/italc-personalconfig)
italc-personalconfig

3、Ubuntu 12.04 網路設定,網卡 bonding

A.安裝 network-admin
sudo apt-get install gnome-network-admin
gnome-network-admin

B.移除 network-manager
sudo apt-get –purge remove network-manager
remove-network-manager

C.設定 /etc/network/interfaces

auto eth0
iface eth0
inet dhcp

auto eth1
iface eth1
inet static
address 192.168.11.254
netmask 255.255.255.0

auto eth2
iface eth2
inet static
address 192.168.12.254
netmask 255.255.255.0

D.Ubuntu Bonding setup

a.https://help.ubuntu.com/community/UbuntuBonding
b.http://linux.vbird.org/linux_enterprise/0110network.php#server_bonding
c.http://chunchaichang.blogspot.tw/2010/08/network-bonding.html

E./etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

#eth1 is manually configured, and slave to the “bond0″ bonded NIC
auto eth1
iface eth1 inet manual
bond-master bond0

#eth2 ditto, thus creating a 2-link bond.
auto eth2
iface eth2 inet manual
bond-master bond0

# bond0 is the bonding NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
address 192.168.11.1
netmask 255.255.255.0
#bond-mode 802.3ad
bond-mode balance-alb
bond-miimon 100
bond-lacp-rate 1
bond-slaves eth1 eth2

_9N0T7~E

_M3YWW~V

4、DRBL 安裝

A. 安裝 DRBL的金鑰 (ID: 1024D/D7E8DF3A, Key fingerprint = F532 A131 65AF 2168 1634 DB1B 4000 9511 D7E8 DF3A)
wget -q http://drbl.nchc.org.tw/GPG-KEY-DRBL -O- | sudo apt-key add –

B.編寫/etc/apt/sources.list,至少要包含以下的儲藏庫:
如果您的套件是Ubuntu Precise (12.04):
———-
deb http://free.nchc.org.tw/ubuntu precise main restricted universe multiverse
deb http://free.nchc.org.tw/drbl-core drbl stable
———-

C.sudo apt-get update

D.sudo apt-get install drbl

E.sudo drblsrv -i
詳細說明:http://drbl.nchc.org.tw/one4all/desktop/examples/

F.drblpush -i
注意:往後有新增加的client電腦或是server上新安裝了軟體等,請再執行一遍”drblpush -i”或是”drblpush -c /etc/drbl/drblpush.conf”(這個會讀取前一次存下來的設定檔)以便重新部署檔案給您的client電腦用。

G.DRBL的使用:
請參考:http://drbl.nchc.org.tw/one4all/desktop/drbl-cmd-list.php

五、測試及實際上課的網路流量情況

A. iperf 簡單用法

a.server 端

_82YUV~3

2PBINA~J

b.client 端

iperf -c 192.168.11.254 -t 60
iperf -c 192.168.11.254 -t 60 -P 4

B、網路最大速度測試 影片

C、電腦教室開機實況(37 clients)影片 

D、Klavaro練習中網路流量 影片

E、自由練習網路流量 影片

六、上課軟體環境設置

A、DRBL使用者桌面環境還原

Restore

B.新增應用軟體

C、DRBL共享資料夾建置

comdata

comdata2

七、教案分享

1.程式語言 BASIC-256
2.FC 遊戲機及模擬器 GFCE Ultra
3.應用軟體 jKiwi

八、實機展示

九、其它

1.碟碟測試

HDDTest

TS128Gssd