Skip to main content

Adding Hulu Desktop to MythTV

cd /usr/share/mythtv
vi library.xml

Add the code below in whatever order you would like it to show in the Menu:

   <button>
     <type>STREAM</type>
     <text>Hulu Desktop</text>
     <action>EXEC /usr/bin/huludesktop</action>
   </button>

Now you can find the Hulu Desktop menu option by going to:
Media Library -> Hulu Desktop

UPDATE (04/11/2010):

After updating to MythTV .22 the above location of library.xml has changed.

It is now stored in:

Setting up X10 MouseRemote in Fedora

Untar latest source (version I modified) in /usr/src/mremote.

Run the following:
cd /usr/src/mremote
make
make install
cp mrlauncher /usr/local/bin
cp mouseremote /etc/init.d/
chkconfig mouseremote on
service mouseremote start

Add the following to /etc/X11/xorg.conf:
(note the AutoAddDevices option allows it to use the mouse/keyboard section below)

Setting up FreshRPMs and Installing libdvdcss

wget http://ayo.freshrpms.net/fedora/linux/11/i386/freshrpms/RPMS/freshrpms-…
rpm -ivh freshrpms-release-1.2-1.noarch.rpm
yum update freshrpms-release
vi /etc/yum.repos.d/freshrpms.repo (uncomment the #baseurl line)
yum install libdvdcss

NOTE: The FreshRPM servers in their repo file do not apear to be valid. Try manually downloading the RPM from here:

http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/11/libdvdcss/

Bash loop with End of Line as delimiter

Here is how you do a for loop that uses the end of the line as the delimiter instead of space delimited.
The reason this is better is that you can set variable inside the loop and check them outside unlike doing it with a while read loop.
The testfile.data file can now have spaces on each line.

#!/bin/sh

IFS="
"

for i in `cat testfile.dat`
do
        CHECK="test"
        echo $i
done
echo ${CHECK}

Resize Pics in current directory

How to resize all the pics in the current directory to all have the vertical resolution of 500:

mogrify -resize x500 *

NOTE this will CHANGE all the files in the current directory so run this on a COPY of your original files.

Do this for all files before uploading to Flikr to save on your monthly transfer amount. This is the size Flikr will resize them too.

Subscribe to