<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>LINICKX.com</title><link>https://www.linickx.com/</link><description></description><lastBuildDate>Mon, 18 Mar 2013 07:34:00 +0000</lastBuildDate><item><title>OS X: Mediatomb (luanchd) .plist file for automatic start up.</title><link>https://www.linickx.com/os-x-mediatomb-luanchd-plist-file-for-automatic-start-up</link><description>&lt;p&gt;&lt;a href="http://mackenzie.ag/2011/08/16/mac-os-x-lion-launch-daemon-config-for-mediatomb-upnp-server/"&gt;Inspired by
this&lt;/a&gt;,
but better ;)&lt;/p&gt;
&lt;p&gt;So now I have got mediatomb working, I've started on my own StartupItem
so that it loads at boot time. The reason it is &lt;em&gt;better&lt;/em&gt; is because you
can start &lt;strong&gt;and stop&lt;/strong&gt; mediatomb via launchctl.&lt;/p&gt;
&lt;p&gt;I saved the below (&lt;em&gt;the more&lt;/em&gt;) as
&lt;code&gt;/Library/LaunchDaemons/com.linickx.mediatomb.plist&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To start:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo launchctl load /Library/LaunchDaemons/com.linickx.mediatomb.plist
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To stop:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo launchctl unload /Library/LaunchDaemons/com.linickx.mediatomb.plist
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Happy Days!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&amp;gt;
&amp;lt;plist version="1.0"&amp;gt;
&amp;lt;dict&amp;gt;  
    &amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;com.linickx.mediatomb&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;
    &amp;lt;array&amp;gt; 
        &amp;lt;string&amp;gt;/usr/local/bin/mediatomb&amp;lt;/string&amp;gt;
        &amp;lt;string&amp;gt;-e&amp;lt;/string&amp;gt;
        &amp;lt;string&amp;gt;en0&amp;lt;/string&amp;gt;
        &amp;lt;string&amp;gt;-P&amp;lt;/string&amp;gt;
        &amp;lt;string&amp;gt;/Users/nick/.mediatomb/mediatomb.pid&amp;lt;/string&amp;gt;
        &amp;lt;string&amp;gt;-p&amp;lt;/string&amp;gt;
        &amp;lt;string&amp;gt;49152&amp;lt;/string&amp;gt;
    &amp;lt;/array&amp;gt;
    &amp;lt;key&amp;gt;UserName&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;nick&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;ServiceDescription&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;Run MediaTomb at boot&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;RunAtLoad&amp;lt;/key&amp;gt;
    &amp;lt;true/&amp;gt;
    &amp;lt;key&amp;gt;Nice&amp;lt;/key&amp;gt;
    &amp;lt;integer&amp;gt;20&amp;lt;/integer&amp;gt;
    &amp;lt;key&amp;gt;KeepAlive&amp;lt;/key&amp;gt;
    &amp;lt;true/&amp;gt;
    &amp;lt;key&amp;gt;StandardErrorPath&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;/Users/nick/.mediatomb/error.log&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;StandardOutPath&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;/Users/nick/.mediatomb/output.log&amp;lt;/string&amp;gt;
&amp;lt;/dict&amp;gt;
&amp;lt;/plist&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Mon, 18 Mar 2013 07:34:00 +0000</pubDate><guid isPermaLink="false">tag:www.linickx.com,2013-03-18:os-x-mediatomb-luanchd-plist-file-for-automatic-start-up</guid><category>mac</category><category>mediatomb</category><category>osx</category></item><item><title>Fedora 10 &amp; ffmpegthumbnailer</title><link>https://www.linickx.com/fedora-10-ffmpegthumbnailer</link><description>&lt;p&gt;I've recently upgraded from F7 to F10 and was surprised to see that
&lt;a href="http://code.google.com/p/ffmpegthumbnailer/"&gt;ffmpegthumbnailer&lt;/a&gt; hasn't
made it into the yum repo's yet!&lt;/p&gt;
&lt;p&gt;As I use &lt;a href="http://en.gentoo-wiki.com/wiki/MediaTomb#Video_Thumbnails"&gt;ffmpegthumbnailer for PS3 Video
thumbnails&lt;/a&gt; I
needed to find &lt;a href="http://forums.fedoraforum.org/showthread.php?t=209225"&gt;a solution to
this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If I had the time I'd knock up a .spec file &amp;amp; rpm, but for the time
being I thought I'd post my bodge.... NUMBER ONE, if you've never typed
"&lt;code&gt;configure;make;make install&lt;/code&gt;" before you need to install the
development tools.&lt;/p&gt;
&lt;p&gt;sudo yum groupinstall "development tools"&lt;/p&gt;
&lt;p&gt;Next pick up a couple of extra dependencies...&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo yum install libpng libpng-devel ffmpeg ffmpeg-devel&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You should now find that, if you download &lt;a href="http://code.google.com/p/ffmpegthumbnailer/downloads/list"&gt;the
source&lt;/a&gt;,
unpack it -
&lt;code&gt;gunzip ffmpegthumbnailer-1.5.0.tar.gz;tar -xvf ffmpegthumbnailer-1.5.0.tar&lt;/code&gt;
and &lt;code&gt;cd ffmpegthumbnailer-1.5.0&lt;/code&gt; hopefully you can complete
&lt;code&gt;./configure&lt;/code&gt; without any errors.&lt;/p&gt;
&lt;p&gt;If you try &lt;code&gt;make&lt;/code&gt; at this point it'll probably fail with errors, this is
how I fixed that....&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cd /usr/include/ffmpeg/ ln -s libavcodec/avcodec.h ./ ln -s libavformat/avformat.h ./ ln -s libswscale/swscale.h ./ ln -s libavformat/avio.h ./&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now you can... get back to the build&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cd ~/ffmpegthumbnailer-1.5.0 make sudo make install&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If all has gone well you &lt;strong&gt;&lt;em&gt;should&lt;/em&gt;&lt;/strong&gt; have a working install :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Wed, 01 Apr 2009 19:36:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2009-04-01:fedora-10-ffmpegthumbnailer</guid><category>Fedora</category><category>fedora10</category><category>ffmpegthumbnailer</category><category>Linux</category><category>mediatomb</category><category>Playstation3</category><category>ps3</category></item><item><title>Bash script to fix file permissions recursively</title><link>https://www.linickx.com/bash-script-to-fix-file-permissions-recursively</link><description>&lt;p&gt;I love the redhat implementation of cron, simply drop a shell script
into &lt;code&gt;/etc/cron.daily/&lt;/code&gt; and your script will be executed every day (&lt;em&gt;by
default at 4am&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;Recently I've been having a small
&lt;a href="https://sourceforge.net/forum/forum.php?thread_id=1961180&amp;amp;forum_id=440751"&gt;problem&lt;/a&gt;
with &lt;a href="http://mediatomb.cc/"&gt;mediatomb&lt;/a&gt;, further investigation lead me to
&lt;a href="https://sourceforge.net/forum/message.php?msg_id=4828164"&gt;a "Inotify thread caught exception"
error&lt;/a&gt; which
can be fixed by recursively resetting your file permissions.&lt;/p&gt;
&lt;p&gt;What I have done to fix the issue is save the following code as
&lt;code&gt;/etc/cron.daily/fix_mt.sh&lt;/code&gt; and 'jobs a gooden' :cool:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash
# Load up your mediatomb directories...
MediaTombDirectories[0]="/home/me/Videos"
MediaTombDirectories[1]="/home/me/Music"
# add more if needbe
# MediaTombDirectories[2]="/home/me/files"

# Setup find correctly.
export IFS=$'\n'

# Loop through our array.
for x in ${MediaTombDirectories[@]}
    do 
        # Find all directories &amp;amp; subdirectories
        for i in $(find $x -type d) 
            do 
                # Fix Permissions
                chmod -c 775 $i
                chown -c me:user $i
            done

        # Find all Files
        for i in $(find $x -type f) 
            do 
                # Fix Permissions
                chmod -c 664 $i
                chown -c me:user $i
            done
    done
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;&lt;br /&gt;
Quick tip:&lt;/strong&gt; You (&lt;em&gt;or root&lt;/em&gt;) will get e-mailed every time this
executes, you can make the script more verbos by changing all "&lt;code&gt;-c&lt;/code&gt;" to
"&lt;code&gt;-v&lt;/code&gt;", or make it silent by removing the "&lt;code&gt;-c&lt;/code&gt;" altogether.&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Thu, 26 Jun 2008 19:00:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2008-06-26:bash-script-to-fix-file-permissions-recursively</guid><category>bash</category><category>cron</category><category>Linux</category><category>mediatomb</category></item><item><title>MediaTomb makes its way into fedora</title><link>https://www.linickx.com/mediatomb-makes-its-way-into-fedora</link><description>&lt;p&gt;Looking through the my yum updates for the day I notice that mediatomb
is set for an update, is this the version 0.11 with transcoding we've
all been waiting for? Sadly no, but it is a fedora build for the default
repo - YAY :D&lt;/p&gt;
&lt;p&gt;&lt;a href="http://koji.fedoraproject.org/koji/packageinfo?packageID=5527"&gt;http://koji.fedoraproject.org/koji/packageinfo?packageID=5527&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A big thanks to
&lt;a href="http://koji.fedoraproject.org/koji/userinfo?userID=570"&gt;mwiriadi&lt;/a&gt; for
this!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Thu, 17 Jan 2008 12:13:00 +0000</pubDate><guid isPermaLink="false">tag:www.linickx.com,2008-01-17:mediatomb-makes-its-way-into-fedora</guid><category>Fedora</category><category>Linux</category><category>mediatomb</category><category>upnp</category></item></channel></rss>