sld-columbia / esp

Embedded Scalable Platforms: Heterogeneous SoC architecture and IP integration made easy
Other
343 stars 107 forks source link

ESP configuration GUI not opening: #141

Closed mayank-kabra2001 closed 2 years ago

mayank-kabra2001 commented 2 years ago

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 - image

Help Required !!

klchiu commented 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

mayank-kabra2001 commented 2 years ago

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. image

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

SaltedFishLZ commented 2 years ago

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.

SaltedFishLZ commented 2 years ago

BTW, is it possible to run as a non-root user to show GUI applications in podman (I am using RHEL 8)? @klchiu

klchiu commented 2 years ago

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

TrungNgoc20172869 commented 1 year ago

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 - image

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?

klchiu commented 1 year ago

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?