rdesktop gives ERROR: Failed to open display:











up vote
11
down vote

favorite












I have a .bash_aliases file with several aliases which I use to connect to Windows machines. The aliases are set up like this:



rdesktop -d domain -u username -p password -k fr-be -g 1920x1024 -T Customer-SupportPC -a 24 IP


Yesterday the connection was working fine, today the connection gives me following error:



ERROR: Failed to open display:


SSH sessions are no problem, it's only a problem with rdesktop to a Windows server. X11 forwarding is set to yes in /etc/ssh/sshd_config










share|improve this question






















  • Have you tried to set display DISPLAY=:0.0 rdesktop <server>? Your didn't change something? How was your last time connection? How you terminate your session? Does any rdesktop is still running? if yes, you would need to kill those sessions first as it caused the DISPLAY used by that session still and doesn't allocate same display thought
    – αғsнιη
    Sep 17 '17 at 15:39












  • @αғsнιη I have set DISPLAY to 0 but not for a specific server, makes no difference except it shows display:0 in the error. No, I did not change something. What do you mean by last time connection? I usually terminate my session by closing the rdesktop screen but when I get this error I use ctrl + c. There are no rdesktop procs in ps -ef
    – Noosrep
    Sep 18 '17 at 6:54










  • Are you in GNU screen or tmux? Do you get the same error when you run xclock?
    – Adam Katz
    Oct 26 '17 at 19:54






  • 1




    AFAIK you need to export the DISPLAY variable, not set it. Otherwise child processes, like your rdesktop, won't inherit it.
    – Robert Riedl
    Jan 27 at 14:44















up vote
11
down vote

favorite












I have a .bash_aliases file with several aliases which I use to connect to Windows machines. The aliases are set up like this:



rdesktop -d domain -u username -p password -k fr-be -g 1920x1024 -T Customer-SupportPC -a 24 IP


Yesterday the connection was working fine, today the connection gives me following error:



ERROR: Failed to open display:


SSH sessions are no problem, it's only a problem with rdesktop to a Windows server. X11 forwarding is set to yes in /etc/ssh/sshd_config










share|improve this question






















  • Have you tried to set display DISPLAY=:0.0 rdesktop <server>? Your didn't change something? How was your last time connection? How you terminate your session? Does any rdesktop is still running? if yes, you would need to kill those sessions first as it caused the DISPLAY used by that session still and doesn't allocate same display thought
    – αғsнιη
    Sep 17 '17 at 15:39












  • @αғsнιη I have set DISPLAY to 0 but not for a specific server, makes no difference except it shows display:0 in the error. No, I did not change something. What do you mean by last time connection? I usually terminate my session by closing the rdesktop screen but when I get this error I use ctrl + c. There are no rdesktop procs in ps -ef
    – Noosrep
    Sep 18 '17 at 6:54










  • Are you in GNU screen or tmux? Do you get the same error when you run xclock?
    – Adam Katz
    Oct 26 '17 at 19:54






  • 1




    AFAIK you need to export the DISPLAY variable, not set it. Otherwise child processes, like your rdesktop, won't inherit it.
    – Robert Riedl
    Jan 27 at 14:44













up vote
11
down vote

favorite









up vote
11
down vote

favorite











I have a .bash_aliases file with several aliases which I use to connect to Windows machines. The aliases are set up like this:



rdesktop -d domain -u username -p password -k fr-be -g 1920x1024 -T Customer-SupportPC -a 24 IP


Yesterday the connection was working fine, today the connection gives me following error:



ERROR: Failed to open display:


SSH sessions are no problem, it's only a problem with rdesktop to a Windows server. X11 forwarding is set to yes in /etc/ssh/sshd_config










share|improve this question













I have a .bash_aliases file with several aliases which I use to connect to Windows machines. The aliases are set up like this:



rdesktop -d domain -u username -p password -k fr-be -g 1920x1024 -T Customer-SupportPC -a 24 IP


Yesterday the connection was working fine, today the connection gives me following error:



ERROR: Failed to open display:


SSH sessions are no problem, it's only a problem with rdesktop to a Windows server. X11 forwarding is set to yes in /etc/ssh/sshd_config







16.04 remote-desktop rdesktop






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 14 '17 at 8:50









Noosrep

1,49221334




1,49221334












  • Have you tried to set display DISPLAY=:0.0 rdesktop <server>? Your didn't change something? How was your last time connection? How you terminate your session? Does any rdesktop is still running? if yes, you would need to kill those sessions first as it caused the DISPLAY used by that session still and doesn't allocate same display thought
    – αғsнιη
    Sep 17 '17 at 15:39












  • @αғsнιη I have set DISPLAY to 0 but not for a specific server, makes no difference except it shows display:0 in the error. No, I did not change something. What do you mean by last time connection? I usually terminate my session by closing the rdesktop screen but when I get this error I use ctrl + c. There are no rdesktop procs in ps -ef
    – Noosrep
    Sep 18 '17 at 6:54










  • Are you in GNU screen or tmux? Do you get the same error when you run xclock?
    – Adam Katz
    Oct 26 '17 at 19:54






  • 1




    AFAIK you need to export the DISPLAY variable, not set it. Otherwise child processes, like your rdesktop, won't inherit it.
    – Robert Riedl
    Jan 27 at 14:44


















  • Have you tried to set display DISPLAY=:0.0 rdesktop <server>? Your didn't change something? How was your last time connection? How you terminate your session? Does any rdesktop is still running? if yes, you would need to kill those sessions first as it caused the DISPLAY used by that session still and doesn't allocate same display thought
    – αғsнιη
    Sep 17 '17 at 15:39












  • @αғsнιη I have set DISPLAY to 0 but not for a specific server, makes no difference except it shows display:0 in the error. No, I did not change something. What do you mean by last time connection? I usually terminate my session by closing the rdesktop screen but when I get this error I use ctrl + c. There are no rdesktop procs in ps -ef
    – Noosrep
    Sep 18 '17 at 6:54










  • Are you in GNU screen or tmux? Do you get the same error when you run xclock?
    – Adam Katz
    Oct 26 '17 at 19:54






  • 1




    AFAIK you need to export the DISPLAY variable, not set it. Otherwise child processes, like your rdesktop, won't inherit it.
    – Robert Riedl
    Jan 27 at 14:44
















Have you tried to set display DISPLAY=:0.0 rdesktop <server>? Your didn't change something? How was your last time connection? How you terminate your session? Does any rdesktop is still running? if yes, you would need to kill those sessions first as it caused the DISPLAY used by that session still and doesn't allocate same display thought
– αғsнιη
Sep 17 '17 at 15:39






Have you tried to set display DISPLAY=:0.0 rdesktop <server>? Your didn't change something? How was your last time connection? How you terminate your session? Does any rdesktop is still running? if yes, you would need to kill those sessions first as it caused the DISPLAY used by that session still and doesn't allocate same display thought
– αғsнιη
Sep 17 '17 at 15:39














@αғsнιη I have set DISPLAY to 0 but not for a specific server, makes no difference except it shows display:0 in the error. No, I did not change something. What do you mean by last time connection? I usually terminate my session by closing the rdesktop screen but when I get this error I use ctrl + c. There are no rdesktop procs in ps -ef
– Noosrep
Sep 18 '17 at 6:54




@αғsнιη I have set DISPLAY to 0 but not for a specific server, makes no difference except it shows display:0 in the error. No, I did not change something. What do you mean by last time connection? I usually terminate my session by closing the rdesktop screen but when I get this error I use ctrl + c. There are no rdesktop procs in ps -ef
– Noosrep
Sep 18 '17 at 6:54












Are you in GNU screen or tmux? Do you get the same error when you run xclock?
– Adam Katz
Oct 26 '17 at 19:54




Are you in GNU screen or tmux? Do you get the same error when you run xclock?
– Adam Katz
Oct 26 '17 at 19:54




1




1




AFAIK you need to export the DISPLAY variable, not set it. Otherwise child processes, like your rdesktop, won't inherit it.
– Robert Riedl
Jan 27 at 14:44




AFAIK you need to export the DISPLAY variable, not set it. Otherwise child processes, like your rdesktop, won't inherit it.
– Robert Riedl
Jan 27 at 14:44










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I have never had any luck with the rdesktop program. I have great luck with the remmina package. If you don't mind, I suggest you try that and see if it solves this.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f955722%2frdesktop-gives-error-failed-to-open-display%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I have never had any luck with the rdesktop program. I have great luck with the remmina package. If you don't mind, I suggest you try that and see if it solves this.






    share|improve this answer

























      up vote
      0
      down vote













      I have never had any luck with the rdesktop program. I have great luck with the remmina package. If you don't mind, I suggest you try that and see if it solves this.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I have never had any luck with the rdesktop program. I have great luck with the remmina package. If you don't mind, I suggest you try that and see if it solves this.






        share|improve this answer












        I have never had any luck with the rdesktop program. I have great luck with the remmina package. If you don't mind, I suggest you try that and see if it solves this.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 26 at 1:46









        pauljohn32

        2,199822




        2,199822






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f955722%2frdesktop-gives-error-failed-to-open-display%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

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b