xserver

tkinter in Ubuntu inside Windows 10. Error: “no display name and no $DISPLAY environment variable”

送分小仙女□ 提交于 2020-05-14 16:34:26
问题 I have recently installed the Ubuntu app for Windows 10 so that I can use it for a class. I am following some cryptic assignment directions to "try out tkinter". I installed the package python3-tk in the Ubuntu terminal window following instructions located here: How to install and use Tkinter in ubuntu / Debian / Linux mint. So then I execute ~$ python3 with the result Python 3.5.2 (default, Aug 18 2017, 17:48:00) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license"

tkinter in Ubuntu inside Windows 10. Error: “no display name and no $DISPLAY environment variable”

你离开我真会死。 提交于 2020-05-14 16:34:07
问题 I have recently installed the Ubuntu app for Windows 10 so that I can use it for a class. I am following some cryptic assignment directions to "try out tkinter". I installed the package python3-tk in the Ubuntu terminal window following instructions located here: How to install and use Tkinter in ubuntu / Debian / Linux mint. So then I execute ~$ python3 with the result Python 3.5.2 (default, Aug 18 2017, 17:48:00) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license"

Java Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable

十年热恋 提交于 2020-03-07 06:52:51
问题 I have a script using java to connect to display X11 in the port 10.0 at localhost but i get always this error java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178) at java.security.AccessController.doPrivileged(Native

xhost command for docker GUI apps (Eclipse)

天涯浪子 提交于 2020-01-23 08:50:01
问题 I'm looking at running a GUI app in docker. I've heard that this is incurs security problems due to the Xserver being exposed. I'd like to know what is being done in each of the following steps, specifically the xhost local:root : [ -d ~/workspace ] || mkdir ~/workspace xhost local:root docker run -i --net=host --rm -e DISPLAY -v $HOME/workspace/:/workspace/:z docbill/ubuntu-umake-eclipse 回答1: [ -d ~/workspace ] || mkdir ~/workspace This creates a workspace directory in your home directory if

How to run GUI via remort server

余生长醉 提交于 2019-12-25 08:57:10
问题 I'm using Qtcreator to make GUI. Ideally, I build the project in my local pc (CentOS virtual terminal), and move it to remort server(CentOS). Finally, I want to run it in windows system via X server(VcXsrv i use). As operation verification, I create a new file and build as it is. At first, it generates many errors in remort server, such as " ./test: /lib64/libc.so.6: version GLIBC_2.14 not found (required by /users/my/Qt/5.9.1/gcc_64/lib/libQt5Gui.so.5) ". I don't have root permission and can

Alternative to cvs2svn for performing cvs to svn migration

北战南征 提交于 2019-12-23 17:31:05
问题 I am trying to perform a migration from cvs to svn on my our new XServe server which is running OS X Server. There is a known conflict between the cvs2svn and dbm libraries that come pre-installed with OS X. The error is: ERROR: cvs2svn uses the anydbm package, which depends on lower level dbm libraries. Your system has dbm, with which cvs2svn is known to have problems. To use cvs2svn, you must install a Python dbm library other than dumbdbm or dbm. See http://python.org/doc/current/lib

Can't display png

自闭症网瘾萝莉.ら 提交于 2019-12-21 10:00:36
问题 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

Linux retrieve monitor names

江枫思渺然 提交于 2019-12-21 03:44:08
问题 Situation: I'm using multiple monitors and I want to get their names in bash. Currently I'm using Ubuntu 10.04. I know about xrandr. From it I can get only statistics data. What I want is to read all monitor names in an array to work with them. Is there a clear way to do that without cutting names from some kind of string? A clear way would be reading them from file. A not clear way would be to pipe xrandr output to some sort a function to cut names out from it. 回答1: sudo get-edid didn't work

How to enter password in a popup using watir?

故事扮演 提交于 2019-12-20 16:49:46
问题 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

How does GUI output work from application to hardware level?

大城市里の小女人 提交于 2019-12-18 12:27:45
问题 I am getting into GUI programming and did some research. Now not everything is clear to me. If I would use GTK+ as toolkit, how does it communicate with the graphics card? On a Linux system I suppose it would be GTK --> X Server --(OpenGL)--> graphics card. Is this right? I read that some GUIs directly draw OpenGL (e.g. Blender3D), so how do other apps draw their GUIs? If the only APIs (that i know of) for graphics cards is Direct3D and OpenGL, what is the distinction between software