« »
2008-02-031.Application

227

Tiny Tiny RSS: 打造自己的 Web RSS Reader

境:

  • Fedora Core 1
  • mysql 3.23.58
  • php 4.4.6
  • Firefox / Opera browser (IE 的支援性較差)

升級 MySQL 至 4.1

MySQL for Linux x86 generic RPM (dynamically linked) downloads

  • Server
  • Client programs
  • Libraries and header files
  • Shared compatibility libraries

rpm -Uvh *.rpm

重新編譯 PHP

make clean

./configure 加入以下參數

–with-mysql=/usr
–enable-mbstring
–enable-mbstr-enc-trans
–enable-pcntl
–with-dom
–with-xmlrpc
–with-gettext

make && make install

完成後重新啟動 httpd server

安裝 Tiny Tiny RSS

Tiny Tiny RSS 官方網站下載最新版本 (以 1.2.11.1 為例)

wget http://tt-rss.spb.ru/download/tt-rss-1.2.11.1.tar.gz

tar zxf tt-rss-1.2.11.1.tar.gz

mysql -u root -p -A mysql

mysql> create database ttrss;
mysql> grant all privileges on ttrss.* to mysql@localhost;
mysql> flush privileges;
mysql> exit

mysql -u mysql -A ttrss < tt-rss-1.2.11.1/schema/ttrss_schema_mysql.sql

vi tt-rss-1.2.11.1/config.php-dist

define(‘DB_TYPE’, “mysql“);
define(‘DB_HOST’, “localhost“);
define(‘DB_USER’, “mysql“);
define(‘DB_NAME’, “ttrss“);
define(‘DB_PASS’, “”);

cp -R tt-rss-1.2.11.1 /var/www/html/tt-rss

cd /var/www/html/tt-rss

chmod 777 icons

mv config.php-dist config.php

設定自動更新

vi /var/www/html/tt-rss/config.php

define(‘ENABLE_UPDATE_DAEMON’, true);

vi /usr/local/bin/ttrss_daemon.sh

#!/bin/bash

while true; do

/path/to/php /var/www/html/tt-rss/update_daemon.php > /dev/null 2>&1
rm -f /var/www/html/tt-rss/update_daemon.lock
sleep 10

done

chmod +x /usr/local/bin/ttrss_daemon.sh

/usr/local/bin/ttrss_daemon.sh &

利用 Firefox 訂閱

編輯 user.js

user_pref(“browser.contentHandlers.types.nr.title”, “Tiny Tiny RSS”);
user_pref(“browser.contentHandlers.types.nr.type”, “application/vnd.mozilla.maybe.feed”);
user_pref(“browser.contentHandlers.types.nr.uri”, “http://your.domain.dom/url-to-tt-rss/backend.php?op=pref-feeds&subop=add&feed_url=%s&quiet=1&from=firefox“);

將 nr 改為數字, 通常為 6 (以 about:config 查詢 browser.contenthandlers 找出最大值 + 1)

將 http://your.domain.dom/url-to-tt-rss/ 改成自己的 URL

把 user.js 放入 profile 資料夾

Windows 2000/XP: %AppData%\Mozilla\Firefox\Profiles\default.???

Linux: ~/.mozilla/firefox/????????.default

重新啟動 Firefox, 瀏覽網頁時點選網頁上的 RSS Feed Link 或網址列裡的 圖示, 再選擇使用 Tiny Tiny RSS 訂閱即可

Ref: Tiny Tiny RSS – Integration with Firefox 2.0

您还可能感兴趣的内容

日志信息 »

该日志于2008-02-03 16:19由 x72 发表在1.Application分类下, 通告目前不可用,你可以至底部留下评论。

没有评论

发表评论 »


返回顶部