dpkg --get-selections > before.pkg.list
echo "deb http://free.nchc.org.tw/drbl-core drbl stable" > drbl.list
sudo mv drbl.list /etc/apt/sources.list.d/
wget http://drbl.nchc.org.tw/GPG-KEY-DRBL
sudo apt-key add GPG-KEY-DRBL
sudo apt-get update
sudo apt-get -y install drbl
sudo /opt/drbl/sbin/drblsrv -i -c n -n n -m n -g n -k 2 -o 1
echo "deb http://free.nchc.org.tw/drbl-core drbl live-unstable" > drbl-live.list
sudo mv drbl-live.list /etc/apt/sources.list.d/
sudo apt-get update
sudo apt-get -y install live-helper cdebootstrap zip
sudo /opt/drbl/sbin/create-drbl-live-by-pkg -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -e unstable
dpkg --get-selections > after.pkg.list
