A few things, mostly technical notes...

Tuesday, November 22, 2011

the thin myth-tv frontend

Running a thin myth-tv frontend:

Here's how to setup a thin frontend for mythtv with minimal config and filesets.

Install mythtv frontend and socat on your machine.

# apt-get install mythtv-frontend socat

Create a file called ~/bin/thin-myth.sh:
(in my case, the IP of my backend server is

#! /bin/bash

#set the IP of your backend server.

xrandr >> $log
socat -b 128000 -d -d -lmlocal2 TCP4-LISTEN:3306,fork,reuseaddr  TCP4:$IP:3306 &
socat -b 128000 -d -d -lmlocal2 TCP4-LISTEN:6543,fork,reuseaddr  TCP4:$IP:6543  &
/usr/bin/mythfrontend -l $log

Ensure that DBHostname in ~/.mythtv/config.xml and ~/.mythtv/mysql.txt is set to

$ grep config.xml mysql.txt

Launch ~/bin/thin-myth.sh and enjoy.

How does it work?
socat listens on 3306,6543 for mysql and mythbackend ports respectively and relays those onto your 
mysql and mythbackend ports on your backend server. 
more here.. 

No comments:


Creative Commons License
This work is licensed under a Creative Commons License.