I am trying to get XDMCP working over SSH on CentOS 4.4 from a windoze box running Cygwin/Putty I have set Enable=true in /etc/X11/gdm/gdm.conf restarted the X server, logged in with Putty and X11 forwarding enabled. I then try to start the Xserver with the following commands # gdmXnestchooser localhost or # Xnest :1 -query localhost Both commands will successfully display a X window and show the X mouse pointer but not the chooser. Can anyone tell me what I am doing wrong? Thanks Dean
On Wed, 2007-02-28 at 14:55 +0000, Plant, Dean wrote:> I am trying to get XDMCP working over SSH on CentOS 4.4 from a windoze > box running Cygwin/Putty[snip]> Both commands will successfully display a X window and show the X mouse > pointer but not the chooser. Can anyone tell me what I am doing wrong?Perhaps your ssh tunnel isn't configured properly. Let's see how you're setting up the tunnel. Regards, Ranbir -- Kanwar Ranbir Sandhu Linux 2.6.19-1.2911.fc6 i686 GNU/Linux 18:28:48 up 1 day, 9:18, 2 users, load average: 0.70, 0.51, 0.60
Kanwar Ranbir Sandhu wrote:> On Wed, 2007-02-28 at 14:55 +0000, Plant, Dean wrote: >> I am trying to get XDMCP working over SSH on CentOS 4.4 from a >> windoze box running Cygwin/Putty > > [snip] > >> Both commands will successfully display a X window and show the X >> mouse pointer but not the chooser. Can anyone tell me what I am >> doing wrong? > > Perhaps your ssh tunnel isn't configured properly. Let's see how > you're setting up the tunnel. >In sshd I have X11 Forwarding set # cat /etc/ssh/sshd_config | grep X11F X11Forwarding yes I have Putty configured with X11 forwarding>From Putty connection log:2007-03-01 10:06:00 Access granted 2007-03-01 10:06:00 Opened channel for session 2007-03-01 10:06:00 Requesting X11 forwarding 2007-03-01 10:06:00 X11 forwarding enabled 2007-03-01 10:06:00 Allocated pty (ospeed 38400bps, ispeed 38400bps) 2007-03-01 10:06:00 Started a shell/command I have a Cygwin X server loaded and I can run an Xterm with no problems. I have used the System Settings control panel to enable XDMCP and UDP 177 is listening # netstat -l | grep xdmcp udp 0 0 *:xdmcp *:* I then log into the host machine and run: # Xnest :1 -query localhost Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! After a while I get: XDM: too many retransmissions, declaring session dead Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! And in the putty logs I see 2007-03-01 10:20:07 Received X11 connect request from 127.0.0.1:33368 2007-03-01 10:20:07 Opening X11 forward connection succeeded A Xwindow is displayed but all I see is a black background with the X mouse pointer. Thanks Dean
Les Mikesell wrote:> Kanwar Ranbir Sandhu wrote: >> On Wed, 2007-02-28 at 14:55 +0000, Plant, Dean wrote: >>> I am trying to get XDMCP working over SSH on CentOS 4.4 from a >>> windoze box running Cygwin/Putty >> >> [snip] >> >>> Both commands will successfully display a X window and show the X >>> mouse pointer but not the chooser. Can anyone tell me what I am >>> doing wrong? >> >> Perhaps your ssh tunnel isn't configured properly. Let's see how >> you're setting up the tunnel. > > Or, as an alternative you might like freenx on the server and the > nomachine NX windows client. It gives better response over low > bandwidth or high latency connections and allows you to suspend a > session and reconnect later, perhaps from a different location.Thanks for your reply. I was hoping to use the software we already have installed (Putty&Cygwin) but if this fails I will look into your suggestion. Dean
Les Mikesell wrote:> It should work, but NX is nicer in many situations. If you just want > to run a few applications and don't need the whole desktop you can > start cygwin xwin in -multiwindow mode, then start the apps you want > in your putty window using & to background them and get the prompt > back. Each app will open its own window on your desktop. A > variation on this theme is to drag the application launchers you need > from the gnome menu onto the desktop or in a folder on the desktop > and start nautilus from that first putty window. Clicking on the > launchers will start each app in its own window.Well after your advice I thought I better had take a look at FreeNX. 10 minutes later, all up and running and I agree, it is a lot nicer solution. In case anyone else is considering FreeNX, check out http://wiki.centos.org/FreeNX follow the write up and you will be up and running in 10 mins. Thanks Les and the author of the wiki page. Dean.