x11

Resizing an Xvfb display

让人想犯罪 __ 提交于 2019-12-13 11:38:09
问题 Simple Question: Is there a way to resize a Xvfb display? I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen? Thanks for your help! 回答1: You can use the server-args command line argument to specify a custom resolution for the virtual frame buffer being created, but this does not change the resolution of an existing virtual frame buffer: xvfb-run --server-args="-screen 0, 1024x768x24" ... 回答2: Most distributions now ship

why can i not run a X11 application?

梦想的初衷 提交于 2019-12-13 11:25:16
问题 So, as the title states, I'm a docker newbie. I downloaded and installed the archlinux/base container which seems to work great so far. I've setup a few things, and installed some packages (including xeyes ) and I now would like to launch xeyes . For that I found out the CONTAINER ID by running docker ps and then used that ID in my exec command which looks now like: $ docker exec -it -e DISPLAY=$DISPLAY 4cae1ff56eb1 xeyes Error: Can't open display: :0 Why does it still not work though? Also,

Having issues with XPutImage

半腔热情 提交于 2019-12-13 07:14:46
问题 I have these function calls : OSPImgBlit(&img->_obj, &win1->_obj, 0, 0, 0, 0, 640, 480); OSPRun(&win1->_obj, OSPWND_SWAP); for these implementations : void OSPwnd_swap(OSPobj *obj, va_list arg) { OSPwindow *wnd = (OSPwindow *) obj; XdbeSwapInfo swpifo; swpifo.swap_window = wnd->_wnd; swpifo.swap_action = XdbeUndefined; // XdbeSwapBuffers returns true on success, we return 0 on success. if(XdbeSwapBuffers(wnd->_dpy->_dpy, &swpifo, 1)) { OSPrint(1, "OSPwnd_swap : Window %d swapped " "on

Cannot open display while running X Apps as another user

安稳与你 提交于 2019-12-13 06:40:56
问题 I am currently using X11RDP to connect to a RHEL 6.5 endpoint , as root user. All X apps work fine, and directed properly to the right display (say 11.0). Now if I switch to another user ( su - user1 ), then I try to open any X app (say xterm) it will be unable to open the display (even though it is also 11.0). I do not believe the problem to be with xauth (magic cookies, etc), or the DISPLAY environment variable not being set correctly, or allowing connection with xhost + ; but rather

How to run another java process with console in java (in Linux)

ぃ、小莉子 提交于 2019-12-13 06:25:19
问题 How can I run an another java process (with a console) in Linux? I know I should use ProcessBuilder or Runtime.getRuntime().exec() to execute a command, but I want to know how I can show an separate X-window command terminal (ex. /usr/bin/xterm ) or at least show an console-terminal looking window and run a java process with stdin,stdout,stderr on that. Is there any solution? I heard the Process.getOutputStream() doesn't work on xterm, but haven't tried it yet (Because I'm using Windows..)

Qt with XComposite problem

佐手、 提交于 2019-12-13 03:54:30
问题 I'm trying to write a simple program, which redirects all the windows to the backbuffer( as the composite manager does ), then write them to pixmap and save to disk. But I got this error: (.text.startup+0x5e):-1: error: undefined reference to `XCompositeRedirectSubwindows' (.text.startup+0x171):-1: error: undefined reference to `XCompositeNameWindowPixmap' :-1: error: collect2: ld returned 1 exit status Here is the code : #include <QApplication> #include <QDebug> #include <X11/Xlib.h>

Ubuntu 16.04: fatal error: X11/Xlib.h: No such file or directory

﹥>﹥吖頭↗ 提交于 2019-12-13 00:44:25
问题 I am trying to install Rgtk2 (dependency for rattle). I am using R thru Anaconda. I am getting the following error. In file included from Rgtk.c:7:0: /usr/include/gtk-2.0/gdk/gdkx.h:32:10: fatal error: X11/Xlib.h: No such file or directory #include <X11/Xlib.h> ^~~~~~~~~~~~ I tried the following workarounds as found in StackOverflow and other blogs. Installed libx11-dev, mesa-common-dev, libglu1-mesa-dev, libxrandr-dev, libxi-dev Tried installing RGtk2_2.20.31 from source. Every time I am

Effective way of detecting X11 vs Wayland, preferrably with CMake

与世无争的帅哥 提交于 2019-12-12 19:39:32
问题 So I've done some Google searching and this is something that has very little knowledge out there. What would be an effective and foolproof way of detecting whether X11 or Wayland is in use, preferrably at compile-time and with CMake? I need to apply this to a C++ project of mine. 回答1: I assume you want to evaluate the display server during compile time, when calling CMake, instead of for every compilation. That's how CMake works and hot it should be used. One downside is, that you have to re

How to run py-faster-rcnn with X11 forwarding

元气小坏坏 提交于 2019-12-12 19:21:54
问题 I'm running py-faster-rcnn with cuDNN enabled on a g2.8xlarge EC-2 instance with Ubuntu 14.04 operating system. Everything's compiled and seems to be working fine. I log in to the remote instance via: ssh -X -i "<key.pem>" ubuntu@<IP address> I also enter the command: export DISPLAY=:0 Running ./tools/demo.py the output looks good: Loaded network /home/ubuntu/py-faster-rcnn/data/faster_rcnn_models/VGG16_faster_rcnn_final.caffemodel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Demo for data/demo/000456

Trouble installing Dlib for python on Mac OSX 10.10

浪子不回头ぞ 提交于 2019-12-12 11:48:37
问题 I'm trying to install dlib-18.16 for python on my computer (running Mac OSX 10.10). I have boost python installed as well as X11, but I've been running into trouble when running ./compile_dlib_python_module.bat as instructed to after downloading the files. The errors I get are numerous, but look something like this [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o In file included from /Users/xxx/Downloads/dlib-18.16/dlib/gui_widgets/fonts.cpp:14: /Users/xxx