View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun May 28, 2006 4:57 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
WHAT WILL THIS DO FOR YOU:
You can't watch shows by using this. You can launch the frontend to make configuration changes, set options, etc. but I would recommend if you want to do that to follow this guide I wrote awhile ago. What can you do with this? Access the gdm desktop as if you're sitting in front of you mythbox. For me, I wanted to leverage this knowledge to a totally different problem (not mythtv related) and now that I know how to do this, I wanted to share it with the community.

REQUIRED SOFTWARE:
PuTTY (freeware) - http://www.chiark.greenend.org.uk/~sgta ... nload.html
Xming (freeware) - http://freedesktop.org/wiki/Xming

ASSUMPTIONS MADE BY ME:
A working, networked KnoppMyth install (I tested this guide on R5B7)
A working, networked Windows machine (I tested this guide on xp)
Dollar sign prompts ($) are commands done as mythtv user; number sign (#) prompts are commands done as root.

REFERENCES:
I wrote this guide from my experience reading this page so if you want the more complete version, go there. Also, the broad strokes are here.

HOWTO SETUP XDMCP ON THE LINUX BOX:
Once you have everything installed, you'll simply do it by this single-step procedure:

Start xming on your windows box with this command

Code:
C:\Program Files\Xming>Xming -query <myth machine IP> -nodecoration -lesspointer <win machine IP.  -notrayicon -clipboard


SETUP STEP 1: INSTALL PuTTY ON WINDOWS BOX:
If you're not already using PuTTY, download from the link provided. It will allow you to ssh into your mythbox.

SETUP STEP 2: INSTALL Xming ON WINDOWS BOX:
Run the setup exe for the app and the fonts.

SETUP STEP 3: SETUP ON MYTHBOX:
Use putty to connect via ssh to your mybox for these steps.

I'm not sure if XDMCP uses X11 forwarding like the other xsession guide I wrote does... if this doens't work, follow the follow steps from that post:

SETUP STEP 3: SETUP PuTTY ON WINDOWS BOX
SETUP STEP 4: SETUP ON MYTHBOX

You'll need to su to complete these modifications and it's ALWAYS a good idea to make a backup of the file you're about to modify before you do so (i.e. cp /dir/nameoffile /dir/nameoffile_virgin)

Modify /etc/X11/xdm/xdm-config and change this line:

Code:
DisplayManager.requestPort:     0

to
Code:
! DisplayManager.requestPort:     0


Now modify /etc/X11/xdm/Xaccess and change this line:

Code:
#*    # any host can get a login window

to
Code:
*     # any host can get a login window


Now modify /etc/X11/gdm/gdm.conf and change this line:

Code:
Enable=false

to
Code:
Enable=true


Now do a

Code:
# chmod 444 /etc/X11/xdm/Xservers


At this point you'll need to restart gdm:

Code:
# etc/init.d/gdm restart


START A XDMCP SESSION ON THE WINDOWS BOX
open up a command prompt and type this:

Code:
C:\Program Files\Xming>Xming -query <myth machine IP> -nodecoration -lesspointer <win machine IP.  -notrayicon -clipboard

(You can ovbiously make this into a shortcut or batch file.)

If it worked on your machines like it did on mine, you should see the GNOME Desktop Manager login screen prompting you for a username.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 5:38 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I just recently learned about FreeNX which has been included in KM since R5A12. I'd recommend you use it over the method I described above. Read about it on the wiki: http://www.knoppmythwiki.org/index.php?page=NXHowTo

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 20, 2006 6:32 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
I need some help getting this to work. I installed a NX client and tried to connect to my backend... I got a message about "server not running." Tried it again, got a similar message. Now when I start up the nx client I see two previous sessions (that I can't connect to) running on the backend. I can't seem to delete them, and they survived a restart of the backend. I've grepped syslog and dmesg for "freenx" and see no messages.

So first thing: how do I delete those sessions? Second, the wiki article seemed to imply that the server is already running; is that the case or do I need to start it?

EDIT: Ok, wrong password, I can get on now (as usual, posting to the forum clears up the problem :-/ ), but I'm still unclear how to delete those other failed sessions...

EDIT 2: The answer--as root, type "nxserver --terminate mythtv"


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 7:42 pm 
Offline
Joined: Sun Jun 11, 2006 9:09 am
Posts: 1
Location: Wilson, NY
I do this as well but use the straight GDM configuration (as mentioned in this script but I used the "Configure Graphical Login Manager" from the login screen) and I use Cygwin/X as my XWindows client on my laptop.

Actually, this is not something new with KnoppMyth... but it is a very good way to maintain things!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 2:14 am 
Offline
Joined: Sun Jun 12, 2005 2:39 pm
Posts: 464
Location: UK
Just tested freenx over an adsl connection and it seems pretty good :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 6:00 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
mad_paddler wrote:
Just tested freenx over an adsl connection and it seems pretty good :D


Yeah, it's remarkably fast compared to XDMCP or VNC.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu