Closed mayank-kabra2001 closed 2 years ago
Hi it seems like a display issue. Are you using a remote server? You can test with xclock to make sure you have the correct X11 forwarding settings
Yes I am using the docker on the remote server. I am able to establish X11 connection in the server but not in the docker.
The command I am using to run docker is - sudo docker run -it --user espuser --security-opt label=type:container_runtime_t --network=host -e DISPLAY=$DISPLAY -v "$HOME/.Xauthority:/root/.Xauthority:rw" columbiasld/esp:ubuntu18-full /bin/bash
Hi, Mayank. Could you please try to sudo bash
to switch to the root user?
I also found this issue. As root, I can open GUI applications.
BTW, is it possible to run as a non-root user to show GUI applications in podman (I am using RHEL 8)? @klchiu
Hi @SaltedFishLZ sorry I just read the message. You shouldn't need to be sudo user to open the GUI. I've never used podman but I can try to see what I can do in the next few weeks
Steps -
Move to the Xilinx VC707 working folder
cd /socs/xilinx-vc707-xc7vx485t make esp-xconfig
Error facing - Running interactive ESP configuration... X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. Traceback (most recent call last): File "/home/espuser/esp/tools/socgen/esp_creator.py", line 268, in root = Tk() File "/usr/lib/python3.6/tkinter/init.py", line 2023, in init self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: couldn't connect to display "localhost:10.0" /home/espuser/esp/utils/make/esp.mk:47: recipe for target 'esp-xconfig' failed make: *** [esp-xconfig] Error 1
Screenshot -
Help Required !!
Hi @klchiu and @mayank-kabra2001, I also have the problems of GUI start like this. How try to run sudo make esp-xconfig
but it requires espuser password and I dont know what it is. Could you tell me how to fix this?
Hi @TrungNgoc20172869 the password for espuser should be espuser. But I think your problem is about the Xforwarding. When you start the docker container, do you set the DISPLAY variable?
Steps -
Move to the Xilinx VC707 working folder
cd/socs/xilinx-vc707-xc7vx485t
make esp-xconfig
Error facing - Running interactive ESP configuration... X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. Traceback (most recent call last): File "/home/espuser/esp/tools/socgen/esp_creator.py", line 268, in
root = Tk()
File "/usr/lib/python3.6/tkinter/init.py", line 2023, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display "localhost:10.0"
/home/espuser/esp/utils/make/esp.mk:47: recipe for target 'esp-xconfig' failed
make: *** [esp-xconfig] Error 1
Screenshot -
Help Required !!