Duncan Webb wrote:
> Jonathan Isom wrote:
>> What about Trying it out as a non-root user.  executing freevo from
>> a tar ball will not run.  I do see the point but it would be nice
>> if it would not crash starting up from the exetracting directory.
>> So the are three locations for admin /var , for normal user
>> ~/.freevo, all else fail either /tmp or ./ for uninstalled tryout.
> 
> The point is:
> 
> 1 )  if you are running freevo as a non root user then you need to
> change the permissions on files and devices or add the user to a video
> and maybe an audio group.
> 
> 2) If there is a cron job that cleans up /tmp such as "find /tmp -type
> f -mtime +7 -exec rm -f {} \;" then you will lose your logos in a week.
> 
> Anyway I see your point. So...
> 
> I've just committed a change that will, hopefully, only use /tmp as a
> last resort for the files. I can't test this 100% because I'm using
> directfb and it only runs as root but it looks good up to the point of
> starting freevo. The changes are not quite complete as some of the
> setting are not yet changed and I've left in some test messages.
> 
> If you fancy testing this it would be good.

I've complete the changes for this, (left in the print of the
directories). This is what I wrote in the freevo_config.py change log.

(5.21,
'''Added OS_STATICDIR, FREEVO_STATICDIR, OS_LOGDIR and FREEVO_LOGDIR
Change static data to use /var/lib/freevo or ~/.freevo, including
TV_RECORD_SCHEDULE, TV_LOGOS, XMLTV_FILE, you may also prefer
OVERLAY_DIR to be FREEVO_STATICDIR+'/overlay'
'''),

But may need some explanation.

All the variables are first read from the environment and then the
defaults for Linux are:
FREEVO_CACHEDIR: /var/cache/freevo ~/.freevo/cache /tmp/freevo/cache
FREEVO_STATICDIR: /var/lib/freevo ~/.freevo/static /tmp/freevo/static
FREEVO_LOGDIR: /var/log/freevo ~/.freevo/log /tmp/freevo/log
It will also try /tmp/freevo-<UID>

vou may want to copy/move your TV_RECORD_SCHEDULE, TV_LOGOS, XMLTV_FILE
to the static directory *before* starting any freevo processes.

TV_RECORD_SCHEDULE contains the recording schedule *and* your recording
favourites.
TV_LOGOS and XMLTV_FILE, well these are clear.

OVERLAY_DIR contains TV recording thumbnails, plus other stuff, and
doesn't really belong in the cache directory because they are a pain to
re-create. The default has *not* changed.

All the directories are created on start-up. You may like to do a create
the '/var' directories beforehand if not running as root and changed the
ownership to your freevo user.

This should be interesting...
Duncan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to