x11

xclock works, X11 DISPLAY set but still java.awt.HeadlessException:

╄→гoц情女王★ 提交于 2021-01-27 18:49:00
问题 Getting a java.awt.HeadlessException seems to be a pretty common issue and has been discussed in the. following questions: "No X11 DISPLAY variable" - what does it mean? Getting a HeadlessException: No X11 DISPLAY variable was set java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it The solutions suggest to

freeglut (./light): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow

江枫思渺然 提交于 2021-01-27 05:36:48
问题 I installed the OpenGL in Linux server (Ubuntu16.04) without a graphical interface, install command below: apt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev apt-get install freeglut3-dev libglew1.10 libglew-dev libgl1-mesa-glx libxmu-dev apt-get install libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev apt-get install mesa-utils now, I compile light.c by gcc light.c -o light -lGL -lglut . I want to display it in my Windows mechine by XMing server. code:

freeglut (./light): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow

穿精又带淫゛_ 提交于 2021-01-27 05:36:04
问题 I installed the OpenGL in Linux server (Ubuntu16.04) without a graphical interface, install command below: apt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev apt-get install freeglut3-dev libglew1.10 libglew-dev libgl1-mesa-glx libxmu-dev apt-get install libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev apt-get install mesa-utils now, I compile light.c by gcc light.c -o light -lGL -lglut . I want to display it in my Windows mechine by XMing server. code:

Configuring macOS PyCharm for X11 Forwarding

蓝咒 提交于 2021-01-21 05:48:42
问题 import numpy as np import matplotlib import matplotlib.pyplot as plt x = np.linspace(1,1000) plt.plot(np.linspace(1, 1000)) print("Works") plt.show() I am trying to run the simple code above within PyCharm on a remote machine, but showing the plots on my local machine (mac). The plot does not appear. I do have xQuartz X11 Server running. Pycharm runs the remote interpreter fine. If I run it from macOS terminal, using ssh -X pier@129.168.0.181 python test.py plt.show() works. I reckon that the

Configuring macOS PyCharm for X11 Forwarding

一曲冷凌霜 提交于 2021-01-21 05:48:04
问题 import numpy as np import matplotlib import matplotlib.pyplot as plt x = np.linspace(1,1000) plt.plot(np.linspace(1, 1000)) print("Works") plt.show() I am trying to run the simple code above within PyCharm on a remote machine, but showing the plots on my local machine (mac). The plot does not appear. I do have xQuartz X11 Server running. Pycharm runs the remote interpreter fine. If I run it from macOS terminal, using ssh -X pier@129.168.0.181 python test.py plt.show() works. I reckon that the

Difference between XTestFakeButtonEvent & XSendEvent

心已入冬 提交于 2020-12-31 05:12:45
问题 I'm trying to write simple mouse clicker for ubuntu via x11. For first i wrote first variant (based on XSendEvent) of clicking procedure: #include <unistd.h> #include <X11/Xlib.h> #include <X11/Xutil.h> void mouseClick(int button) { Display *display = XOpenDisplay(NULL); XEvent event; if(display == NULL) { std::cout << "clicking error 0" << std::endl; exit(EXIT_FAILURE); } memset(&event, 0x00, sizeof(event)); event.type = ButtonPress; event.xbutton.button = button; event.xbutton.same_screen =

Difference between XTestFakeButtonEvent & XSendEvent

耗尽温柔 提交于 2020-12-31 05:06:41
问题 I'm trying to write simple mouse clicker for ubuntu via x11. For first i wrote first variant (based on XSendEvent) of clicking procedure: #include <unistd.h> #include <X11/Xlib.h> #include <X11/Xutil.h> void mouseClick(int button) { Display *display = XOpenDisplay(NULL); XEvent event; if(display == NULL) { std::cout << "clicking error 0" << std::endl; exit(EXIT_FAILURE); } memset(&event, 0x00, sizeof(event)); event.type = ButtonPress; event.xbutton.button = button; event.xbutton.same_screen =

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-aadithyasb'

自闭症网瘾萝莉.ら 提交于 2020-12-08 15:51:08
问题 I am using WSL in Windows 10. I have this warning getting displayed when I run a python file: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-aadithyasb' I can understand that the XDG_RUNTIME_DIR environment variable is not set and it is creating its own path /tmp/runtime-aadithyasb I am getting this warning from the moment I installed Xserver for Windows using VcXsrv to open plots when the file is ran. Wy question is should I add this XDG_RUNTIME_DIR environment variable

How do you exit X11 program without Error

让人想犯罪 __ 提交于 2020-12-01 02:06:29
问题 I have a fairly simple "Hello World" in X11 at end of question. But when it exits I get the run time error messages below: $ ./xtest XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 9 requests (7 known processed) with 0 events remaining. So I tried handling the wmDeleteMessage myself, and I was able to stop the window from closing, so i know I am getting the event correctly. Than I added a XDestroyWindow() to the event handling and I get new errors. X Error of

How do you exit X11 program without Error

给你一囗甜甜゛ 提交于 2020-12-01 02:04:08
问题 I have a fairly simple "Hello World" in X11 at end of question. But when it exits I get the run time error messages below: $ ./xtest XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 9 requests (7 known processed) with 0 events remaining. So I tried handling the wmDeleteMessage myself, and I was able to stop the window from closing, so i know I am getting the event correctly. Than I added a XDestroyWindow() to the event handling and I get new errors. X Error of