(esxi) lubuntu, rdp + guis

Soldato
Joined
13 Feb 2003
Posts
6,157
I'm trying to set up a *nix vm for some C++ stuff.

I have a Lubuntu vm configured and also installed xrdp so I can remote into it from my windows desktop. However, it seems several apps have issues bringing up their UIs. E.g. the included abiword doesn't work:

(abiword:1884): Gdk-ERROR **: The program 'abiword' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
(Details: serial 154 error_code 1 request_code 153 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

I have just installed Qt creator and that just doesn't do anything at all.

However, if instead of using mstsc.exe (win rdp), I use the console from the vSphere client then these both work ok.

Does anyone have any idea how I can get rdp and display working? The vsphere console is too small and impractical to use.
 
VMware tools would be first option.

I had a problem once with an older Ubuntu where running it in 2d worked but 3D wouldn't. I don't know lubuntu well enough but maybe some food for thought?
 
My only suggestion from the VMware perspective is to ensure that the virtual machine graphics memory allocation is sufficient. Has this been set to sufficient amounts for colour etc... required by RDP? Only linux vms generally are given by default very little resources by default.

VMware-Workstation-11-Create-Powerful-Virtual-Machines-and-Graphics.jpg
 
hmm, gfx memory was only set to 4MB. I bumped it up to 128MB - the maximum configurable.

Just installed vmware tools, but unfortunately I still have the same problem:

Code:
:~$ abiword

** (abiword:4711): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(abiword:4711): Gdk-ERROR **: The program 'abiword' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 99 error_code 1 request_code 149 (RANDR) minor_code 8)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)

qtcreator:
Code:
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
 
Last edited:
It's been more years than I care to remember but back in the day I worked in the PC / Unix integration field (Visionware, SCO, SGI) but here are my thoughts -

OK, this is a x windows issue. When you RDP or VNC into a "unix" box you don't get the console by default it's a secondary display. Your X Windows environment won't be aware of this and is still trying to display to the actual console because it doesn't know any better.

I'd look at using an X server on Windows to display the applications rather then RDP, basically you will get the "unix" applications displayed individually (or indeed the full desktop) within your Windows environment.

Quick download of an xserver and..

xwindows_1.jpg
 
Last edited:
oh, that looks interesting - please could you give a bit more info? I've installed xming and changed some /etc/ssh/ssh_config settings but I haven't got it working. Not really sure what I'm doing with this.

I checked the box for x11 forwarding in putty and set the location to 127.0.0.1:10

ssh config:
Code:
ForwardX11 yes
X11UseLocalhost yes
AllowTcpForwarding yes
X11DisplayOffset 10
X11Forwarding yes

Code:
@lubuntu-1-virtual-machine:~$ abiword

** (abiword:1262): WARNING **: Could not open X display
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

** (abiword:1262): WARNING **: clutter failed 0, get a life.
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
No DISPLAY: this may not be what you want.
 
Last edited:
your "location" is definitely wrong, it should be the ip address of the PC not host. Take this 1 step at a time

-> Uninstall xming
-> install VcXsrv
-> Launch Xterm using the default setting, it should be available via "Xlaunch", choose the following -
-> Multiple Windows
-> Start a program
-> Start a program on the remote computer
-> default will be "xterm"
-> password - obviously your password
-> connect to computer - ip address of host (Linux)
-> login as user - obviously tally up to password
-> private key - I left mine blank
-> default options on next screen


That should prove the x connectivity, once you get that far it "should" of case of changing the xterm to the correct executable and path for what you want to launch!
 
Ah! I had to match the displayoffset with an option in xming launcher - abiword is working! :D Now to reinstall qtcreator and try that.

Thanks so much.
 
the window is a "windows" window and within it is the window within Linux. It looks like a font issue i.e. the window is trying to a display a font windows doesn't recognise.

Easy way is it to try another xserver i.e. VcXsrv and see the fonts are ok or look at the debug to see what font is missing there is normally a font mapping option for unknown / not found fonts.
 
Last edited:
Back
Top Bottom