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 192.168.1.100)
#! /bin/bash
log="~/myth-tv.log"
#set the IP of your backend server.
IP=192.168.1.100
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 127.0.0.1:
$ grep 127.0.0.1 config.xml mysql.txt
config.xml: 127.0.0.1
mysql.txt:DBHostName=127.0.0.1
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.