More MythTV: Openbox, VNC, and irexec
EPKPhoto — 15 July 2007 - 2:28pm
I made some more modifications to my MythTV system.
It is now running Openbox as its window manager...much lighter than metacity and all the gnome accessories. I mostly followed the guide here:
https://help.ubuntu.com/community/MythTV/Install/Server/Frontend
With the new Openbox config, I had to find a different way to enable a vncserver for remote access to the gui. I did this with x11vnc. To get it running, I followed some pieces of
https://help.ubuntu.com/community/x11vnc
To have x11vnc start at login, I put the following lines at the beginning of /etc/gdm/Xsession:
killall x11vnc &>/dev/null
x11vnc -rfbauth /etc/vncpasswd -rfbport 5900 -shared -forever -desktop UbuntuMythTV -bg
Lastly, I configured irexec to also start at login so I could use the Hauppauge remote to launch the MythTV frontend from the Openbox desktop. I have MythTV set to launch at login, but it is nice to be able to relaunch the frontend with the remote if I accidentally quit it. To start irexec at login, I placed the following lines in /etc/gdm/Xsession just below the x11vnc lines:
killall irexec
/usr/local/bin/irexec -d
I also created a ~/.lircrc file to tell irexec what to do:
# Launch mythfrontend (with my custom script)
begin
prog = irexec
button = Power
repeat = 3
config = start-myth&
end
and /usr/bin/start-myth:
#!/bin/sh
# Eric Kerby, July 2007
# see if mythfrontend is already running
# if not, start it
if ps ax | grep -v grep | grep mythfrontend > /dev/null
then
echo "Do nothing..." > /dev/null
else
/usr/bin/mythfrontend&
fi
- EPKPhoto's blog
- Login to post comments