Sunday, December 28, 2014

DLNA Streaming from Linux --> 1st Gen Sony GoogleTV


While cleaning up my wife's tablet I found a few hundred photos/videos from 2010-2011 time frame.  I copied them all to offline storage.  My kids were having a ball watching younger versions of themselves over my shoulder, so I thought, why can't I just stream this stuff?

The Sony GoogleTV already supports streaming from other DLNA devices.  This generally includes a lot of devices, like Windows laptops, that appear on the network and make videos and pictures available to DLNA clients.

I tried a few different approaches in Linux before I found one that just worked right out of the box.

First, there's MiniDLNA (now called ReadyMedia).  This project is "sort of" supported by Ubuntu with a separate repo.  However the objects in that old repo seem out of date, and the only way to get this up and running with the latest and greatest version is by building it from source.  I didn't want to mess with that this morning, so I moved on without even giving this one a go.

Next, I found MediaTomb.  While this was relatively easy to set up under Ubuntu, I couldn't get my Sony GTV to recognize it.  My phone w/ a DLNA client, however, *would* recognize it, but it refused to play any of the content.  I messed w/ the config file and uncommented some lines for the PS3, Google'd around a bit, didn't find any solution.  Uninstalled, moving on.

I looked around for Plex, which I know is popular, but it is commerical and I didn't really like the license terms, so I moved on.

I finally found Rygel, which installed easily under Mint/Ubuntu and in literally minutes I had it running.  I also installed the companion app, rygel-preferences, which made it super easy to point to specific folders that had the content I wanted to publish. 

I did have to run "rygel &" from the commandline to start the server, but after that the Sony GTV discovered it immediately and the kids could look at all 6GB of short movies and photos.



Sunday, September 21, 2014

FreeMind XML Parse Exception When Opening an Old Map

I think this bug has been fixed in a more recent version of FreeMind, but you may go through this with version 1.0.1 for Linux, possibly for Windows also:

1.  Try to open a map


2.  Get this error


This is clearly a bug, and I haven't seen it with newer versions of FreeMind on Windows.  A workaround is to fix the first line of the .mm file in question:

<map version="0.9.0">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node CREATED="1386726098959" ID="ID_368233367" MODIFIED="1386726102812" TEXT="git">


To resolve the issue, replace "0.9.0" with "1.0.1" using a text editor, save the file, and you should be able to open the file again.

If you want to update a large number of maps try the following (Linux command line):

sed -i -e 's/0\.9\.0/1.0.1/' *.mm

The above command will look for "0.9.0" and replace it with "1.0.1" in all files named *.mm, and the -i option means it will update the file in place.

(You can also use sed under Windows, see the unixutils package at Sourceforge)

Sunday, September 7, 2014

[Linux, Mint, Ubuntu] Update FreeMind the Lazy Way...

The latest version of FreeMind in the Ubuntu repositories as of this writing is 0.9, which is quite old.  But, there is an easy way to get the latest version, use a 3rd party repo.

See here:  http://www.ubuntuupdates.org/ppa/getdeb_apps?dist=trusty
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu trusty-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'

After this, do:

sudo apt-get update

and finally:

wskellenger@marquette ~ $ sudo apt-get install freemind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  freemind-plugins-help freemind-plugins-svg freemind-plugins-script
  freemind-plugins-map freemind-browser
Recommended packages:
  freemind-doc
The following packages will be upgraded:
  freemind
1 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
Need to get 20.1 MB of archives.
After this operation, 18.3 MB of additional disk space will be used.
Get:1 http://archive.getdeb.net/ubuntu/ trusty-getdeb/apps freemind all 1.0.1-1~getdeb1 [20.1 MB]
Fetched 20.1 MB in 15s (1,319 kB/s)