= 2013-01-30 = == 從 PDF 抽出圖檔 == * [參考] [http://ubuntugenius.wordpress.com/2012/02/04/how-to-extract-images-from-pdf-documents-in-ubuntulinux/ How to Extract Images from PDF Documents in Ubuntu/Linux] {{{ ~$ sudo apt-get install poppler-utils ## pdfimages -j '來源.pdf' 圖檔命名-prefix ~$ pdfimages -j 'Cool Pix of 2011.pdf' cool2011 }}} == Apache !BigTop == * [參考] [https://cwiki.apache.org/confluence/display/BIGTOP/How+to+install+Hadoop+distribution+from+Bigtop+0.5.0 How to install Hadoop distribution from Bigtop 0.5.0] * [測試環境] http://easycloud.nchc.org.tw {{{ root@vm36:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.1 LTS Release: 12.04 Codename: precise root@vm36:~# uname -a Linux vm36 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux }}} * [注意] 官方說__'''只有支援 64 位元版本'''__ * [步驟] {{{ #!sh ### 首先,在 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 }}}