Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: No protocol specified, Traceback, _tkinter.TclError: couldn't connect to display ":0", intermezzo imposer #4

Open
dapne opened this issue Aug 18, 2019 · 0 comments

Comments

@dapne
Copy link

dapne commented Aug 18, 2019

Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux

Dependencies installed (tried multiple to see if it would help): python3, python3-usb, python3-libusb1, libgusb2, pypy-libusb1, python-libusb1

(Also, libusb-0.1.so.4, libusb-0.1.so.4.4.4, libusb-1.0.so.0, libusb-1.0.so.0.1.0 are present in /lib/)

When running the app.py script as sudo, I get the following error:

No protocol specified
No protocol specified
Traceback (most recent call last):
File "fusee-interfacee-tk/app.py", line 128, in
my_app = App()
File "fusee-interfacee-tk/app.py", line 14, in init
tk.Frame.init(self, master)
File "/usr/lib/python3.7/tkinter/init.py", line 2744, in init
Widget.init(self, master, 'frame', cnf, {}, extra)
File "/usr/lib/python3.7/tkinter/init.py", line 2292, in init
BaseWidget._setup(self, master, cnf)
File "/usr/lib/python3.7/tkinter/init.py", line 2259, in _setup
_default_root = Tk()
File "/usr/lib/python3.7/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 ":0"

Solution: DON'T run as sudo. Just run it without sudo and this error will stop.

I was brought here after this guide https://nh-server.github.io/switch-guide/user_guide/emummc/sending_payload/ which told me to run as sudo or root. In most cases, you might get stuck like I did.

But I wasn't out of the woods yet. Upon running without sudo, the GUI/user interface shows up (launches correctly) and I go to select hekate and launch the payload. But as soon as I launch the payload I get this error:

~$ python3 fusee-interfacee-tk/app.py
Could not find the intermezzo interposer. Did you build it?

Also FWIW, as far as executing the binary goes, this error shows when ran as sudo:

No protocol specified
No protocol specified
Traceback (most recent call last):
File "app.py", line 130, in
File "app.py", line 12, in init
File "tkinter/init.py", line 2744, in init
File "tkinter/init.py", line 2292, in init
File "tkinter/init.py", line 2259, in _setup
File "tkinter/init.py", line 2023, in init
_tkinter.TclError: couldn't connect to display ":0"
[4308] Failed to execute script app

But when run without sudo, I was able to execute the binary successfully, smash the stack, and boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant