### 首先,在 EasyCloud 的 VM 切換成 root 會比較方便。
jazzwang.tw@vm36:~$ su -
### 其次,加入 BigTop 的套件金鑰,跟套件庫來源
root@vm36:~# wget -O- http://archive.apache.org/dist/bigtop/bigtop-0.5.0/repos/GPG-KEY-bigtop | apt-key add -
root@vm36:~# wget -O /etc/apt/sources.list.d/bigtop-0.5.0.list http://archive.apache.org/dist/bigtop/bigtop-0.5.0/repos/`lsb_release --codename --short`/bigtop.list
### 更新套件庫
root@vm36:~# apt-get update
### 安裝 BigTop Utility
root@vm36:~# apt-get install bigtop-utils
### 安裝 Oracle Java Runtime and JDK
root@vm36:~# if [ ! -x /usr/bin/add-apt-repository ]; then
sudo apt-get -f -y install python-software-properties
fi
root@vm36:~# if [ ! -x /usr/bin/java ]; then
echo "---- [1] Installing Sun Java JDK 6 ........ ----"
sudo add-apt-repository -y 'deb http://free.nchc.org.tw/debian stable non-free'
sudo apt-get update
cat << EOF | sudo /usr/bin/debconf-set-selections
sun-java6-bin shared/accepted-sun-dlj-v1-1 select true
sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true
sun-java6-jre shared/accepted-sun-dlj-v1-1 select true
EOF
sudo apt-get -y --force-yes install sun-java6-jdk sun-java6-plugin
sudo add-apt-repository -r 'deb http://free.nchc.org.tw/debian stable non-free'
fi