LinHES Forums
http://forum.linhes.org/

Problem running myth-tv setup remotely using cygwin/X
http://forum.linhes.org/viewtopic.php?f=5&t=5409
Page 1 of 1

Author:  rben [ Tue Jul 19, 2005 12:47 pm ]
Post subject:  Problem running myth-tv setup remotely using cygwin/X

My main mythtv box is in the livingroom attached to the TV. Although X works fine on the TV, I often want to mess with the configuration from my Windows computer in the office. (I don't always want to reboot into Linux.)

I have Cygwin/X installed on the Windows box. I've tried using ssh -X to log into mythtv box, which works, but then I can't bring up X applications. I get the message Xlib: No protocol specified

xterm Xt error: Can't open display: 192.168.1.100:0

Also, if I use auth list, I get the message:

xauth: creating new authority file /home/rben/.Xauthority

but the file never gets created, even though I have complete permissions to the directory.

I'm stumpled. Any help would be appreciated.

Thanks,
Ray

Author:  cesman [ Tue Jul 19, 2005 1:10 pm ]
Post subject: 

Check /etc/ssh/sshd_config
Is X11Forwarding yes or no? Don't forget to restart ssh after making the change.

Author:  Red5 [ Tue Jul 19, 2005 4:14 pm ]
Post subject: 

Another option is to use VNC. This works really well for me. There are some instructions on the wiki (http://knoppmythwiki.org/index.php?page=x11vncHowTo)

First, I connect from my windows box as root using the PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) ssh client, and issue the following command to start the VNC server on my myth box:
Code:
x11vnc -display :0 -auth /var/lib/gdm/:0.Xauth &

Then I connect using the windows RealVNC client.
When you disconnect the VNC client, the VNC server will shut down on your myth box, so you have to restart it again to connect again.

Author:  nigelpearson [ Tue Jul 19, 2005 5:16 pm ]
Post subject: 

Ray, maybe try 192.168.1.100:0.0 instead.

Author:  rben [ Tue Jul 19, 2005 8:19 pm ]
Post subject:  It works now!

Cesman had it right, as usual. I didn't have X11Forwarding set to yes in the sshd_config file. Once I changed that and did xhosts +, I was able to run X applications easily. It's very nice. I can now do all my maintenance for the livingroom box from the office.

Thanks guys

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/