x11

Paramiko X11 mode with python programming

心不动则不痛 提交于 2019-12-08 03:42:27
I do not manage to use the Paramiko python module passing through its ssh X11 management functionality. I would like to use it as if I used the ssh -X option. I have tried several solution but nothing work on my system. Here is the code I tried: client = paramiko.SSHClient() client.set_missing_host_key_policy(AutoAddPolicy()) client.connect(machineName, username=xxx, password=xxx) t = client.get_transport () chan = t.open_session () chan.request_x11 () chan.set_combine_stderr (True) chan.exec_command (xxxxx) # the command that should display a X11 window bufsize = -1 stdin = chan.makefile('wb'

Run Octave remotely and display locally via X11

北城以北 提交于 2019-12-08 03:25:54
问题 I'm currently implementing some machine learning algorithm by octave and run in the remote server. Once I type some drawing commands such like hist() it shows that warning: X11 DISPLAY environment variable not set Is it possible that I set the environment as my local X11 service. How to do it? Thanks. 回答1: Connect the remote server by ssh and add the option -X ssh -X remote_server Then ssh will enable X11 forwarding. 来源: https://stackoverflow.com/questions/12337234/run-octave-remotely-and

How to prohibit user to change OS window focus/type keys for several seconds on Linux

浪子不回头ぞ 提交于 2019-12-08 02:07:46
问题 I write automated tests for a website. One of the tests needs to press Ctrl + S and type some letters to save a webpage including CSS/JS. The test should require Firefox to have window focus for those several seconds to be able to type the filename and click "Save" (currently XDoTool is used for pressing keys and clicking the mouse). Sometimes I run the tests on my computer. I don't want to occasionally type something or change the window focus while the page is being saved, so I want to

ivy ssh publisher

牧云@^-^@ 提交于 2019-12-08 01:16:22
问题 I am trying to use ssh publisher to publish artifacts to a remote server through jenkins. <ssh name="ssh-publisher" host="myhost.com" user="dummy" keyFile="/home/dummy/id_rsa"> <ivy pattern="/data/refdata/local0/artifacts[organisation]/[module]/[revision]/ivy-[revision].xml"/> <artifact pattern="/data/refdata/local0/artifacts/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/> </ssh> However when I tried to publish, I got the following error impossible to publish

How to take screenshot of obscured window in C++ on Linux

巧了我就是萌 提交于 2019-12-07 22:30:57
问题 I'm trying to figure out how to take a screenshot of a window that is currently not focused, so there is a good chance that the window will be partially or fully obscured by other windows. I've found an example here on this link Get a screenshot of a window that is cover or not visible or minimized with Xcomposite extension for X11 but I can't make it work, any time I take a screenshot I get only strange output, mostly black, like I'm accessing the wrong buffer or something. XID xid =

How to stop an X11 event loop gracefully asynchronously

我与影子孤独终老i 提交于 2019-12-07 12:46:29
问题 I have a small X11 application which has two threads. In one thread, I am listening to X11 events using XGrabKey() and then in a loop XNextEvent() . The other thread is doing other stuff and is not related to X11. Here's the code of the relevant thread: #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/XF86keysym.h> #include <stdbool.h> #include <stdio.h> #include <string.h> volatile bool loop = true; void keyGrab(void) { Display *display = XOpenDisplay(0); Window root =

Can anyone explain the way the “Khronos stack” of technologies fits together?

偶尔善良 提交于 2019-12-07 11:00:37
问题 I've been researching OpenGL, OpenGL-ES, etc...Can anyone explain to me, from the bottom up, how this all fits together? For instance, framebuffer -> ?? -> Window Manager -> OpenGL ? (That shows you where I'm at with this, sadly.) Or in the case of a workstation...video card -> DRI -> X -> WM -> ???? I've only recently started working on C++ stuff on personal projects...I've mainly worked on "business software" type stuff in the past...any help would be greatly appreciated! 回答1: There are

How to view GUI apps from inside a docker container

痴心易碎 提交于 2019-12-07 10:31:23
问题 When I try to run a GUI, like xclock for example I get the error: Error: Can't open display: I'm trying to use Docker to run a ROS container, and I need to see the GUI applications that run inside of it. I did this once just using a Vagrant VM and was able to use X11 to get it done. So far I've tried putting way #1 and #2 into a docker file based on the info here: http://wiki.ros.org/docker/Tutorials/GUI Then I tried copying most of the dockerfile here: https://hub.docker.com/r/mjenz/ros

Setup OpenGL on X11

a 夏天 提交于 2019-12-07 09:52:35
I have an Window identifier for X11 Window. I didn't setup this window, I just can get its id (and I suppose, visual id). How can I setup OpenGL context for this window? In particular, I want to use glXMakeCurrent , but this function receives Display and GLXContext objects. I can create context using glXCreateContext(display, vi, 0, GL_TRUE); but again I need in Display and XVisualInfo objects. Setting up a OpenGL context on a X11 window is covered by one of my code examples (based upon an example by FTB/fungus), with the notable difference that is uses FBConfig over a regular Visual. https:/

How to display java swing on X11 when running on Mac

为君一笑 提交于 2019-12-07 07:23:41
问题 I would really like to be able to run our test suite on Xvfb so that swing windows don't keep popping up in the way of my work. Unfortunately I cannot seem to find a way to get the java runtime to use the display specified in the DISPLAY environment variable. I suppose this is because the Mac JDK is hardwired to use the (non-X-based) Mac display. I can't find any switches for the java command that say to use X either. Thanks in advance for any help you can give! Matt 回答1: I don't know if