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

HOWTO: Remotely Access Mythtv from Windows (xsession)
http://forums.linhes.org/viewtopic.php?f=11&t=5423
Page 1 of 4

Author:  graysky [ Wed Jul 20, 2005 1:21 pm ]
Post subject:  HOWTO: Remotely Access Mythtv from Windows (xsession)

DISCLAIMER:
This guide will show you how to get your mythfrontend to display on a Windows machine via an xsession using only freeware. Please note you cannot watch shows with this; it's only useful to change settings, troubleshoot custom menus, etc. on your mythbox without actually sitting in front of it.

It's like using the built-in VNC to control your box, but it's more direct and launchable via a single double click.

REQUIRED SOFTWARE:
XMing (freeware) - http://sourceforge.net/projects/xming
The main xming package is required, the fonts package is optional

SETUP STEP 1: INSTALL XMING ON WINDOWS BOX
Run the setup.exe you downloaded from the xming link provided above using the default options.

SETUP STEP 2: SETUP ON MYTHBOX
Verify that you're forwarding X11 on your mythbox by editing this file /etc/ssh/sshd_config and look for the "X11Forwarding" section, it should be set to yes like so (I used nano but use whatever you like emacs, vi, etc.):
Code:
# nano /etc/ssh/sshd_config

then look for this line, and if it's currently set to "no" change it to "yes":
Code:
X11Forwarding yes


restart ssh by doing
Code:
 # /etc/init.d/ssh restart


SETUP STEP 3: SETUP A SHORTCUT VIA XLAUNCH
You have two options, you can go through xlaunch (start menu>xming>xlaunch) to make a shortcut that will launch mythfronend, or you can simply make a new text file (right-click your desktop and select New>Text Document)

Now simply paste the following into it and save it as "mythfrontend.xlaunch"

Code:
<?xml version="1.0"?>
<XLaunch xmlns="http://www.straightrunning.com/XmingNotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.straightrunning.com/XmingNotes XLaunch.xsd" WindowMode="MultiWindow" ClientMode="StartProgram" Program="mythfrontend --geometry 800x600" ClientStart="PuTTY" PW="mythtv" RemoteHost="mythtv" RemoteUser="mythtv" Display="0" Clipboard="true"/>


You will have to substitute the IP address of your mythtv box where "192.168.1.22" appears or else you won't connect!

You can also specify the size you want the frontend to run in on your windows box. I have chosen 800x600 in the example above. Use whatever you want.

If for some reason you changed the mythtv user's password, make that same change in the PW="mythtv" above.

That's it!

To connect, simply double-click the "mythtv.xlaunch" icon you just made and xming will take over.

Author:  WheatKing [ Wed Jul 20, 2005 2:03 pm ]
Post subject: 

Much appreciated.. i assume this was posted in response to the poll thread, but i'll give it a shot tonight assuming the boss doesn't have me doing other things :)

Author:  graysky [ Wed Jul 20, 2005 3:39 pm ]
Post subject: 

Cool, let me know how it works out for you.

Author:  tjc [ Wed Jul 20, 2005 5:24 pm ]
Post subject: 

I think I'm going to give you today's gold star for community service... Good work dude! :D

Author:  graysky [ Wed Jul 20, 2005 6:26 pm ]
Post subject: 

Thanks man, it's a good feeling to give back in some small way. God knows you guys gave me a whole lot of help in the past :) Hopefully, this thread will help out some people.

Author:  ceenvee703 [ Thu Jul 21, 2005 6:27 am ]
Post subject: 

I posted this howto over at the wiki with a few formatting and editing/typo changes. Thanks, graysky.

Author:  graysky [ Thu Jul 21, 2005 1:34 pm ]
Post subject: 

Cool man ...what typos?

Author:  ceenvee703 [ Thu Jul 21, 2005 1:42 pm ]
Post subject: 

graysky wrote:
Cool man ...what typos?


One I found was "# nano (or your fav. editor) /etc/ssh.sshd_config"... that should be /etc/ssh/sshd_config not ssh.sshd_config . Obvious but when people are new to Linux they tend to be very literal and get hung up on stuff like that.

Also some capitalizations of Windows, etc.

Author:  graysky [ Thu Jul 21, 2005 2:22 pm ]
Post subject: 

Thanks for catching that... I didn't see it (fixed now).

Author:  inquisitor [ Thu Aug 04, 2005 8:22 am ]
Post subject:  Live TV

This works great for setup and configuration.
Has anybody got the live TV or Video to playback. When I hit the "Watch TV" button I get dumped from my MythTV frontend with the following message:

Quote:
Xlib: extension "XVideo" missing on display "localhost:10.0".
XvQueryExtension failed.
Xlib: extension "XVideo" missing on display "localhost:10.0".
XvQueryAdaptors failed.
***
* Couldn't find Xv support, falling back to non-Xv mode.
* MythTV performance will be much slower since color
* conversion and scaling will be done in software.
* Consider upgrading your video card or X server if
* you would like better performance.
***
* No XShm support found, MythTV may be very slow and consume lots of cpu.
Xlib: extension "XVideo" missing on display "localhost:10.0".
Xlib: extension "XVideo" missing on display "localhost:10.0".
2005-08-04 10:52:26.120 Couldn't get the color key color, and we need it.
You likely won't get any video.
2005-08-04 10:52:26.364 Changing from None to WatchingPreRecorded
2005-08-04 10:52:26.366 Realtime priority would require SUID as root.
Xlib: extension "XFree86-VidModeExtension" missing on display "localhost:10.0".
Xlib: extension "XFree86-VidModeExtension" missing on display "localhost:10.0".
2005-08-04 10:52:26.567 Video timing method: USleep with busy wait
Segmentation fault


Did I miss a step in the configuration?

Author:  ceenvee703 [ Thu Aug 04, 2005 9:19 am ]
Post subject:  Re: Live TV

inquisitor wrote:
Has anybody got the live TV or Video to playback. ...
Did I miss a step in the configuration?


You might have missed the second sentence of the original howto, which states "Please note you cannot watch shows with this."

Author:  inquisitor [ Thu Aug 04, 2005 1:49 pm ]
Post subject:  Sorry

You are right.
I was so exited that you could do this, I guess I must have skipped that part.
Thanks

Author:  mwahal [ Thu Aug 04, 2005 3:41 pm ]
Post subject: 

vnc is also an option. I run vncserver on the mythbox and vncclient on my PC.

Author:  Dinki [ Thu Aug 04, 2005 5:57 pm ]
Post subject: 

mwahal wrote:
vnc is also an option. I run vncserver on the mythbox and vncclient on my PC.


But you still can't watch video with VNC right? I know when I try with VNC I get a blue screen (not TBSOD) instead of the video. Just curious...

Author:  mwahal [ Thu Aug 04, 2005 5:59 pm ]
Post subject: 

Dinki wrote:
mwahal wrote:
vnc is also an option. I run vncserver on the mythbox and vncclient on my PC.


But you still can't watch video with VNC right? I know when I try with VNC I get a blue screen (not TBSOD) instead of the video. Just curious...


Not quite right. I was able to get *some* video using realvnc. But the frames were getting updated very slowly. But I was trying to do that from the office and my upload from home sucks anyway.

Will try to watch video at home tonight via vnc and will let you know.

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