[mythtv-users] Autostart of MythTV
Marius Kjeldahl
marius at kjeldahl.net
Wed Aug 6 17:53:59 EDT 2003
On Wednesday 06 August 2003 16:44, Yannick wrote:
> Hello !
>
> I've seen the following point in the documentation:
>
> 19.3: I'd like MythTV to automatically startup.
>
> Interesting, but I presume that I must at least log in with your login
> and password in xdm...
>
> How could I configure my system to let it start everything without any
> user action ?
1. Create an auto-login executable (assuming you want to run as something
other than root):
int main () {
execlp ("login", "login", "-f", "username", 0);
}
2. Install this somewhere (e.g. /usr/local/bin)
3. Update inittab and set the terminal to point to your autologin executable:
c1:12345:respawn:/sbin/agetty -n -l /usr/local/sbin/autologinusername 38400
tty1
(all in one line)
4. Update your .bash_profile, append something like:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/vc/1 ]; then
startx
fi
5. Update your .xinitrc to something like:
fluxbox &
exec /usr/bin/mythfrontend &>/tmp/mythfrontend
(assuming you are using fluxbox)
In addition, mythbackend needs to run as well.
Somebody else might have an easier method, for instance using auto-login
features in kdm/xdm etc. The method I mentioned (shamelessly collected
through various hints elsewhere) should be fairly distribution and window
system agnostic.
Regards,
Marius Kjeldahl
More information about the mythtv-users
mailing list