x11-forwarding

Unable to open X display when trying to run google-chrome on Centos (Rhel 7.5)

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-06 20:00:19
问题 I need to run Google Chrome remotely on a virtual machine using SSH. I do not want xforwarding - I want to utilize the GPU available on the vm. When I try running google-chrome I get following error: [19615:19615:0219/152933.751028:ERROR:browser_main_loop.cc(1512)] Unable to open X display. I've tried to setting my DISPLAY env value to various values: export DISPLAY=localhost:0.0 export DISPLAY=127.0.0.1:0.0 export DISPLAY=:0.0 I've also tried replacing 0.0 in abowe examples with different

Unable to open X display when trying to run google-chrome on Centos (Rhel 7.5)

喜夏-厌秋 提交于 2021-02-06 19:57:10
问题 I need to run Google Chrome remotely on a virtual machine using SSH. I do not want xforwarding - I want to utilize the GPU available on the vm. When I try running google-chrome I get following error: [19615:19615:0219/152933.751028:ERROR:browser_main_loop.cc(1512)] Unable to open X display. I've tried to setting my DISPLAY env value to various values: export DISPLAY=localhost:0.0 export DISPLAY=127.0.0.1:0.0 export DISPLAY=:0.0 I've also tried replacing 0.0 in abowe examples with different

How to set up working X11 forwarding on WSL2

隐身守侯 提交于 2020-07-04 06:54:06
问题 When moving from WSL1 to WSL2 many things change; apparently this applies to X11 forwarding as well. What steps do I need to make in order to use X11 forwarding with WSL2 on Windows 10 as I did with WSL1? 回答1: TL;DR: Add the following to your ~/.bashrc : export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 export LIBGL_ALWAYS_INDIRECT=1 Enable Public Access on your X11 server for Windows.* Add a separate inbound rule for TCP port 6000 to the windows firewall

X11 forwarding request failed on channel 0

这一生的挚爱 提交于 2020-06-24 08:24:22
问题 When I do " ssh -X abcserver ", I got message " X11 forwarding request failed on channel 0 ". I checked online and it was suggested to solve it by switching " X11UseLocalhost no " to " X11UseLocalhost yes ". However, both my manager and I don't have this administrative privilege. I am wondering, except this solution, whether there is another option to solve the issue ? I also don't have sudo privilege to directly install X11 on the server. My local platform is: Linux version 3.16.0-4-amd64

x11vnc xopendisplay failed

房东的猫 提交于 2020-06-14 06:34:28
问题 I installed x11vnc and then execute x11vnc but failed following is the error message $x11vnc -display :0 08/05/2017 19:18:22 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 7572 08/05/2017 19:18:22 XOpenDisplay(":0") failed. 08/05/2017 19:18:22 Trying again with XAUTHLOCALHOSTNAME=localhost ... 08/05/2017 19:18:22 *************************************** 08/05/2017 19:18:22 *** XOpenDisplay failed (:0) *** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue. *** There may be

How can I connect to a Google Compute Engine virtual server with a GUI?

扶醉桌前 提交于 2020-04-09 17:55:21
问题 I am testing a Google Compute Engine, and I created a VM with Ubuntu OS. When I connect to it, by clicking this Connect SSH button, it opens a console window. Is that the connection you get? How do I open a real screen with a GUI on it? I don't want the console. 回答1: Much better solution from Google themselves: https://medium.com/google-cloud/linux-gui-on-the-google-cloud-platform-800719ab27c5 回答2: You need to forward the X11 session from the VM to your local machine. This has been covered in

java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable

依然范特西╮ 提交于 2020-01-04 05:25:18
问题 I have been trying to run a Java AWT based application on an Ubuntu VM inside Docker . The application is a very simple one and it flawlessly runs on Windows through Eclipse. It simply opens up a window and prints hello world!. In fact when I export the jar file in to an Ubuntu VM that is running on my Windows host also gives me the same output as Windows when I run the jar file through “java -jar JFrameDocker.jar” . However the story is not same when I try to run it inside docker. The

X11 forwarding of a GUI app running in docker

别说谁变了你拦得住时间么 提交于 2019-12-30 03:42:26
问题 First off: I have read the answers to similar questions on SO, but none of them worked. The situation: App with GUI is running in a docker container (CentOS 7.1) under Arch Linux. (machine A) Machine A has a monitor connected to it. I want to access this GUI via X11 forwarding on my Arch Linux client machine. (machine B) What works: GUI works locally on machine A (with /tmp/.X11-unix being mounted in the Docker container). X11 forwarding of any app running outside of docker (X11 forwarding is