Ubuntu 9.10㧠DAViCAL 9.7.0 ã試ã
infoScoop Calendarã¯CalDAVãµã¼ãã¼ã¨ãã¦前の日記ã§ãç´¹ä»ããBedeworkãæ¡ç¨ãã¦ãã¾ãããCalDAVãµã¼ãã¼ã®é¸å®ã«ã¯ããã¤ãã®ãµã¼ãã¼ã試ãã¾ããã
試ããã®ã¯ãBedeworkã®ä»ã«PHPã®CalDAVãµã¼ãã¼å®è£
ã®DAViCalãChandler Server(cosmo)ãDawing (Appleã®CALDAVãµã¼ãã¼)ã試ãã¾ããã
ãã£ãããªã®ã§ãDAViCalã®ã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦æ¹ãã¦ã¾ã¨ãã¦ãããã¨æãã¾ãã
OSã¯Ubunutu9.10ã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããã
ã¢ã¸ã¥ã¼ã«ã®ãã¦ã³ãã¼ãã¯SourceForgeããã§ãã¾ãã2010å¹´4æ22æ¥ç¾å¨ã®ææ°ã¯0.9.8.4ã§ãã
DAViCalãæ¡ç¨ããªãã£ãçç±ã«ã¯ãCalDAV Schedulingãæªå®è£
ã§ãããã¨ã¨ã大ããã£ãããã§ãããéçºãµã¤ããè¦ã¦ããã0.9.9ã§å®è£
ããããããã§ãã
ãã®è¨äºã0.9.9ããªãªã¼ã¹ããã¦ããæ¸ããæ¹ãè¯ãã£ããããªæ°ããã¾ãããã¾ããªãªã¼ã¹ããããæ¹ãã¦ã¾ã¨ãããã¨æãã¾ããã¡ãªã¿ã«ãCalDAV Schedulingã¯ã¾ã ãã©ããã§ãGoogle Calendarã®CalDAVãå®è£
ããã¦ããªãã§ãããä»å¾å®è£
ãé²ããã©ããã¯ãã¾ã å¾®å¦ãªã¨ããããããã¾ããã
ã§ã¯ãã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦ã¾ã¨ãã¦è¡ãã¾ãã
åææ¡ä»¶
åææ¡ä»¶ã¯ã以ä¸ã®ã½ããã¦ã§ã¢ãå¿
è¦ã«ãªãã¾ãã
äºãã¤ã³ã¹ãã¼ã«ãã¦ããã¦ãã ããã
- Apache2
- PHP5.1以ä¸($apt-get install php5-pgsql)
- PostgreSQL 8.1以ä¸(sudo apt-get install postgresql)
Ubuntu 9.10ã§ã¯ãApacheã¯2.2ãPHPã¯5.2.10ãPostgreSQLã¯8.4ãå
¥ãã¾ãã
ãã¼ã¿ãã¼ã¹ã®åæåãããã§å¿
è¦ãªã以ä¸ã®ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ãã¦ããå¿
è¦ãããã¾ãã
$sudo apt-get install libdbi-perl libdbd-pg-perl libyaml-perl pwgen
ç¨æãã§ããããDAViCalãã»ããã¢ãããã¦ããã¾ãã
DAViCalã®ã¤ã³ã¹ãã¼ã«
ãã¦ã³ãã¼ããµã¤ãããå ¥æã§ããã¢ã¸ã¥ã¼ã«ã®æ¹ãæ°ããã§ãããUbuntuãªã®ã§ä»ã®ããã±ã¼ã¸åæ§apt-getã§ã¤ã³ã¹ãã¼ã«ãã¦ãã¾ãã¾ãã
$ sudo apt-get install davical
ubuntu 9.10ã§ã¯ã0.9.7.0ãå ¥ãã¾ããã
ãã¼ã¿ãã¼ã¹ã®æºå
次ã«ãDAViCalç¨ã®ãã¼ã¿ãã¼ã¹ãç¨æãã¾ãã
$ sudo -su postgres $ /usr/share/davical/dba/create-database.sh
"davical"ã¨ãããã¼ã¿ãã¼ã¹ãä½æããã¾ãã
ã·ã§ã«ãçµããã¨ããã¼ã¿ãã¼ã¹ã¦ã¼ã¶"davical_dba"ã¨"davical_app"ã«ãã¼ã¿ãã¼ã¹"davical"ã¸ã®ã¢ã¯ã»ã¹ã許å¯ããããã«ph_hga.confã«è¨å®ãããã¨è¨ããã¾ãã
ããã¯ãINSTALLããã¹ãã«æ¸ãã¦ããªãã®ã§æ³¨æã§ãããµã¤ãã®インストールガイドã«ã¯ã¡ããã¨æ¸ãã¦ããã¾ããã
以ä¸ã®ã¨ã³ããªã¼ãpg_hba.confãã¡ã¤ã«ã«è¿½å ãã¾ãã
$sudo vi /etc/postgresql/8.4/main/pg_hba.conf
# local DATABASE USER METHOD [OPTIONS] # host DATABASE USER CIDR-ADDRESS METHOD [OPTIONS] # hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS] # hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS] local davical davical_app trust local davical davical_dba trust #
ã¤ã³ã¹ãã¼ã«ã¬ã¤ãã«ã¯å é ã«è¿½å ããã¨æ¸ãã¦ãã£ãã®ã§ã"# hostnossl DATABASE.."ã¨æ¸ãã¦ããå¾ãã«è¿½å ãã¦ã¿ã¾ããã
PostgreSQLåèµ·åãã¾ãã
$sudo /etc/init.d/postgresql-8.4 restart
Apacheã®è¨å®
次ã«ãINSTALLããã¥ã¡ã³ãã®éãApacheã®Virtual Hostãè¨å®ãã¾ãã
$ sudo vi /etc/apache2/sites-available/default
以ä¸ã¯ããã¥ã¡ã³ãã®è¨å®ãã³ãããã¦ãIPã¢ãã¬ã¹ã ãå¤ãã¾ããã
# # Virtual Host def for Debian packaged DAViCal <VirtualHost 192.168.1.2 > DocumentRoot /usr/share/davical/htdocs DirectoryIndex index.php index.html ServerName davical.example.net ServerAlias calendar.example.net Alias /images/ /usr/share/davical/htdocs/images/ php_value include_path /usr/share/davical/inc:/usr/share/awl/inc php_value magic_quotes_gpc 0 php_value register_globals 0 php_value error_reporting "E_ALL & ~E_NOTICE" php_value default_charset "utf-8" </VirtualHost>
a2ensiteã§è¨å®ãæå¹ã«ãã¾ãã
$ sudo a2ensite
DAViCalã®è¨å®ãã¡ã¤ã«ãä½æ
次ã«ãDAViCalã®è¨å®ãã¡ã¤ã«ãä½æãã¾ãã
è¨å®ãã¡ã¤ã«ã¯ã/etc/davical/
$ sudo vi /etc/davical/davical.example.net-conf.php
<?php $c->pg_connect[] = 'dbname=davical user=davical_app'; ?>
以ä¸ã§ãã»ããã£ã³ã°ã¯çµäºã§ãã
åä½ç¢ºèª
http://192.168.1.2/ã«ã¢ã¯ã»ã¹ãã¦ã¿ã¾ãã
以ä¸ã®ãããªãã°ã¤ã³ç»é¢ã表示ãããã°ã»ããã¢ããã¯æåã§ãã
ããã©ã«ãã®ç®¡çè
ã¦ã¼ã¶ã¯ã"admin"/"Ni4Eo-P<"ã§ãã
ã¦ã¼ã¶ã®è¿½å ã¯ã[Users]ã¿ãã®[New User]ããè¡ãã¾ãã
CalDAVã®URLã¯ããã¡ãã«ãªãã¾ãã
http:///caldav.php/ /home
Sunbirdã«è¿½å ãã¦ã¿ã¾ãã
Sunbirdã®[ãã¡ã¤ã«]â[æ°ããã«ã¬ã³ãã¼]â[ãããã¯ã¼ã¯ãµã¼ãã¼ã«ä¿åãã]â[CalDAV]ã¨é¸æãã¦ä¸è¨ã®URLãæå®ãã¾ãã
ç¹°ãè¿ããªã©ãã¡ããã¨å
¥ãã¾ããã
空ãæéæ¤ç´¢ã¯ã¹ã±ã¸ã¥ã¼ãªã³ã°ã®æ©è½ã«ãªãã®ã§ãã¯ãåããªãã§ããã
ãã¼ã¿ãã¼ã¹ã®ä¸èº«ãè¦ãã¨ãåå è
ã¯LOBãã¼ã¿ã®iCalã®ããã¹ãã«ã®ã¿æ ¼ç´ããã¦ãã¾ããä»å¾ã空ãæéæ¤ç´¢ãã¹ã±ã¸ã¥ã¼ã«ã¡ãã»ã¼ã¸ãªã©å®è£
ãããã¨ã«ãªãã¨ã«ã©ã ã«å±éããã¨ãã«ãªããã§ããããã0.9.9ã¯ã»ã¨ãã©å®è£
ãçµãã£ã¦ããããªã®ã§ãªãã¸ããªè¦ã¦ã¿ãã°è¯ããã§ããä»æ¥ã¯ããã¾ã§ã