Robin hit the nail on the head here... editing the inittab is the most efficient way<br><br>
<div><span class="gmail_quote">On 11/28/05, <b class="gmail_sendername">Robin Gilks</b> &lt;<a href="mailto:g8ecj@gilks.org">g8ecj@gilks.org</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>I'm running gentoo on a keyboardless/mouseless box so this is what I came<br>up with.<br><br>If not already using it, emerge mingetty and put the following into
<br>/etc/inittab - this will log you in as the mythtv user:<br>c7:12345:respawn:/sbin/mingetty --autologin=mythtv tty7<br><br>Next, make sure that you have a home directory for the mythtv user in<br>/etc/passwd:<br>mythtv:x:1000:100::/home/mythtv:/bin/bash
<br><br>In that home directory, create a .bash_profile file like this - this<br>starts up X only if running on vertual terminal 7, so if you telnet or ssh<br>into the box it doesn't throw a wobbly. It also restarts X if the frontend
<br>crashes:<br>if [ -z &quot;$DISPLAY&quot; ] &amp;&amp; [ $(tty) == /dev/tty7 ]; then<br>while [ 1 == 1 ]<br>do<br>&nbsp;&nbsp; startx<br>&nbsp;&nbsp; sleep 10<br>done<br>fi<br><br>The next step is to get X to start up a window manager and the mythtv
<br>frontend. This is done in .xinitrc which should contain something like<br>this. Note that by uncommenting a line or two I can also run up the setup<br>or an xterm:<br>xset -dpms s off<br>xsetroot -solid black<br>x11vnc -many -q -bg -rfbauth .vnc/passwd
<br>fvwm2 &amp;<br>mythfrontend &gt; /home/mythtv/mythfrontend.log 2&gt;&amp;1<br>#mythtv-setup<br>#xterm<br><br>Finally, a bit of fine tuning of the window manager (fvwm2 in my case but<br>other lightweight ones could be used). This is my .fvwm2rc file:
<br># Submitted by Scott Elliott &lt;selliott at <a href="http://insight.rr.com">insight.rr.com</a>&gt;<br>Style &quot;*&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RandomPlacement, DumbPlacement<br>Style myth*&nbsp;&nbsp;&nbsp;&nbsp; NoTitle, NoHandles, Sticky, WindowListSkip, SloppyFocus,
<br>GrabFocus, BorderWidth 0<br>Style xmame*&nbsp;&nbsp;&nbsp;&nbsp;NoTitle, NoHandles, Sticky, WindowListSkip, SloppyFocus,<br>GrabFocus, BorderWidth 0, StaysOnTop<br>Style mplayer*&nbsp;&nbsp;NoTitle, NoHandles, Sticky, WindowListSkip, SloppyFocus,<br>
GrabFocus, BorderWidth 0<br><br><br>Enjoy...<br><br>--<br>Robin Gilks<br></blockquote></div><br>