Ubuntu 14 beta Server and Xrdp

Asked by Jon Hoffman

I asked this question on the Ask Ubuntu site but they directed me here, I hope this is the right form to ask this.
I am trying to get XRDP working with the latest beta of Ubuntu 14 server. However, after my rdp client logs in all I get is a grey screen with an X in the middle. This is the error from my .xsession-errors file:

---Log Begin

Xsession: X session started for at Wed Apr 9 10:16:16 EDT 2014
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 109 (X_ChangeHosts)
  Value in failed request: 0x5
  Serial number of failed request: 6
  Current serial number in output stream: 8
localuser:hoffmanjon being added to access control list
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 109 (X_ChangeHosts)
  Value in failed request: 0x5
  Serial number of failed request: 6
  Current serial number in output stream: 8
openConnection: connect: No such file or directory
cannot connect to brltty at :0
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
 2009 ? 00:00:00 VBoxClient
 2018 ? 00:00:00 VBoxClient
 2028 ? 00:00:00 VBoxClient
 2023 ? 00:00:00 VBoxClient
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
gnome-session-is-accelerated: No composite extension.
gnome-session-check-accelerated: Helper exited with code 256
** (process:2675): WARNING **: software acceleration check failed: Child process exited with code 1
** (x-session-manager:2675): CRITICAL **: We failed, but the fail whale is dead. Sorry....

---Log Ended

The GUI environments I have tried after the base install of the server and how I installed them:

    sudo apt-get install ubuntu-desktop: Gets the grey screen when I use my RDP client
    sudo apt-get install xubuntu-deskop: Gets the grey screen when I use my RDP client
    sudo apt-get install xubuntu-desktop xfce4: Gets the grey screen when I use my RDP client
    sudo apt-get install xorg xfce4: The rdp client works but doesn't provide all of the tools that the Ubuntu and Xubuntu desktop provide.

I also tired going though this post with no success.

Does anyone have any suggestions that may help in getting XRDP to work with one of the standard Ubuntu desktops?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Jon Hoffman
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Install lxde and have the session set to run the desktop by default. There are lots of video guides on YouTube for this too

Revision history for this message
Jon Hoffman (hoffman-jon) said :
#2

I solved the issue, here is what I did after the initial install Ubuntu 14 server install:

sudo apt-get install xubuntu-desktop
sudo apt-get xfce4
sudo apt-get install xrdp
sudo mv /etc/xrdp/startwm.sh /etc/xrdp/startwm.sh.orig
sudo ln –s /etc/X11/Xsession /etc/xrdp/startwm.sh

echo xfce4-session > ~/.xsession (this is needed for each user)
         or (for all users)
sudo vi /etc/X11/Xsession - Set USERXSESSION to a global file rather than an individual one
sudo echo xfce4-session > {global file from the last command}

Hope this helps anyone else with the same issue.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you are installing server then xubuntu-desktop, why not just install Xubuntu? What do you think you are doing by using this method?

The xubuntu-desktop metapackage also installs xfce4, so why the command to add it in extra?

Revision history for this message
Jon Hoffman (hoffman-jon) said :
#4

This is a server install and the standard Xubuntu installation adds a lot of desktop packages that I do not want. Personally I would prefer the server without a GUI but I do have other users that feel more comfortable with using GUI versions of certain tools so a command line only installation is not the best option here.
The xfce4 installation did add additional packages but I can not tell you what they were off the top of my head. I can say that xrdp worked after I added it with the xubuntu-desktop.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Installing the xubuntu-desktop package is 100% the same as the desktop

Revision history for this message
Jon Hoffman (hoffman-jon) said :
#6

Thanks for the information it is good to know. It has been a awhile since I did a standard xubuntu installation but I really thought it gave me a desktop installation with a number of extra packages, maybe I am think of something else. I know with the xubuntu-desktop package I did remove a number of packages (like the games) but it really was not that much. I will look at xubuntu install next time, thanks.