[mythtv-users] launch mythtv-setup from console script question
Tino Keitel
tino.keitel at gmx.de
Wed Feb 8 13:31:40 UTC 2006
On Wed, Feb 08, 2006 at 05:19:41 -0800, Andrew Lynch wrote:
> Hi,
>
> I am writing a console mode script to install and
> configure MythTV. I am having a problem launching
> mythtv-setup, which requires X to run, from the
> console mode.
>
> I have tried several variation of the following with
> no luck:
>
> startx &
> xhost +
> su mythtv mythtv-setup
> mythbackend & mythfilldatabase
> su mythtv mythfrontend
> xhost -
> exit
Since the DISPLAY variable is empty after the startx command, all
programs using X won't be able to run. Try something like
export DISPLAY=:0
before xhost.
Regards,
Tino
More information about the mythtv-users
mailing list