Solution für running QT5 Gui python program on a Beaglebone Black in Cloud9 Debugger

Hello Community,
I develop a Python program with QT5 GUI on a Beaglebone Black with Debian Stretch.
The development plattform is a Cloud9 IDE on a Windows 10 PC.
The problem is: If i start a Python program with a GUI, this can not be displayed in the Cloud9 IDE.
I am looking for a solution to start the program directly (with Run) in the Cloud9 debugger.
There are many solutions (i.e. noVnc, C9-vnc, Putty + Xming, etc) to remotely open a terminal on the Beagle-bone and allow the Python GUI to run. However, this make the development process to slow and I can’t use the Debugger.
The best solution would be, if the grpahical output was redirected to a PC (Windows or Linux) with X-server.
Is there a developer who has found a configuration that works just like that?
Maybe I’m making a thought mistake and did not use the tools properly.

Note: I worked in my local network on the beagbone without a cloud9 Account and Workspace.

I would be very happy if someone had a solution.

thanks

peter

On Mon, 9 Jul 2018 16:08:08 -0400, Przemek Klosowski
<przemek.klosowski@gmail.com> declaimed the
following:

app -display PC:0

where PC is the DNS name or numerical IP of the PC. The network can be
either wired/wireless ethernet, or even the IP over USB connection.

  The problem is that Windows does not come with a native x-server that
can display x-client applications.

  One would first have to install a Windows x-server... And that leads
back to xming -- which the OP stated is too slow for development purposes
(at least the putty-xming combo).
https://sourceforge.net/projects/xming/
http://www.straightrunning.com/XmingNotes/
https://sourceforge.net/projects/vcxsrv/

  The alternative is to connect an HDMI monitor, and a wireless
keyboard/mouse dongle to USB, and log directly into the BBB desktop mode --
bypassing Cloud9.

  Note that -- with proper configuration -- it should be possible to have
the BBB desktop itself exported to an x-server, not just single
applications (the second link shows an image of an R-Pi desktop exported).

that’s what i tried.

  • change DISPLAY variable: export DISPLAY=192.168.2.11:0.0
  • Xming on PC configured at: 0:0
  • start xeyes

=>

Authorization required, but no authorization protocol specified

Error: Can’t open display: 192.168.2.11:0.0

Maybe as a Linux beginner I will make mistakes in the configuration.

Is there something else to set or start?

On Mon, 9 Jul 2018 15:58:18 -0700 (PDT),
true-time@web.de declaimed the following:

Authorization required, but no authorization protocol specified

Error: Can't open display: 192.168.2.11:0.0

Maybe as a Linux beginner I will make mistakes in the configuration.

Is there something else to set or start?

  Google xming authorization required for a start...

http://www.straightrunning.com/xmingnotes/trouble.php

"""
xhost program
To use the X server access control program, xhost (host-based), from
Command Prompt e.g. on Windows machine 192.168.0.2, with remote machine
192.168.0.3, using display-number 0...

set DISPLAY=192.168.0.2:0
Xming -multiwindow -clipboard
xeyes or whatever locally, will display on the Windows desktop
xhost +192.168.0.3

  and then on the remote machine
$ export DISPLAY=192.168.0.2:0
$ xeyes or whatever remotely, will display on the Windows desktop

Running xhost without any arguments shows the current hosts allowed to
access the server. xhost can be used to give (or deny) systems access to
the server interactively, overriding the contents of Xn.hosts files.
"""

  There is a lot more on the linked page. And a lot more pages on the
Google search.

Yeah, totally. X11 is a network protocol so you should be able to run your app and tell it to display over the network:

app -display PC:0

where PC is the DNS name or numerical IP of the PC. The network can be either wired/wireless ethernet, or even the IP over USB connection.

He did mention putty-xming but that’s overkill because putty is not needed. Just run the app over the network into xming. I didn’t think it was slow in any way, but I didn’t try anything fancy like video.