Announcement

Collapse
No announcement yet.

X forwarding problem?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    X forwarding problem?

    I'm running Kubuntu 8.04. I'm ssh'ing to a Solaris box to run one of our design tools, but I'm receiving the following error:

    Code:
    // cannot connect to Xserver '10.33.49.239:0'
    // X server is not running
    // Cannot initialize device driver.
    // Error: Connection to hardware type X11dd failed (from: Core/VDD/vdd 08)
    I'm using the -X option with SSH. I have also tried the -Y option, but it doesn't work.

    Anyone have any ideas?

    #2
    Re: X forwarding problem?

    by default, X starts with -nolisten for security reasons.
    But you need it, so my advice is edit /etc/X11/xinit/xserverrc
    and change the line

    exec /usr/bin/X11/X -nolisten tcp

    for

    exec /usr/bin/X11/X

    Then restart X (log out and log in again, or even press Ctrl+Alt+Backspace). I think that does it. Perhaps there are some other tweaks via System Settings, but I don't know them.
    I hope someone brings us some light...

    Comment


      #3
      Re: X forwarding problem?

      Have you installed xauth on the local computer?

      D

      Comment


        #4
        Re: X forwarding problem?

        Yep, xauth is installed. The Unix box I'm trying to get this running on is on the list.

        It might help to note that we have a Linux cluster that we run other tools on. I can get the tools to run on the cluster without a problem.

        Comment


          #5
          Re: X forwarding problem?

          Originally posted by walfred
          by default, X starts with -nolisten for security reasons.
          But you need it, so my advice is edit /etc/X11/xinit/xserverrc
          and change the line

          exec /usr/bin/X11/X -nolisten tcp

          for

          exec /usr/bin/X11/X

          Then restart X (log out and log in again, or even press Ctrl+Alt+Backspace). I think that does it. Perhaps there are some other tweaks via System Settings, but I don't know them.
          I hope someone brings us some light...
          Okay, tried this. Still doesn't work.

          Code:
          // cannot connect to Xserver '10.33.49.239:0'
          // X server is not running
          // Cannot initialize device driver.
          // Error: Connection to hardware type X11dd failed (from: Core/VDD/vdd 08)
          Code:
          > printenv | grep -i display
          DISPLAY=10.33.49.239:0
          UI_DISPLAY=X11dd
          I'm not sure what the UI_DISPLAY variable is. I've tried unsetting it, but that doesn't fix the problem and it somehow gets set again.

          Comment


            #6
            Re: X forwarding problem? <SOLVED>

            Doh. I feel like a fool.

            I have my .cshrc set up for both linux and Sun boxes...

            Code:
            if ($OS_NAME == "Linux") then
              if (`printenv REMOTEHOST` != "" && `printenv SSH_CLIENT` == "") then
                setenv DISPLAY `echo $REMOTEHOST`:0
              endif
            
            .......
            
            if ($OS_NAME == "SunOS") then
              if (`printenv REMOTEHOST` != "" ) then
                setenv DISPLAY $REMOTEHOST":0"
              endif
            See the problem? My DISPLAY variable should have been set to something like 'localhost:10.0', but instead was set to my workstation IP.

            All is fixed now. Thanks for the replies.

            Comment


              #7
              Re: X forwarding problem?


              I would suggest you checking your firewall rules, but you did it great.
              Nice for you, my friend

              Comment

              Working...
              X