Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

sudo gedit /etc/xrdp/

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


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


gnome-session --session=ubuntu-2d


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 file:

sudo gedit /etc/xrdp/

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

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

so the function looks like:

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


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


Now save and exit then restart xrdp.

sudo service xrdp restart  
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.