LinHES Forums http://forum.linhes.org/ |
|
HOWTO: use Xdmcp to remote control LINUX through windows http://forum.linhes.org/viewtopic.php?f=11&t=10237 |
Page 1 of 1 |
Author: | graysky [ Sun May 28, 2006 4:57 am ] |
Post subject: | HOWTO: use Xdmcp to remote control LINUX through windows |
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. |
Author: | graysky [ Sun Jun 18, 2006 5:38 am ] |
Post subject: | |
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 |
Author: | ceenvee703 [ Tue Jun 20, 2006 6:32 pm ] |
Post subject: | |
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" |
Author: | hatton [ Wed Jun 21, 2006 7:42 pm ] |
Post subject: | |
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! |
Author: | mad_paddler [ Thu Jun 22, 2006 2:14 am ] |
Post subject: | |
Just tested freenx over an adsl connection and it seems pretty good ![]() |
Author: | graysky [ Thu Jun 22, 2006 6:00 pm ] |
Post subject: | |
mad_paddler wrote: Just tested freenx over an adsl connection and it seems pretty good
![]() Yeah, it's remarkably fast compared to XDMCP or VNC. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |