xserver

Starting Xserver in Docker Ubuntu container

坚强是说给别人听的谎言 提交于 2019-12-05 16:33:57
I have minimal Ubuntu installation in my container and I want to have Xserver running. I need XServer, because my app requires meshlabserver, which itself needs Xserver. I installed xserver-xorg and all other packages, but when I try to start X in container via /usr/bin/X :0 it says: Fatal server error: (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) What am I doing wrong? How do I start X server? UPDATE: related question: Host screen turns off when I start X server in docker container In my case it works nicely when I start container in privileged mode: docker run -

How to avoid Eclipse leaks on XServer when editing Android XML files?

有些话、适合烂在心里 提交于 2019-12-05 03:43:48
When I'm editing XML files in Eclipse (mainly, Android layouts and so), it causes leaks on XServer and it ends eating all my RAM (4GB), so I have to Ctrl+Alt+Backspace to continue. Do you know any remedy for that? Eclipse Juno and ADT v20 seem to be working well. It might help if you start eclipse off your java interpreter with a garbage collector enabled via the command line. Something like this could work: java /path/to/eclipse -XX:+UseParallelGC You could also add some swap space to your computer as a final option, but of course that's one step above asking you to go out and buy more ram.

How to kill headless X server started via Python?

大憨熊 提交于 2019-12-04 16:04:47
I want to get screenshots of a webpage in Python. For this I am using http://github.com/AdamN/python-webkit2png/ . newArgs = ["xvfb-run", "--server-args=-screen 0, 640x480x24", sys.argv[0]] for i in range(1, len(sys.argv)): if sys.argv[i] not in ["-x", "--xvfb"]: newArgs.append(sys.argv[i]) logging.debug("Executing %s" % " ".join(newArgs)) os.execvp(newArgs[0], newArgs) Basically calls xvfb-run with the correct args. But man xvfb says: Note that the demo X clients used in the above examples will not exit on their own, so they will have to be killed before xvfb-run will exit. So that means that

Host screen turns off when I start X server in docker container

﹥>﹥吖頭↗ 提交于 2019-12-04 09:45:33
I created docker container with X server inside. I use it for some off-screen OpenGL rendering. This container should work on any system (with or without X server running) and it should use hardware GPU if it exists (so I cannot use xvfb). When I use this container on server-like system without GUI, everything works perfectly. But when I run the container on Ubuntu 14.04 Desktop, the screen turns off each time I start X server in my container. I start container with --priviliged so /dev folder is shared with container. I believe it involves some kind of conflict. Is there a way to start X

Can't display png

拥有回忆 提交于 2019-12-04 03:28:28
I'm running R-shiny (R version 3.0.1 (2013-05-16)) on a VM (Red Hat Enterprise Linux Server release 6.4). Everything works, i.e., server starts up, and application runs etc... as long as I don't try to plot a graph renderPlot I then see on the main panel a message [error : unable to start device png]. I would post my whole code but this problem I think has to do with rendering plots as when I use renderText and spit out some data it works just fine. Actually when I just type in png() in R I get this error [ Error in .External2(C_X11, paste("png::", filename, sep = ""), g$width, : unable to

How to enter password in a popup using watir?

送分小仙女□ 提交于 2019-12-03 03:47:43
I'm writing some watir test cases: browser.goto "http://egauge2592.egaug.es/" browser.link(:href,"/settings.html").click browser.text_field(:index,4).set("some text") browser.button(:id,"save_button").click then a 'Authentication Required' dialogue opens, asking for username and password . No matter how I tried, I couldn't access the text fields. I tried send_keys and JavaScript. I also tried Watir.autoit but it says undefined method. I'm using watir on a Ubuntu machine with the FireFox browser. How to fill in username and password fields of that dialogue box? I was able to enter username with

How do I talk to an X server in C without a graphics library? [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-01 11:38:32
If I wanted to write a C program to talk to an X server on Linux and produce the simplest possible visual result, e.g. setting a single pixel on the display, how would I do it? I want to use as few libraries as possible, to understand it from the ground up, no matter how inefficient/messy the code is. Update - by "without a library", I mean basically without any of the helper libraries that are available for X, and without a graphics toolkit. Update - the answer is "through a unix socket", specifically /tmp/.X11-unix/X0 (on this machine at least, presumably for display 0). Actually drawing a

How do I talk to an X server in C without a graphics library? [closed]

风格不统一 提交于 2019-12-01 07:28:14
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . If I wanted to write a C program to talk to an X server on Linux and produce the simplest possible visual result, e.g. setting a single pixel on the display, how would I do it? I want to use as few libraries as possible, to understand it from the ground up, no matter how

In Linux, do I need an X server to do off-screen rendering?

血红的双手。 提交于 2019-12-01 04:04:56
And if so why? What does X do for me beyond piping my rendering commands to the graphics card driver? I'm not clear on the relationship X - OpenGL. I've searched the internet but couldn't find a concise answer. If it matters, assuming a minimal modern distribution, like a headless Ubuntu 13 machine. datenwolf With the current drivers: Yes. And if so why? Because the X server is the host for the actual graphics driver talking to the GPU. At the moment Linux GPU drivers require a X server that gives them an environment to live in and a channel to the kernel interfaces to talk through with the

In Linux, do I need an X server to do off-screen rendering?

戏子无情 提交于 2019-12-01 01:26:59
问题 And if so why? What does X do for me beyond piping my rendering commands to the graphics card driver? I'm not clear on the relationship X - OpenGL. I've searched the internet but couldn't find a concise answer. If it matters, assuming a minimal modern distribution, like a headless Ubuntu 13 machine. 回答1: With the current drivers: Yes. And if so why? Because the X server is the host for the actual graphics driver talking to the GPU. At the moment Linux GPU drivers require a X server that gives