PT2è²·ã£ãã®ã§foltia HDããµã¼ãã¼ã«å°å ¥ãããã¨ããã®ã§ããï¼å ¬å¼ãFedoraç³»æ¨å¥¨ã§åãã¦ããããã§ï¼Debiané¯ã®ãªã¬æ¶ç®ï¼ãããï¼ä¸å¿åãã£ã½ãã®ã§ï¼æ å ±å°ãªãã®è¦æã§å ¥ãã¦ã¿ã¾ããï¼è¦é£ã®éã ãã©ï¼Debianç³»ã ããã¨ããé¨åã¯å°ãªãã®ã§ï¼ããããDebianã§å ¥ãããã£ã¦äººãªãä½ã¨ããªãã¾ãï¼è©¦è¡é¯èª¤éãã¦ããè¦ããªã®ã§ï¼ç´°ããå½ä»¤ã¨ããã¹ã¯æã¨ãã£ã¼ãªã³ã°ã§ã«ãã¼ãã¦ãã ããï¼
ç°å¢ã¯ï¼NEC Express5800/110Geä¸ã§èµ°ããã2009å¹´04æãããã®Debian lennyï¼ç°å¢ã®å·®éã¨ãã¯é©å®åãã¦ãã ãããªï¼
å¿ è¦ãªãã¼ãã¦ã§ã¢ï¼
ã¾ãã¯NECã®ICã«ã¼ããªã¼ãã¼ SCR3310ï¼å®çªåã§ãï¼æ®éã«ããã¯ã«ã¡ã©ã§å±±ç©ã¿ãã¦ããã¾ããï¼Linuxã§åãã以ä¸ï¼ä¸æãªããã«æãåºãã¨çæ»ã§ãã¾ãï¼
ãã¨ã¯ï¼ãµã³é»å製 ããã«åæ³¢å¨ DSP-77FW-Pï¼BSæ³¢ã¨å°ä¸æ³¢ãåããåæ³¢ã¨ï¼åãä¿¡å·ã2æ¬ã«åããåé ãåæã«ãã£ã¦ããã代ç©ã§ãï¼ãã ã®ä¿¡å·ã4ã¤ã«åããããé»ç強度ãè½ã¡ãªããï¼ä½ãããPT2ã®ç«¯åã¨ããã¿ãªã®å°ä¸æ³¢ 2æ¬ï¼BS/CS 2æ¬ã1ã¤ã®æ©å¨ãã綺éºã«åºããã£ã¦ã®ã¯ç²¾ç¥è¡çä¸é常ã«ããã§ãï¼ãªã¹ã¹ã¡ï¼
PT2ã®ãã©ã¤ãå¨ã
åã«PT2使ããããã«ããã ããªã®ã§foltiaé¢ä¿ãªãã§æ¢åã®æ¹æ³ãå²ã¨ä½¿ããã®ã§ããï¼ãã®æ å ±ãfoltiaã«æ¬å½ã«é¢ä¿ãªãããããããªãã£ãããï¼çµå±æéãããã¾ããï¼
- ã¾ãã¯$adduser foltia 以ä¸ã®æµãã¯åºæ¥ãéãfoltiaã¦ã¼ã¶ã¼ã§è¡ãï¼
- å¿ è¦ãªããã±ã¼ã¸ãå ã«å ¥ãã¦ããï¼$ apt-get install g++ libboost-filesystem-dev libboost-thread-dev libglib2.0-dev libpcsclite-dev libccid libglib2.0-dev libpcsclite-dev libccid pcscd libboost-regex-dev pcsc-tools
- makeæã«ç¡ãã¦æ»ããã®ã§ï¼ãããå ã«å ¥ãã¦ããï¼$ apt-get install build-essential linux-headers-`uname -r`
- PT1ãã©ã¤ãå¨ããè©°ã¾ã£ã¦ãc44e16dbb0e2.tar.bz2ã£ã¦ã®ãã©ã£ãããæã£ã¦ãã¦foltiaã¦ã¼ã¶ã¼é åã«ã§ã解åãã¦ããï¼ãã®ã¨ãï¼pt1-ã»ãã»ãã¨ãããé·ãååãªã®ã§é©å½ã«ãªãã¼ã ããæ¹ã楽ï¼ããã¯æå·å¨ãã®arib25ã£ã¦ã®ãå«ã¾ããæçµverãããï¼ææ°ãã©ã¤ãã¨arib25ãå¥ã«è½ã¨ãã¦ããï½ï¼ã¾ãï¼èªåã¯æ¯ãã¦ãã¤ãã§ï¼
- BSã¸ã®çµ¦é»ã§ããLNBé»æºå¨ãã®ãªãã·ã§ã³ãããã®ã§ï¼ç°å¢ã«ãã£ã¦ã¯pt1_pci.cã®static int lnb = 0;ã2ã«æ¸ãæãï¼
- ./driverå ã§make && $make install ãã®æï¼ã¨ã©ã¼ãåºããèªåã§ã·ã³ããªãã¯ãªã³ã¯å¼µãç´ãã¨ãï½ï¼
- /lib/modules/'uname -r'/kernel/drivers/video/pt1_drv.koãåºæ¥ã¦ããå®æï¼
- å¾ã ã§ãããã®ã§ï¼ããã¤ã¹ã®åèªèãåèµ·åå¾ã«$ lspci -v | grep ptã§ããã£ã½ãã®ãåãã¦ãã®ã確èªãã¦ããã¨å¹¸ãï¼
- ./arib25ã./recpt1ãåãã$make && make install
- ./b25_docå ã®libccid_Info.plistã§ããã¤ã¹ã®ãã¼ã¸ã§ã³ãéãäºããããããããï¼:1,$s/1.3.1/1.3.8/gã§å ¨ç½®æå¾ï¼$ cp libccid_Info.plist /etc/libccid_Info.plistï¼
- ãã¼ã¢ã³åèµ·å /etc/init.d/pcscd restart
- $pcsc_scanã§ããã¼ã£ã¨åºã¦B-CASã®æåå確èªã§ããã°ãï½ï¼
- ããï¼é²ç»ãã¹ãã§ããï¼é©å½ãªå ´æã§$ recpt1 --b25 --device /dev/pt1video2 ãã£ã³ãã«æ° ç§æ° test.ts
ãï¼ç°¡åã§ããï¼
PostgreSQLå°å ¥
foltiaã¯å²ã¨æ´å²ããããããªã®ãï¼PostgreSQLã®EUC-JPã¨ããç´ æµãªæ§æãªã®ã§ï¼é å¼µãã¾ãããï¼
- $ apt-get installã§postgresql-8.3, postgresql8.3-server-dev-8.3, lbdbd-pg-perl, libwww-perl, libjcode-pm-perl, libschedule-at-perlãå°å ¥ï¼
- ãã£ããpostresqlæ¢ããï¼
- postgresã¦ã¼ã¶ã¼ã¸ï¼
- postgresã¦ã¼ã¶ã¼ã§å¼ãã®ã§ï¼é©å½ã«/var/liv/postgresql/8.3ã¨ãã«æ¨©éä»ãï¼ãã®è¾ºã¯ã¢ããªãã§ï¼
- ç¾ç¶ã®./mainãæ¶ããªãããã¯ã¢ãããããªããã¦ï¼mkdir mainï¼ä¸å¿ï¼ææè 以å¤ã®æ¨©éåã£ã¦ããï¼
- $ /usr/lib/postgrespl/8.3/bin/initdb --encoding=EUC-JPã§DBåæ§ç¯
- ./mainå ã«ãµã¼ãã¼è¨¼ææ¸ã¨ããããããã®ã§ï¼ããããªæããå¼ã£å¼µã£ã¦ããï¼/etc/postgresql-common/root.crtã¨ï¼/etc/ssl/certs/ssl-cert-snakeoil.pemï¼ /etc/ssl/private/ssl-cert-snakeoil.keyãªã®ã§ï¼ã³ãã¼ãã¦é©å®ãªãã¼ã ã»æ¨©éä»ãï¼ã·ã³ããªãã¯ãªã³ã¯è²¼ãã¨ï¼æ¨©éå¨ãã§DBéå§åºæ¥ãªãã£ãï¼ãªããããã»ãï¼
- rootã«æ»ã£ã¦ï¼ $ /etc/init.d/postgresql-8.3 start
- postgresã«æ»ã£ã¦ï¼ psql -lã§åä½ç¢ºèªï¼EUC-JPã®ãã¼ãã«ç¢ºèªã§ããããï½ï¼
- ã¦ã¼ã¶ã¼ãã®ã¾ã¾ã§$createuser -P foltiaï¼å ¨é¨nï¼ãã§ï¼æ´ãã¦$ createdb --owner=foltia foltiaãã©ããï¼
注æç¹ã¯1ã«ã2ã«ãEUC-JPã®ãã¼ã¿ãã¼ã¹ã ã£ã¦ãã¨ï¼å¾ã§çæ»ããªãããã«æ³¨æï¼
Apacheå¨ã
- apache2, libapache2-mod-php5, phppgadminã¤ã³ã¹ã³ï¼
- /etc/apache2/conf.d/ã§ï¼foltia.confãä½ã£ã¦ããï¼å 容ã¯é©å®ï¼ãµã ãã¤ã«è¡¨ç¤ºç¨ã«ï¼AddType image/jpeg .THMã§mime type追å ãã¦ããï¼
- ã¤ãã§ã«phppgadminå ã«php_flag register_globals Onãå ¥ãã¦ããï¼ç²¾ç¥è¡çä¸.htaccessã®æ¹ããã人ã¯ãã£ã¡ã§ï¼ãããããï¼
- /etc/apache2/envvarsã«export APACHE_RUN_USER=foltiaã追è¨ï¼
- Apache2åèµ·å
Debian使ãã«ã¯é迦ã«èª¬æ³ããããã¾ãããï¼Debianç³»ã§ã®httpd.confã¯å¤ãªã®ã§ï¼Fedoraç³»ã®ç¥èã¯ä½¿ãã¾ããï¼
foltiaå ¥ããããã®ä¸æºå
- ã¾ãmplayerï¼ãµã ãã¤ã«ä½æç¨ã®jpegã©ã¤ãã©ãªè¾¼ã¿ã§makeãããã¼ï¼é©å½ãªã¨ããã§$ wget http://www.ijg.org/files/jpegsrc.v7.tar.gzãã¦ï¼ãã¨ã¯è§£åããmake installã¾ã§ããããï¼
- $ ln -s /usr/local/lib/libjpeg.so.7 /usr/lib/libjpeg.so.7ã§ã·ã³ããªãã¯ãªã³ã¯è²¼ã£ã¨ãã¦ï¼ãã¾ããªãç¨åº¦ã«$ ldconfigãã¦ããï¼
- MP4Boxãå«ã¾ããgpacããã±ã¼ã¸ãé å¼µã£ã¦å ¥ããï¼ ./configureçµãã£ããï¼$ cp config.h include/gpac/internal/ ããã®$ make lib appsãããã®ãã³ãï¼
- apt-getã§ImageMagickã¨wineå ¥ããï¼
- foltiaã§ä½¿ãPerlã¢ã¸ã¥ã¼ã«ããããå ¥ããï¼CPANã§Time::HiRes Schedule::At DBD::Pg Jcodeï¼
- å ¥ãã¦ãªã人ã¯ï¼ã©ãã«ãããã°ã£ã¦Subversionå ¥ããï¼
- /home/foltiaã¨ãã®é©å½ãªã¨ããã§éæ³ã®åªæ $ svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
- ./configure --prefix=/usr --enable-jpegã«ã ã注æãã¦ï¼æ®éã«makeã¨installï¼
- ããããããå¿ãæããããªã®ã§ï¼å ã«foltiaã®æ¬å°ãæãã¨ããï¼/home/foltiaã¨ãã®é©å½ãªã¨ããã§éæ³ã®åªæ $ svn co http://svn.dcc-jpl.com/foltia/trunk foltia
- å¿ãæããï¼
ä»æ¥ã®ã¾ã¨ã
ããã¾ã§ã§æ¥ä»å¤ãã£ã¦å¿ãæãã¾ããï¼ãã£ã¦ï¼å¾åãæ£è§£ãã©ããã¯ãããã¾ããï¼ãã¶ãï¼ãã¨ã§ãã¡ãã¨ã¾ã¨ãã¾ãï¼ããããªãï¼