All posts for the month March, 2009

When you record something on mythtv it creates a entry in the database and names the resulting recorded file.  However, if you were to look in the recordings directory you would see that the given name is a bit hard to figure out.  In this post I will show you how to create a directory that holds links to these files with user friendly names.  In Mythbuntu there is a script which does most of the work for us. We’ll then share that directory on a network via SAMBA and NFS

1.  On your myth box open a terminal window (or ssh into the myth box).

2.  Change directory to /home/mythtv and create a directory called readable-recordings.

prompt$ cd /home/mythtv

prompt$ sudo mkdir readable-recordings

3.  Change directory to /usr/share/doc/mythtv-backend/contrib and locate the file named

prompt$ cd /usr/share/doc/mythtv-backend/contrib

Unzip the file:

prompt$ sudo gunzip /usr/local/bin/

Make the file executable:

prompt$ sudo chmod a+x /usr/local/bin/

Move the file decompressed file to /usr/local/bin:

prompt$ sudo mv /usr/share/doc/mythtv-backend/contrib/ /usr/local/bin

Your ads will be inserted here by

Easy AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot OR
Suppress Placement Boxes.

4.  Run the script with the –link option:

prompt$ /usr/local/bin/ --link /home/mythtv/readable-recordings

The files in the readable-recordings directory should be easy to read with the proper episode name and title of the recording.

5.  Setup the script to run automatically.   This script works great but does not run automatically so we need to schedule it with cron to do this hourly.

prompt$ sudo nano /etc/crontab

Create the following entry to run the script every hour:
0 * * * * /usr/local/bin/ --link /home/mythtv/readable-recordings

5.  Sharing the readable-recordings. From the MythUbuntu Control Center select services from the right side menu.  You should see options to enable NFS and SAMBA sharing directory.   Then go to the desktop Applications –>System–>Shared Folders.   The shared folders application will appear with functions locked.  Click on the unlock button to allow editing.  Create an entry for the readable-recordings directory for SAMBA and one for NFS.  **Note if you are going to NFS share with a OS X box you will need to edit the /etc/exports file to include the insecure option.

Restart Samba:

prompt$ sudo /etc/init.d/samba restart

Restart NFS

prompt$ sudo /etc/init.d/nfs-kernel-server restart

You should now be able to mount the shared file system from the network