8/15/2023 0 Comments No protocol specified geditThe system should respond with: "access control disabled, clients can connect from any host" Please try typing "sudo xhost +" from the command line. Well I was logged on to a gnome session, and had a terminal open(Pseudo).Īlso I don't think there's a problem with the env variables, Ill check the path when the problem happens againīut right now(everything is working this ~ $ echo $XAUTHORITY your path is probably the problem, i could replicate the problem in 2 seconds 1st try.) (i dont know the exact syntax to 'report' to merge threads so ill let it be, and link the answer. ![]() Have you started X-Windows (aka KDE, gnome) etc? Do you just have a command prompt, or are you entering these commands from a text window running inside a desktop? It sounds like you are trying to run a GUI program from the command line. The error is the same on a regular user and root Run 'eog -help' to see a full list of available command line ~ $ gedit Several applications refuse to run and I get this error: ![]() Posted: Fri 8:39 pm Post subject: No protocol specified Cannot open display error ![]() Gentoo Forums Forum Index Desktop Environments No protocol specified Cannot open display error If (prefix = 0 & (strncmp (fulldpyname, "unix:", 5) = 0 ||ĭiff -git a/xauth/parsedpy.c b/xauth/parsedpy.Gentoo Forums :: View topic - No protocol specified Cannot open display error * information to be copied and set len to the number of bytes. Subject: parse_displayname: use FamilyWild for *:0Ģ files changed, 8 insertions(+), 0 deletions(-)ĭiff -git a/xauth/gethost.c b/xauth/gethost.c In ALT's xauth package, there has been applied a patch recently to support adding such FamilyWild entries via xauth directly with an *:0 argument: From bc78aa61cfbddaa27dee275f639ba40de6981b17 Mon Sep 17 00:00:00 2001įrom: George V. In this case, the string written after the family number (usually, a hostname etc.) does not matter for matching at all. xauth nlist :0 | sed -e 's/^./ffff/' | xauth nmerge. The value of FamilyWild is 65535 or 0xffff. We need to change the first 16 bits of the I am not sure, if xauth has a proper command line to specify theĪuthentication Family, but I use sed to switch to Authenticationįamily 'FamilyWild'. The Xauthority file can be written in a way so that the hostname does If you don't have a terminal emulator open at that time and you are unable to open one because of the authentication error, you could switch to the console (text mode), login there and execute the above command. Note also that the value of the cookie being added should match the value of the existing one. ![]() :ddd.0, then you should change the added host entry accordingly to "($hostname)/unix:ddd". $(hostname) expands to the result of the hostname command and unix:0 corresponds to your DISPLAY environment variable being set to :0.0. What you can do is to add a matching cookie using xauth: $ xauth add "$(hostname)/unix:0" MIT-MAGIC-COOKIE-1 bd988401cbf8xxxxxxxxxxxxxxxxxxxx If you change your host name, the X11 client library will no longer be able to find a matching cookie in the authentication database and the X11 server will reject the unauthenticated connection (unless configured otherwise). unix:1012 MIT-MAGIC-COOKIE-1 bd988401cbf8xxxxxxxxxxxxxxxxxxxx Localhost:1012 MIT-MAGIC-COOKIE-1 bd988401cbf8xxxxxxxxxxxxxxxxxxxx The list of cookies in your ~/.Xauthority file can be displayed using xauth list: $ xauth list That file is read by X11 clients and the cookies available there are used to authenticate the connections. When you login through some kind of a display manager, a MIT-MAGIC-COOKIE-1 authentication cookie is created and written into your ~/.Xauthority file. X11 uses the Xauth protocol to authenticate connecting clients. It's not only gedit that is going to fail but actually all programs that use the X11 protocol to talk to the graphics server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |