KerbyServer

  • kerby's tech notes
  • kerbyserver.net
  • epkphoto.com
Home › Blogs › EPKPhoto's blog

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

  • irexec
  • lirc
  • MythTV
  • Openbox
  • Ubuntu
  • VNC
  • EPKPhoto's blog

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

irexec

nealio (not verified) — 27 April 2009 - 5:25pm

thanks buddy. this blog helped me sort out some irexec issues when trying to load it at startup. nothing else seemed to work me but putting the load into /etc/gdm/Xsession did the trick.
thanks again!

  • reply

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <img> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Syndicate

Syndicate content

User login

  • Request new password
  • kerby's tech notes
  • kerbyserver.net
  • epkphoto.com

Content © Eric Kerby