x11-forwarding

X11 forwarding doesn’t work when image runs in docker machine but it works fine if the image is run w/o a docker machine

梦想的初衷 提交于 2019-12-25 00:48:56
问题 I have a docker container based on debian and it works when I run it like, “docker run -ti --name devworkstation --rm --net=host -v /var/run/docker.sock:/var/run/docker.sock -e DISPLAY=$env:DISPLAY xxxx/xxxx:devworkstation” By works, I mean that the bash command prompt comes up and when I run xeyes, I see the window on my windows 10 computer as I expect. (x11 forwarding works.) ($env:DISPLAY = “myWinIP:0.0”) I then created a new external virtual switch named, “dockerExternalSwitch,” and a

Pyplot “cannot connect to X server localhost:10.0” despite ioff() and matplotlib.use('Agg')

只谈情不闲聊 提交于 2019-12-24 00:55:00
问题 I have a piece of code which gets called by a different function, carries out some calculations for me and then plots the output to a file. Seeing as the whole script can take a while to run for larger datasets and since I may want to analyse multiple datasets at a given time I start it in screen then disconnect and close my putty session and check back on it the next day. I am using Ubuntu 14.04. My code looks as follows (I have skipped the calculations): import shelve import os, sys, time

Is there a way to reduce the amount of X11 traffic produced by Qt Creator?

折月煮酒 提交于 2019-12-22 07:06:36
问题 My team is evaluating various IDEs for an upcoming project. One of the requirements is that we wish to log into a central, powerful Linux server from our local Windows computers (our previous project was under Windows and changing it is not an option). Our approach is to use XRDP, but we are also looking at using an X11 server locally on our Windows machines. We noticed that when we try to run Qt Creator on the remote Linux machine but have it display on the X11 server running on our local

X11 forwarding of GUI app in Docker container

£可爱£侵袭症+ 提交于 2019-12-09 16:22:07
问题 I am currently trying to run some GUI apps in docker containers. I have been trying the ones by jessie frazelle at github. However I can build the images (or get from docker hub) and run them without any visible errors but, the windows don't display (i cant see the app). I am running Docker version 1.13.1 on Ubuntu 16.04 The image is created from: FROM debian:stretch MAINTAINER Jessie Frazelle <jess@linux.com> RUN apt-get update && apt-get install -y \ libreoffice \ --no-install-recommends \

Error: Unable to initialize gtk, is DISPLAY set properly?

眉间皱痕 提交于 2019-12-07 12:35:27
问题 I'm trying to run Image application from server "bert" I connected through my OSX Maverick as ssh ak324@bert.eecs.qmul.ac.uk I compiled my file with $ make but when I run the resulting file $ ./window it gives me the following error: Error: Unable to initialize gtk, is DISPLAY set properly? How can I solve this problem? 回答1: You should connect with the -X or -Y option to be able to launch graphical applications: ssh -X ak324@bert.eecs.qmul.ac.uk If that doesn't help, you should consult /etc

pyplot while using X11 forwarding

点点圈 提交于 2019-12-06 12:34:45
问题 I'm trying to setup my remote working environment so that I can use matplotlib.pyplot under ipython. My local machine and remote machine are both MAC OSX Mavericks. I've tried xeyes and it works properly so I think my X11 forwarding works fine. However, when I try functions in matplotlib.pyplot it didn't show any error message but I didn't see any figure either. I know it's about which backend to use and I've tried using ipython --pylab=tk but didn't work. Tried to install pygtk but can't

Is there a way to reduce the amount of X11 traffic produced by Qt Creator?

会有一股神秘感。 提交于 2019-12-05 09:26:30
My team is evaluating various IDEs for an upcoming project. One of the requirements is that we wish to log into a central, powerful Linux server from our local Windows computers (our previous project was under Windows and changing it is not an option). Our approach is to use XRDP, but we are also looking at using an X11 server locally on our Windows machines. We noticed that when we try to run Qt Creator on the remote Linux machine but have it display on the X11 server running on our local machine, the interface is very choppy and slow. Refreshes are too sluggish to make the tool useful. We do

pyplot while using X11 forwarding

被刻印的时光 ゝ 提交于 2019-12-04 19:38:23
I'm trying to setup my remote working environment so that I can use matplotlib.pyplot under ipython. My local machine and remote machine are both MAC OSX Mavericks. I've tried xeyes and it works properly so I think my X11 forwarding works fine. However, when I try functions in matplotlib.pyplot it didn't show any error message but I didn't see any figure either. I know it's about which backend to use and I've tried using ipython --pylab=tk but didn't work. Tried to install pygtk but can't manage to install a dependency py2cairo (seems to be an open issue ). Any other thoughts? Thanks. How did

how can I enable x-11 forwarding in pycharm? when connecting to vagrant or a remote ssh?

白昼怎懂夜的黑 提交于 2019-12-04 11:30:12
问题 I am using pycharm in windows but the python backend need to be running on unix so I host the python app/code in ubuntu with vagrant, however I need to do some plotting as well, is there a way I can enable matplotlab plotting in pycharm with vagrant? thanks 回答1: Try to set DISPLAY environment variable in PyCharm run configuration like this: DISPLAY=localhost:10.0 I got my display value from vagrant ssh connection vagrant@vagrant:$ echo $DISPLAY localhost:10.0 回答2: In case anyone stumbles upon

Xt error: Can't open display, if using default DISPLAY

流过昼夜 提交于 2019-12-03 11:14:10
Overview I'm attempting to get XQuartz to work on OSX so I can do X11 forwarding via Docker. I'm following the instructions here . I believe my question may be answered by just the first part, but just in case (to avoid the XY problem), I've provided the second part as well. Installation I've installed it via homebrew, via brew cask install xquartz . Then I open -a XQuartz to start it. Local xterms Testing it out, if I try to open an xterm , it does not work: MacBook-Pro:opencv-gui csaftoiu$ xterm xterm: Xt error: Can't open display: /private/tmp/com.apple.launchd.3wncZULdXC/org.macosforge