Xming does not show an xclock window











up vote
3
down vote

favorite












I have installed and have connected to a server using Putty.
But when I type "xclock" for testing there is no output.










share|improve this question




























    up vote
    3
    down vote

    favorite












    I have installed and have connected to a server using Putty.
    But when I type "xclock" for testing there is no output.










    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I have installed and have connected to a server using Putty.
      But when I type "xclock" for testing there is no output.










      share|improve this question















      I have installed and have connected to a server using Putty.
      But when I type "xclock" for testing there is no output.







      windows putty xming






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 at 15:10









      Rui F Ribeiro

      38.3k1475126




      38.3k1475126










      asked Sep 11 '12 at 10:02









      eucap

      16112




      16112






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          Check that Xming is accepting connections from the remote host. You can temporarily accept all connections by running Xming with the -ac option.
          Also check in your putty options for the session that Connection > SSH > X11 > Enable X11 forwarding is enabled.






          share|improve this answer




























            up vote
            0
            down vote













            If you don't get an error message, it means that xclock is displaying a window, it could reach your X11 display. So your problem is that you aren't seeing Xming's window.



            You have probably configured Xming to display X applications inside an Xming window, so navigate to the Xming window (this “one-window” mode is the default). Alternatively, configure Xming to display X windows on the Windows: start Xming in “multiwindow” mode. See the Xming manual for more information.



            It's also possible (but unlikely) that you've done something weird in your configuration file and are overriding the DISPLAY variable. It is extremely rare that overriding DISPLAY in .profile or .bashrc or similar files can do anything useful. If you're also logged in inside X on the server's console, and you've overridden DISPLAY to be :0, then xclock is being displayed on the server's GUI.






            share|improve this answer























            • xming is working properly when i tested in one server.But am having issues with othr server when i set DISPLAY as :0 and i give command xclock it doesnt show any errors but i am not able to see clock in my machine.But otherwise am getting error "Error: cannot open display: localhost:0"
              – eucap
              Sep 12 '12 at 5:00










            • Also if i set the DISPLAY as my export DISPLAY=174.16.36.177:0 (system ip )and i try to run firefox it doesnt show any errors but output is not getting displayed.
              – eucap
              Sep 12 '12 at 5:08










            • Don't set DISPLAY. Never set DISPLAY over SSH (including PuTTY): if the SSH forwarding is working, the environment variable will be set correctly. If the variable isn't set, you aren't getting X forwarding. Check that you've enabled forwarding in the PuTTY client, that you have DISPLAY set on the client side (with Xming, typically to localhost:0) and that the server allows X11 forwarding (X11Forwarding yes in sshd_config).
              – Gilles
              Sep 12 '12 at 7:22










            • I performed steps what you have told.Didnt set the Display in putty .Enabled forwarding . And i logged in to the server and set the DISPLAY to localhost:0 .But no errors,but am not able to see the windows of xclock .As i said on one server it worked well.Also can i know where to look for ssh_config file ?
              – eucap
              Sep 12 '12 at 8:11












            • @eucap Again: Do not set DISPLAY manually. Make sure you've set the X display location in PuTTY, and that the server accepts X11 forwarding.
              – Gilles
              Sep 12 '12 at 8:14











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f47807%2fxming-does-not-show-an-xclock-window%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            Check that Xming is accepting connections from the remote host. You can temporarily accept all connections by running Xming with the -ac option.
            Also check in your putty options for the session that Connection > SSH > X11 > Enable X11 forwarding is enabled.






            share|improve this answer

























              up vote
              1
              down vote













              Check that Xming is accepting connections from the remote host. You can temporarily accept all connections by running Xming with the -ac option.
              Also check in your putty options for the session that Connection > SSH > X11 > Enable X11 forwarding is enabled.






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                Check that Xming is accepting connections from the remote host. You can temporarily accept all connections by running Xming with the -ac option.
                Also check in your putty options for the session that Connection > SSH > X11 > Enable X11 forwarding is enabled.






                share|improve this answer












                Check that Xming is accepting connections from the remote host. You can temporarily accept all connections by running Xming with the -ac option.
                Also check in your putty options for the session that Connection > SSH > X11 > Enable X11 forwarding is enabled.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 11 '12 at 10:55









                loutrrr

                111




                111
























                    up vote
                    0
                    down vote













                    If you don't get an error message, it means that xclock is displaying a window, it could reach your X11 display. So your problem is that you aren't seeing Xming's window.



                    You have probably configured Xming to display X applications inside an Xming window, so navigate to the Xming window (this “one-window” mode is the default). Alternatively, configure Xming to display X windows on the Windows: start Xming in “multiwindow” mode. See the Xming manual for more information.



                    It's also possible (but unlikely) that you've done something weird in your configuration file and are overriding the DISPLAY variable. It is extremely rare that overriding DISPLAY in .profile or .bashrc or similar files can do anything useful. If you're also logged in inside X on the server's console, and you've overridden DISPLAY to be :0, then xclock is being displayed on the server's GUI.






                    share|improve this answer























                    • xming is working properly when i tested in one server.But am having issues with othr server when i set DISPLAY as :0 and i give command xclock it doesnt show any errors but i am not able to see clock in my machine.But otherwise am getting error "Error: cannot open display: localhost:0"
                      – eucap
                      Sep 12 '12 at 5:00










                    • Also if i set the DISPLAY as my export DISPLAY=174.16.36.177:0 (system ip )and i try to run firefox it doesnt show any errors but output is not getting displayed.
                      – eucap
                      Sep 12 '12 at 5:08










                    • Don't set DISPLAY. Never set DISPLAY over SSH (including PuTTY): if the SSH forwarding is working, the environment variable will be set correctly. If the variable isn't set, you aren't getting X forwarding. Check that you've enabled forwarding in the PuTTY client, that you have DISPLAY set on the client side (with Xming, typically to localhost:0) and that the server allows X11 forwarding (X11Forwarding yes in sshd_config).
                      – Gilles
                      Sep 12 '12 at 7:22










                    • I performed steps what you have told.Didnt set the Display in putty .Enabled forwarding . And i logged in to the server and set the DISPLAY to localhost:0 .But no errors,but am not able to see the windows of xclock .As i said on one server it worked well.Also can i know where to look for ssh_config file ?
                      – eucap
                      Sep 12 '12 at 8:11












                    • @eucap Again: Do not set DISPLAY manually. Make sure you've set the X display location in PuTTY, and that the server accepts X11 forwarding.
                      – Gilles
                      Sep 12 '12 at 8:14















                    up vote
                    0
                    down vote













                    If you don't get an error message, it means that xclock is displaying a window, it could reach your X11 display. So your problem is that you aren't seeing Xming's window.



                    You have probably configured Xming to display X applications inside an Xming window, so navigate to the Xming window (this “one-window” mode is the default). Alternatively, configure Xming to display X windows on the Windows: start Xming in “multiwindow” mode. See the Xming manual for more information.



                    It's also possible (but unlikely) that you've done something weird in your configuration file and are overriding the DISPLAY variable. It is extremely rare that overriding DISPLAY in .profile or .bashrc or similar files can do anything useful. If you're also logged in inside X on the server's console, and you've overridden DISPLAY to be :0, then xclock is being displayed on the server's GUI.






                    share|improve this answer























                    • xming is working properly when i tested in one server.But am having issues with othr server when i set DISPLAY as :0 and i give command xclock it doesnt show any errors but i am not able to see clock in my machine.But otherwise am getting error "Error: cannot open display: localhost:0"
                      – eucap
                      Sep 12 '12 at 5:00










                    • Also if i set the DISPLAY as my export DISPLAY=174.16.36.177:0 (system ip )and i try to run firefox it doesnt show any errors but output is not getting displayed.
                      – eucap
                      Sep 12 '12 at 5:08










                    • Don't set DISPLAY. Never set DISPLAY over SSH (including PuTTY): if the SSH forwarding is working, the environment variable will be set correctly. If the variable isn't set, you aren't getting X forwarding. Check that you've enabled forwarding in the PuTTY client, that you have DISPLAY set on the client side (with Xming, typically to localhost:0) and that the server allows X11 forwarding (X11Forwarding yes in sshd_config).
                      – Gilles
                      Sep 12 '12 at 7:22










                    • I performed steps what you have told.Didnt set the Display in putty .Enabled forwarding . And i logged in to the server and set the DISPLAY to localhost:0 .But no errors,but am not able to see the windows of xclock .As i said on one server it worked well.Also can i know where to look for ssh_config file ?
                      – eucap
                      Sep 12 '12 at 8:11












                    • @eucap Again: Do not set DISPLAY manually. Make sure you've set the X display location in PuTTY, and that the server accepts X11 forwarding.
                      – Gilles
                      Sep 12 '12 at 8:14













                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    If you don't get an error message, it means that xclock is displaying a window, it could reach your X11 display. So your problem is that you aren't seeing Xming's window.



                    You have probably configured Xming to display X applications inside an Xming window, so navigate to the Xming window (this “one-window” mode is the default). Alternatively, configure Xming to display X windows on the Windows: start Xming in “multiwindow” mode. See the Xming manual for more information.



                    It's also possible (but unlikely) that you've done something weird in your configuration file and are overriding the DISPLAY variable. It is extremely rare that overriding DISPLAY in .profile or .bashrc or similar files can do anything useful. If you're also logged in inside X on the server's console, and you've overridden DISPLAY to be :0, then xclock is being displayed on the server's GUI.






                    share|improve this answer














                    If you don't get an error message, it means that xclock is displaying a window, it could reach your X11 display. So your problem is that you aren't seeing Xming's window.



                    You have probably configured Xming to display X applications inside an Xming window, so navigate to the Xming window (this “one-window” mode is the default). Alternatively, configure Xming to display X windows on the Windows: start Xming in “multiwindow” mode. See the Xming manual for more information.



                    It's also possible (but unlikely) that you've done something weird in your configuration file and are overriding the DISPLAY variable. It is extremely rare that overriding DISPLAY in .profile or .bashrc or similar files can do anything useful. If you're also logged in inside X on the server's console, and you've overridden DISPLAY to be :0, then xclock is being displayed on the server's GUI.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 12 '12 at 1:49

























                    answered Sep 12 '12 at 1:34









                    Gilles

                    522k12610411575




                    522k12610411575












                    • xming is working properly when i tested in one server.But am having issues with othr server when i set DISPLAY as :0 and i give command xclock it doesnt show any errors but i am not able to see clock in my machine.But otherwise am getting error "Error: cannot open display: localhost:0"
                      – eucap
                      Sep 12 '12 at 5:00










                    • Also if i set the DISPLAY as my export DISPLAY=174.16.36.177:0 (system ip )and i try to run firefox it doesnt show any errors but output is not getting displayed.
                      – eucap
                      Sep 12 '12 at 5:08










                    • Don't set DISPLAY. Never set DISPLAY over SSH (including PuTTY): if the SSH forwarding is working, the environment variable will be set correctly. If the variable isn't set, you aren't getting X forwarding. Check that you've enabled forwarding in the PuTTY client, that you have DISPLAY set on the client side (with Xming, typically to localhost:0) and that the server allows X11 forwarding (X11Forwarding yes in sshd_config).
                      – Gilles
                      Sep 12 '12 at 7:22










                    • I performed steps what you have told.Didnt set the Display in putty .Enabled forwarding . And i logged in to the server and set the DISPLAY to localhost:0 .But no errors,but am not able to see the windows of xclock .As i said on one server it worked well.Also can i know where to look for ssh_config file ?
                      – eucap
                      Sep 12 '12 at 8:11












                    • @eucap Again: Do not set DISPLAY manually. Make sure you've set the X display location in PuTTY, and that the server accepts X11 forwarding.
                      – Gilles
                      Sep 12 '12 at 8:14


















                    • xming is working properly when i tested in one server.But am having issues with othr server when i set DISPLAY as :0 and i give command xclock it doesnt show any errors but i am not able to see clock in my machine.But otherwise am getting error "Error: cannot open display: localhost:0"
                      – eucap
                      Sep 12 '12 at 5:00










                    • Also if i set the DISPLAY as my export DISPLAY=174.16.36.177:0 (system ip )and i try to run firefox it doesnt show any errors but output is not getting displayed.
                      – eucap
                      Sep 12 '12 at 5:08










                    • Don't set DISPLAY. Never set DISPLAY over SSH (including PuTTY): if the SSH forwarding is working, the environment variable will be set correctly. If the variable isn't set, you aren't getting X forwarding. Check that you've enabled forwarding in the PuTTY client, that you have DISPLAY set on the client side (with Xming, typically to localhost:0) and that the server allows X11 forwarding (X11Forwarding yes in sshd_config).
                      – Gilles
                      Sep 12 '12 at 7:22










                    • I performed steps what you have told.Didnt set the Display in putty .Enabled forwarding . And i logged in to the server and set the DISPLAY to localhost:0 .But no errors,but am not able to see the windows of xclock .As i said on one server it worked well.Also can i know where to look for ssh_config file ?
                      – eucap
                      Sep 12 '12 at 8:11












                    • @eucap Again: Do not set DISPLAY manually. Make sure you've set the X display location in PuTTY, and that the server accepts X11 forwarding.
                      – Gilles
                      Sep 12 '12 at 8:14
















                    xming is working properly when i tested in one server.But am having issues with othr server when i set DISPLAY as :0 and i give command xclock it doesnt show any errors but i am not able to see clock in my machine.But otherwise am getting error "Error: cannot open display: localhost:0"
                    – eucap
                    Sep 12 '12 at 5:00




                    xming is working properly when i tested in one server.But am having issues with othr server when i set DISPLAY as :0 and i give command xclock it doesnt show any errors but i am not able to see clock in my machine.But otherwise am getting error "Error: cannot open display: localhost:0"
                    – eucap
                    Sep 12 '12 at 5:00












                    Also if i set the DISPLAY as my export DISPLAY=174.16.36.177:0 (system ip )and i try to run firefox it doesnt show any errors but output is not getting displayed.
                    – eucap
                    Sep 12 '12 at 5:08




                    Also if i set the DISPLAY as my export DISPLAY=174.16.36.177:0 (system ip )and i try to run firefox it doesnt show any errors but output is not getting displayed.
                    – eucap
                    Sep 12 '12 at 5:08












                    Don't set DISPLAY. Never set DISPLAY over SSH (including PuTTY): if the SSH forwarding is working, the environment variable will be set correctly. If the variable isn't set, you aren't getting X forwarding. Check that you've enabled forwarding in the PuTTY client, that you have DISPLAY set on the client side (with Xming, typically to localhost:0) and that the server allows X11 forwarding (X11Forwarding yes in sshd_config).
                    – Gilles
                    Sep 12 '12 at 7:22




                    Don't set DISPLAY. Never set DISPLAY over SSH (including PuTTY): if the SSH forwarding is working, the environment variable will be set correctly. If the variable isn't set, you aren't getting X forwarding. Check that you've enabled forwarding in the PuTTY client, that you have DISPLAY set on the client side (with Xming, typically to localhost:0) and that the server allows X11 forwarding (X11Forwarding yes in sshd_config).
                    – Gilles
                    Sep 12 '12 at 7:22












                    I performed steps what you have told.Didnt set the Display in putty .Enabled forwarding . And i logged in to the server and set the DISPLAY to localhost:0 .But no errors,but am not able to see the windows of xclock .As i said on one server it worked well.Also can i know where to look for ssh_config file ?
                    – eucap
                    Sep 12 '12 at 8:11






                    I performed steps what you have told.Didnt set the Display in putty .Enabled forwarding . And i logged in to the server and set the DISPLAY to localhost:0 .But no errors,but am not able to see the windows of xclock .As i said on one server it worked well.Also can i know where to look for ssh_config file ?
                    – eucap
                    Sep 12 '12 at 8:11














                    @eucap Again: Do not set DISPLAY manually. Make sure you've set the X display location in PuTTY, and that the server accepts X11 forwarding.
                    – Gilles
                    Sep 12 '12 at 8:14




                    @eucap Again: Do not set DISPLAY manually. Make sure you've set the X display location in PuTTY, and that the server accepts X11 forwarding.
                    – Gilles
                    Sep 12 '12 at 8:14


















                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f47807%2fxming-does-not-show-an-xclock-window%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt