[mythtv-users] FYI: simple mythtv boot solution (no gdm/kdm)
Paul Miller
paul at pinheiro.dyndns.org
Sat Jan 8 11:46:01 EST 2005
FYI-
I found a very simple auto login solution for mythtv that does not
require kdm/gdm.
1) create login program myth_login
$ cat myth_login.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main() {
execlp("login", "login", "-f", "mythtv", 0);
}
2) compile login program
$ gcc -o myth_login myth_login.c
3) edit mythtv's ~/.profile
$ cat .profile
#!/bin/sh
if [ -z "$DISPLAY" ]; then
startx
exit
fi
4) edit mythtv's .xsession (Debian systems)
$ cat .xsession
#!/bin/sh
xset -dpms s off &
mythfrontend
5) edit /etc/inittab such that the line below appears. You may want
to change the console device...
2:23:respawn:/sbin/getty -n -l /root/myth_login 38400 tty2
This idea is based from an article I found at:
http://www.linuxgazette.com/issue72/chung.html
-Paul
More information about the mythtv-users
mailing list