Problem with setting up xrdp on Lubuntu 13.04












0














After fresh install of Lubuntu 13.04 I did



sudo apt-get install tightvncserver
sudo apt-get install xrdp


Now when I log in with remote desktop client from Windows or Ubuntu, I get black and white mesh screen. I followed various help forums like this one, but nothing worked!










share|improve this question
























  • VNC server is better than that. Because sometimes compiz crashes because of xrdp
    – dedunumax
    Sep 10 '13 at 13:40
















0














After fresh install of Lubuntu 13.04 I did



sudo apt-get install tightvncserver
sudo apt-get install xrdp


Now when I log in with remote desktop client from Windows or Ubuntu, I get black and white mesh screen. I followed various help forums like this one, but nothing worked!










share|improve this question
























  • VNC server is better than that. Because sometimes compiz crashes because of xrdp
    – dedunumax
    Sep 10 '13 at 13:40














0












0








0







After fresh install of Lubuntu 13.04 I did



sudo apt-get install tightvncserver
sudo apt-get install xrdp


Now when I log in with remote desktop client from Windows or Ubuntu, I get black and white mesh screen. I followed various help forums like this one, but nothing worked!










share|improve this question















After fresh install of Lubuntu 13.04 I did



sudo apt-get install tightvncserver
sudo apt-get install xrdp


Now when I log in with remote desktop client from Windows or Ubuntu, I get black and white mesh screen. I followed various help forums like this one, but nothing worked!







lubuntu xrdp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 15 '16 at 19:02









grooveplex

2,18611433




2,18611433










asked Jun 25 '13 at 9:51









neckTwi

5072622




5072622












  • VNC server is better than that. Because sometimes compiz crashes because of xrdp
    – dedunumax
    Sep 10 '13 at 13:40


















  • VNC server is better than that. Because sometimes compiz crashes because of xrdp
    – dedunumax
    Sep 10 '13 at 13:40
















VNC server is better than that. Because sometimes compiz crashes because of xrdp
– dedunumax
Sep 10 '13 at 13:40




VNC server is better than that. Because sometimes compiz crashes because of xrdp
– dedunumax
Sep 10 '13 at 13:40










1 Answer
1






active

oldest

votes


















0














Ubuntu 13.04 is no longer supported for that I'm giving you solution for Ubuntu 12.04 and then I'll add the 14.04 solution later.



For Ubuntu 12.04



Use a tricky hack(obligate the xrdp to use the ubuntu-2d session always without searching for other sessions)



Install xrdp:



sudo apt-get install xrdp


Now Edit the file startwm.sh:



sudo gedit /etc/xrdp/startwm.sh


In the end of the script you can find these three lines calling functions above:



pre_start
wm_start
post_start


All you have is to comment the wm_start function by inserting leading # then add the line for needed session.



pre_start
#wm_start

gnome-session --session=ubuntu-2d

post_start


The wm_start function which is responsible for starting the window manager.



Now save and exit, then restart xdrp:



sudo service xrdp restart  


This should works smoothly. I'm using it since three years ago.



For Ubuntu 14.04 and later



Install xrdp same as above



Install XFCE4 or any other supported



sudo apt-get install xfce4


Edit our .xsession file in your home:



echo xfce4-session >~/.xsession


Edit startwm.sh file:



sudo gedit /etc/xrdp/startwm.sh


In the wm_start() Add the line startxfce4 just directly under:



 if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi


so the function looks like:



wm_start()
{
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi

startxfce4


# debian
if [ -r /etc/X11/Xsession ]; then
. /etc/X11/Xsession
exit 0
fi
.....

}


Now save and exit then restart xrdp.



sudo service xrdp restart  





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',
    autoActivateHeartbeat: false,
    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%2f312466%2fproblem-with-setting-up-xrdp-on-lubuntu-13-04%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









    0














    Ubuntu 13.04 is no longer supported for that I'm giving you solution for Ubuntu 12.04 and then I'll add the 14.04 solution later.



    For Ubuntu 12.04



    Use a tricky hack(obligate the xrdp to use the ubuntu-2d session always without searching for other sessions)



    Install xrdp:



    sudo apt-get install xrdp


    Now Edit the file startwm.sh:



    sudo gedit /etc/xrdp/startwm.sh


    In the end of the script you can find these three lines calling functions above:



    pre_start
    wm_start
    post_start


    All you have is to comment the wm_start function by inserting leading # then add the line for needed session.



    pre_start
    #wm_start

    gnome-session --session=ubuntu-2d

    post_start


    The wm_start function which is responsible for starting the window manager.



    Now save and exit, then restart xdrp:



    sudo service xrdp restart  


    This should works smoothly. I'm using it since three years ago.



    For Ubuntu 14.04 and later



    Install xrdp same as above



    Install XFCE4 or any other supported



    sudo apt-get install xfce4


    Edit our .xsession file in your home:



    echo xfce4-session >~/.xsession


    Edit startwm.sh file:



    sudo gedit /etc/xrdp/startwm.sh


    In the wm_start() Add the line startxfce4 just directly under:



     if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG LANGUAGE
    fi


    so the function looks like:



    wm_start()
    {
    if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG LANGUAGE
    fi

    startxfce4


    # debian
    if [ -r /etc/X11/Xsession ]; then
    . /etc/X11/Xsession
    exit 0
    fi
    .....

    }


    Now save and exit then restart xrdp.



    sudo service xrdp restart  





    share|improve this answer




























      0














      Ubuntu 13.04 is no longer supported for that I'm giving you solution for Ubuntu 12.04 and then I'll add the 14.04 solution later.



      For Ubuntu 12.04



      Use a tricky hack(obligate the xrdp to use the ubuntu-2d session always without searching for other sessions)



      Install xrdp:



      sudo apt-get install xrdp


      Now Edit the file startwm.sh:



      sudo gedit /etc/xrdp/startwm.sh


      In the end of the script you can find these three lines calling functions above:



      pre_start
      wm_start
      post_start


      All you have is to comment the wm_start function by inserting leading # then add the line for needed session.



      pre_start
      #wm_start

      gnome-session --session=ubuntu-2d

      post_start


      The wm_start function which is responsible for starting the window manager.



      Now save and exit, then restart xdrp:



      sudo service xrdp restart  


      This should works smoothly. I'm using it since three years ago.



      For Ubuntu 14.04 and later



      Install xrdp same as above



      Install XFCE4 or any other supported



      sudo apt-get install xfce4


      Edit our .xsession file in your home:



      echo xfce4-session >~/.xsession


      Edit startwm.sh file:



      sudo gedit /etc/xrdp/startwm.sh


      In the wm_start() Add the line startxfce4 just directly under:



       if [ -r /etc/default/locale ]; then
      . /etc/default/locale
      export LANG LANGUAGE
      fi


      so the function looks like:



      wm_start()
      {
      if [ -r /etc/default/locale ]; then
      . /etc/default/locale
      export LANG LANGUAGE
      fi

      startxfce4


      # debian
      if [ -r /etc/X11/Xsession ]; then
      . /etc/X11/Xsession
      exit 0
      fi
      .....

      }


      Now save and exit then restart xrdp.



      sudo service xrdp restart  





      share|improve this answer


























        0












        0








        0






        Ubuntu 13.04 is no longer supported for that I'm giving you solution for Ubuntu 12.04 and then I'll add the 14.04 solution later.



        For Ubuntu 12.04



        Use a tricky hack(obligate the xrdp to use the ubuntu-2d session always without searching for other sessions)



        Install xrdp:



        sudo apt-get install xrdp


        Now Edit the file startwm.sh:



        sudo gedit /etc/xrdp/startwm.sh


        In the end of the script you can find these three lines calling functions above:



        pre_start
        wm_start
        post_start


        All you have is to comment the wm_start function by inserting leading # then add the line for needed session.



        pre_start
        #wm_start

        gnome-session --session=ubuntu-2d

        post_start


        The wm_start function which is responsible for starting the window manager.



        Now save and exit, then restart xdrp:



        sudo service xrdp restart  


        This should works smoothly. I'm using it since three years ago.



        For Ubuntu 14.04 and later



        Install xrdp same as above



        Install XFCE4 or any other supported



        sudo apt-get install xfce4


        Edit our .xsession file in your home:



        echo xfce4-session >~/.xsession


        Edit startwm.sh file:



        sudo gedit /etc/xrdp/startwm.sh


        In the wm_start() Add the line startxfce4 just directly under:



         if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG LANGUAGE
        fi


        so the function looks like:



        wm_start()
        {
        if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG LANGUAGE
        fi

        startxfce4


        # debian
        if [ -r /etc/X11/Xsession ]; then
        . /etc/X11/Xsession
        exit 0
        fi
        .....

        }


        Now save and exit then restart xrdp.



        sudo service xrdp restart  





        share|improve this answer














        Ubuntu 13.04 is no longer supported for that I'm giving you solution for Ubuntu 12.04 and then I'll add the 14.04 solution later.



        For Ubuntu 12.04



        Use a tricky hack(obligate the xrdp to use the ubuntu-2d session always without searching for other sessions)



        Install xrdp:



        sudo apt-get install xrdp


        Now Edit the file startwm.sh:



        sudo gedit /etc/xrdp/startwm.sh


        In the end of the script you can find these three lines calling functions above:



        pre_start
        wm_start
        post_start


        All you have is to comment the wm_start function by inserting leading # then add the line for needed session.



        pre_start
        #wm_start

        gnome-session --session=ubuntu-2d

        post_start


        The wm_start function which is responsible for starting the window manager.



        Now save and exit, then restart xdrp:



        sudo service xrdp restart  


        This should works smoothly. I'm using it since three years ago.



        For Ubuntu 14.04 and later



        Install xrdp same as above



        Install XFCE4 or any other supported



        sudo apt-get install xfce4


        Edit our .xsession file in your home:



        echo xfce4-session >~/.xsession


        Edit startwm.sh file:



        sudo gedit /etc/xrdp/startwm.sh


        In the wm_start() Add the line startxfce4 just directly under:



         if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG LANGUAGE
        fi


        so the function looks like:



        wm_start()
        {
        if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG LANGUAGE
        fi

        startxfce4


        # debian
        if [ -r /etc/X11/Xsession ]; then
        . /etc/X11/Xsession
        exit 0
        fi
        .....

        }


        Now save and exit then restart xrdp.



        sudo service xrdp restart  






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 16 '15 at 8:42

























        answered Jun 16 '15 at 8:17









        Maythux

        50.2k32166215




        50.2k32166215






























            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%2f312466%2fproblem-with-setting-up-xrdp-on-lubuntu-13-04%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

            Category:香港粉麵

            List *all* the tuples!

            Channel [V]