Page 1 of 1

Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 11 Mar 2014, 21:59
by aelg305
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

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 12 Mar 2014, 00:05
by zeiram
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).

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 26 Apr 2014, 00:54
by wtvar
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)

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 26 Apr 2014, 16:38
by mrc0mmand
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

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 26 Apr 2014, 17:48
by fox
replace screen with tmux ^

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 26 Apr 2014, 21:03
by sleeper_service
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.

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 26 Apr 2014, 23:05
by mrc0mmand
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.

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 28 Apr 2014, 16:43
by wtvar
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.?

Re: Tutorial Raspberry Pi + TTRSS + OwnCloud

Posted: 28 Apr 2014, 17:25
by basica
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.