[prev in list] [next in list] [prev in thread] [next in thread]
List: mythtv-users
Subject: Re: [mythtv-users] Autostart of MythTV
From: Marius Kjeldahl <marius () kjeldahl ! net>
Date: 2003-08-06 14:53:59
Message-ID: 200308061653.59879.marius () kjeldahl ! net
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic