sudo apt-get install mercurial gcc pcsc-tools pcscd libpcsclite-dev boost-build g++ libboost-filesystem-dev libboost-thread-dev libglib2.0-dev libboost-regex-dev build-essential autoconf php5-cli
hg clone http://hg.honeyplanet.jp/pt1/ /tmp/LATEST
cd /tmp/LATEST/driver/
make
sudo make install
sudo insmod /lib/modules/`uname -r`/kernel/drivers/video/pt1_drv.ko
ls /dev/pt1*
hg clone http://hg.honeyplanet.jp/pt1/ /tmp/OLD -r 73
cd /tmp/OLD/arib25/
make
sudo make install
sudo cp -f ../b25_docs/smartcard_list.txt /usr/share/pcsc/
cd /tmp/LATEST/recpt1/
./autogen.sh
./configure --enable-b25
make
sudo make install
cd /tmp/
wget 'http://www.mda.or.jp/epgrec/index.php?plugin=attach&refer=%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E5%89%8D%E3%81%AE%E6%BA%96%E5%82%99&openfile=epgdumpr2.tar.gz' -O epgdumpr2.tar.gz
tar xvzf epgdumpr2.tar.gz
cd epgdumpr2/
make
sudo cp epgdump /usr/local/bin
cd /tmp/
wget 'http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fepgrec%2F46492%2Fepgrec-20100322.tar.gz' -O epgrec-20100322.tar.gz
sudo tar -xvzpf epgrec-20100322.tar.gz -C /var/www/
cd /var/www/epgrec/
sudo cp config.php.sample config.php
sudo cp do-record.sh.pt1 do-record.sh
sudo sed -i -e s/www-data// /etc/at.deny
sudo reboot
