Tutorial Raspberry Pi + TTRSS + OwnCloud

If you run tt-rss on an officially unsupported platform (shared hosting, Windows, etc.) post here
aelg305
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 02 Apr 2013, 17:05

Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby aelg305 » 11 Mar 2014, 21:59

I put together this tutorial to have the following systems workings under one: OwnCloud, TinyTny RRS and Ninja Blocks (next app to be added: xbmc, but currently under development - memory its a big issue)

For those that have not read about NinjaBlocks, its basically in a nutshell a sensor added to your Pi, so, if you buy the HUE phillip light bulbs, or a door bell with 433mhz capabilities, you in turn could control or set rules to use these devices with your Pi!

My Setup:
-Raspberry Pi B
-LAN connection
-SD 8GB
-Ninja Pi Crust

Installed Packages:
-Raspbian 2013-02-09 (apparently NB has compatibility issues with newer versions - suggestion appreciate it)
-Apache 2
-PHP5
-MySQL
-PHPMyAdmin

Tutorial can be found under: http://andreslopez.us/blog/?p=483
Updates, corrections, comments; are always welcome.
setting up TTRSS should be similar to any normal linux-dist installation

zeiram
Bear Rating Trainee
Bear Rating Trainee
Posts: 12
Joined: 29 Apr 2013, 17:04

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby zeiram » 12 Mar 2014, 00:05

My advice would be to replace Apache by either Nginx or Lighttpd, and MySQL by PostgreSql (as both tt-rss and OwnCloud support both DBs). You will then use a lot less resources on your RPi (the switch from MySQL to PostgreSql alone made my RPi write a lot less on the SD card and thus also freed a lot of CPU cycles to do other things).

wtvar
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 26 Apr 2014, 00:49

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby wtvar » 26 Apr 2014, 00:54

hi,
im also using ttrss on raspberry. just managed to get it to work but im a bit of a noob.
used the update once to update all my feeds, but wondering how to have it run in background?
used "Run: php ./update.php --daemon" which i found here: http://tt-rss.org/redmine/projects/tt-r ... atingFeeds
but i cant just leave that open running in a window.. how do i make it run in background?
and if youve tried it, how cpu hungry/how much does it slow down the pi.
also want to run some other stuff (owncloud, webserver)

mrc0mmand
Bear Rating Trainee
Bear Rating Trainee
Posts: 16
Joined: 06 Feb 2014, 21:49

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby mrc0mmand » 26 Apr 2014, 16:38

wtvar wrote:hi,
im also using ttrss on raspberry. just managed to get it to work but im a bit of a noob.
used the update once to update all my feeds, but wondering how to have it run in background?
used "Run: php ./update.php --daemon" which i found here: http://tt-rss.org/redmine/projects/tt-r ... atingFeeds
but i cant just leave that open running in a window.. how do i make it run in background?
and if youve tried it, how cpu hungry/how much does it slow down the pi.
also want to run some other stuff (owncloud, webserver)


The simplest way is to run update daemon in screen. Just install package screen via your package manager and run a new instance of screen - e.g. screen -dmS ttrss /usr/bin/php <path-to-update-deamon> --daemon. (Your location of PHP binary may differ, you can check it via which php)
If you want to reduce load of your rasPi, you can run update daemon e.g. every 10 minutes. You can do it via update_daemon2.php script - update_daemon2.php --tasks 1 --interval 600

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby fox » 26 Apr 2014, 17:48

replace screen with tmux ^

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby sleeper_service » 26 Apr 2014, 21:03

mrc0mmand wrote: You can do it via update_daemon2.php script - update_daemon2.php --tasks 1 --interval 600

I'm curious why you'd want to use the multitask daemon and tell it to only use one task.

mrc0mmand
Bear Rating Trainee
Bear Rating Trainee
Posts: 16
Joined: 06 Feb 2014, 21:49

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby mrc0mmand » 26 Apr 2014, 23:05

sleeper_service wrote:
mrc0mmand wrote: You can do it via update_daemon2.php script - update_daemon2.php --tasks 1 --interval 600

I'm curious why you'd want to use the multitask daemon and tell it to only use one task.


Well, yeah, you have a point. Cron would be a better solution here because update.php doesn't have interval parameter and using update_daemon.php with one task is pointless.

wtvar
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 26 Apr 2014, 00:49

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby wtvar » 28 Apr 2014, 16:43

hey thanks for the help.
ive typed in "sudo screen -dmS ttrss /usr/bin/php /var/www/reader --daemon"
should i get some sort of confirmation/output after this?
it just moves to the next line, and my ttrss is still saying that update daemon isnt running.?
/var/www/reader is where update.php is.
or am i doing it wrong?
also tried it with /var/www/reader/update.php --daemon like in the wiki but no difference.?

basica
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 27 Apr 2014, 11:49

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Postby basica » 28 Apr 2014, 17:25

don't run the daemon through sudo as that's probably a security risk. Most likely the easiest way depending if you can't find a init/upstart script for your distro is to run a cron job.

in the terminal type in "sudo crontab -u www-data -e" and then paste in this "*/30 * * * * /usr/bin/php /home/user/public_html/tt-rss/update.php --feeds --quiet"

change the folder to the one you have tt-rss installed in. that way your rss feed will get updated every 30mins. You might need to change www-data to another user account, depending on what you're using as a web server.


Return to “Unsupported platforms”

Who is online

Users browsing this forum: No registered users and 1 guest