Machine 1: Mythtv
Machine 2: Xterminal and mpd jukebox.
My problem initially started with machine 2.. I wanted to have an Xterminal, and I was using LTSP to get it. But eventaully, since this Xterminal is near my "good" stereo anyways, I wanted to use it as an mpd jukebox also. So I installed linux on the machine, and tried to get it to do both.
It seems that Gentoo is not really designed to be an Xterminal.. I tried setting up xdm with a modified Xservers to have "X --indirect xdmhost", but that gave me my selection, AND a login..
Eventaully I came to the conclusion that I can not have XDM running at all.
So. How to achieve this? Firstly, I tried just adding the X --indirect xdmhost" to the /etc/conf.d/local.start. That worked initially, except when you exited your login.
What I ended up doing was creating a script with the following code:
Code: Select all
#!/bin/bash
while true; do
X -indirect xdmhost
done
then at the end of /etc/conf.d/local.start:
Code: Select all
/sbin/Xstart &
This allows X to restart when you exit your Xterminal login.
This also closely ties into my MythTV setup.
In my mythtv setup, I have it setup similarly to the various guides in the forum and Gentoo Wiki.. I have a mythtv user that actaully runs the frontend when it logs in. The .xinitrc for my mythtv user looks like this:
Code: Select all
exec mythfrontend
Code: Select all
#!/bin/bash
while true; do
sudo -u mythtv -H startx
done
This also helps with the problem of the person using mythtv who hits buttons too fast, and exits from Mythtv, usually leaving it at the X, windowmanager, or xdm login screen... With these changes, Mythtv will actaully restart, eliminating the "THE TV IS BROKEN" phone call from the wife, when she want to watch her CSI from last night...*sigh*
Hope this proves useful to folks.
--Garion





