Setting up Tiny Tiny RSS

Getting started
The php-xml package includes dom.so which TT-RSS requires.

 yum -y install php-xml
 echo "extension=dom.so" > /etc/php.d/dom
 mkdir /var/www/html/ttrss-1.7.4
 cd /var/www/html
 wget https://github.com/gothfox/Tiny-Tiny-RSS/archive/1.7.8.tar.gz -O tt-rss-1.7.8.tar.gz
 tar -xf 1.7.4.tar.gz -C /var/www/html/ttrss-1.7.4
 ln -s ttrss-1.7.4 rss
 chown -R root:httpd /var/www/html/ttrss-1.7.4
 chmod -R g+w,o+ /var/www/html/ttrss-1.7.4

Creating the Database

 $ mysql -p -u root
 mysql> CREATE USER 'ttrss'@'localhost' IDENTIFIED BY 'somepassword';
 mysql> CREATE DATABASE ttrss;
 mysql> GRANT ALL PRIVILEGES ON ttrss.* TO "ttrss"@"localhost" IDENTIFIED BY 'somepassword';

Update feeds from the update daemon

 # chkconfig --add ttrss --level 345
 # service ttrss start
 # chkconfig --list ttrss

/etc/init.d/ttrss

#!/bin/bash
## myapp daemon
# chkconfig: 345 20 80
# description: tt-rss update daemon
# processname: tt-rss

# Source function library.
. /etc/init.d/functions

# Define some variables
TT_PATH="/var/www/html/rss"

DAEMON=/usr/bin/php
DAEMONOPTS="update.php --daemon --feeds"

NAME=tt-rss
DESC="tt-rss update daemon"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
USER=root

case "$1" in
start)
    printf "%-50s" "Starting $NAME..."
    cd $TT_PATH
#    PID=`daemon --user=$USER $DAEMON $DAEMONOPTS`
    PID=`daemon --user=$USER $DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`
    #echo "Saving PID" $PID " to " $PIDFILE
        if [ -z $PID ]; then
            printf "%s\n" "Fail"
        else
            echo $PID > $PIDFILE
            printf "%s\n" "Ok"
        fi
;;
status)
        printf "%-50s" "Checking $NAME..."
        if [ -f $PIDFILE ]; then
            PID=`cat $PIDFILE`
            if [ -z "`ps axf | grep ${PID} | grep -v grep`" ]; then
                printf "%s\n" "Process dead but pidfile exists"
            else
                echo "Running"
            fi
        else
            printf "%s\n" "Service not running"
        fi
;;
stop)
        printf "%-50s" "Stopping $NAME"
            PID=`cat $PIDFILE`
            cd $TT_PATH
        if [ -f $PIDFILE ]; then
            kill -HUP $PID
            printf "%s\n" "Ok"
            rm -f $PIDFILE
        else
            printf "%s\n" "pidfile not found"
        fi
;;

restart)
    $0 stop
    $0 start
;;

*)
        echo "Usage: $0 {status|start|stop|restart}"
        exit 1
esac

First Run

User credentials

  • The default login credentials are “admin” and “password”. Make sure to change the default password
  • Add a new user account
  • Preferences -> Enable external API
  • Default interval between feed updates -> 15 minutes

Import your Google Reader settings

  • Goto Actions/Preferences/Feeds/OPML
  • Choose File and then “Import OPML”

TT-RSS Reader on Android
https://play.google.com/store/apps/details?id=org.fox.ttrss

TT-RSS Reader on Android Settings

  • Enable feed icons
  • Enable feed categories
  • Confirm marking articles as read

Links
http://tt-rss.org/

Advertisements
This entry was posted in internet, linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s