[mythtv-users] Startup Frontend via SSH
Michael T. Dean
mtdean at thirdcontact.com
Mon Jul 28 17:35:59 UTC 2008
On 07/28/2008 01:16 PM, David Brieck Jr. wrote:
> On Mon, Jul 28, 2008 at 1:04 PM, Michael T. Dean wrote:
>
>> Shell in with an interactive session. Then, on a console on the local
>> (mythfrontend) system, run:
>>
>> xauth list
>>
>> then do the same from the ssh session and compare the output. Chances
>> are you'd see a couple lines for your host/display (hostname:0 with and
>> without the /unix). The important thing is that the cookie value (3rd
>> column) is the same locally and through the ssh session.
> Is this similar to yours?
>
> $xauth list
> mythfront:0 MIT-MAGIC-COOKIE-1 (Value 1)
> mythfront/unix:0 MIT-MAGIC-COOKIE-1 (Value 2)
> localhost.localdomain/unix:0 MIT-MAGIC-COOKIE-1 (Value 2)
>
> I don't have another system to test this on right now, but I wonder if
> the values not all being the same could be a problem.
On my system, the TCP and Unix-socket based connections for a given
DISPLAY have the same cookie value. I don't know if that's just the way
I've configured X or if that's the way it's always supposed to be,
though. :)
However, I'd guess that's what causing the problem for you. Perhaps
it's a new X configuration or new *buntu configuration for X. Chances
are your local machine is using Unix sockets and the ssh session is
using TCP.
Try:
export DISPLAY="localhost.localdomain/unix:0"
(or use mythfront/unix:0 ) in your script.
Mike
More information about the mythtv-users
mailing list