Error No Protocol Specified
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack no protocol specified xterm xt error can't open display Overflow the company Business Learn more about hiring developers or posting ads with us Unix xlib no protocol specified error can't open display & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for
No Protocol Specified Cannot Open Display
users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and
Xlib No Protocol Specified Xming
rise to the top Error `No protocol specified` when running from remote machine via ssh up vote 3 down vote favorite 4 I have a script, simply to run my Graphical (GUI) Application, as below. #cat gui.sh #!/bin/bash ./gui -display 127.0.0.1:0.0 When I run it from local machine (./gui.sh) it runs perfectly fine. But when I am trying to run it from remote machine via ssh, I got following error. [root@localhost]# ssh -f no protocol specified unable to open display 192.168.3.77 "cd /root/Desktop/GUI/ && "./gui.sh"" No protocol specified gdm: cannot connect to X server 192.168.3.77:0.0 [root@localhost]# I don't know, which protocol it is asking or am I missing anything? I tried directly by starting the application, without script [ssh -f 192.168.3.77 "cd /root/Desktop/GUI/ && "./gui""], but the result is same. I have tried various combinations like ssh -Y, ssh -fY and more but the result is same! Secondly for my application, there is a must condition that, we have to first go into the directory where the program is located. Any Solutions? ssh x11 share|improve this question edited Aug 7 '13 at 22:44 Gilles 371k696751126 asked Aug 7 '13 at 6:35 Tejas 1,59021432 add a comment| 5 Answers 5 active oldest votes up vote 3 down vote The meaning of the option -display 127.0.0.1:0.0 depends on that gui program, but it's highly likely that it means “display on the X display 127.0.0.1:0.0”. This is the first local X display, accessed over TCP. This is almost certainly wrong for two reasons. First, the local X display should be :0, not 127.0.0.1:0, because including an IP address causes the traffic to go through TCP instead of local access. Going through TCP may not work depending on whether the X server accepts TCP connections. Even if it does, you lose the optimizatio
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix
No Protocol Specified Oracle Install
& Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a no protocol specified failed to open the x11 display question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: no protocol specified xhost unable to open display Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to resolve 'No protocol specified' for su user up vote 2 down vote favorite I am trying to user an alternate user (non-admin) http://unix.stackexchange.com/questions/85782/error-no-protocol-specified-when-running-from-remote-machine-via-ssh to execute graphical software on my system. This alternate user has been named and given a UID and GID to match a remote system user of the same name. The UID is 500 so I believe that makes the user a 'non-login' user. Starting from Ubuntu logged into my main account, I open a terminal and su to the alternate user. I then attempt to execute the command to start the application and receive 'No protocol specified'. Is this because of the UID<1000, because of the su or http://unix.stackexchange.com/questions/209746/how-to-resolve-no-protocol-specified-for-su-user because of the non-admin of the user? How can I get this user to execute the application with a GUI? ubuntu gui not-root-user share|improve this question asked Jun 15 '15 at 9:11 J Collins 203312 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted The problem is not occurring because of the UID of the user. 500 is just fine as a UID, and that UID doesn't make it a 'non-login' user except in the eyes of the default settings of some few display managers. The error message No protocol specified sounds like an application-specific error message, and an unhelpful one at that, but I am going to guess that the error is that the application is unable to contact your X11 display because it does not have permission to do so because it's running as a different user. Applications need a "magic cookie" (secret token) in order to talk to the X11 server so that other processes on the system running under other users cannot intrude on your display, create windows, and snoop your keystrokes. The other system user does not have access to this magic cookie because the permissions are set so that it is only accessible to the user who started the desktop environment (which is as it should be). Try this, running as your original user, to copy the X11 cookie to the other account: su -
Du siehst YouTube auf Deutsch. Du kannst diese Einstellung unten ändern. Learn more You're viewing YouTube in German. You can change this preference below. Schließen Ja, ich möchte sie behalten Rückgängig machen Schließen Dieses Video https://www.youtube.com/watch?v=ue7D6K9cFys ist nicht verfügbar. WiedergabelisteWarteschlangeWiedergabelisteWarteschlange Alle entfernenBeenden Wird geladen... Wiedergabeliste Warteschlange __count__/__total__ No Protocol Specified Error Solved | Step by Step Solution Tech Paata AbonnierenAbonniertAbo beenden1818 Wird geladen... Wird geladen... Wird verarbeitet... http://www.devarticles.in/linux/getting-a-way-around-the-no-protocol-specified-cannot-open-display0-0-message/ Hinzufügen Möchtest du dieses Video später noch einmal ansehen? Wenn du bei YouTube angemeldet bist, kannst du dieses Video zu einer Playlist hinzufügen. Anmelden Teilen Mehr Melden Möchtest du dieses no protocol Video melden? Melde dich an, um unangemessene Inhalte zu melden. Anmelden Transkript Statistik 3.600 Aufrufe 13 Dieses Video gefällt dir? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 14 0 Dieses Video gefällt dir nicht? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 1 Wird geladen... Wird geladen... Transkript Das interaktive Transkript konnte nicht no protocol specified geladen werden. Wird geladen... Wird geladen... Die Bewertungsfunktion ist nach Ausleihen des Videos verfügbar. Diese Funktion ist zurzeit nicht verfügbar. Bitte versuche es später erneut. Veröffentlicht am 19.11.2014No protocol specified error redhat / fedora Oracle dbca No protocol specified error Xlib No protocol specified error x11 no protocol specified Kategorie Bildung Lizenz Standard-YouTube-Lizenz Mehr anzeigen Weniger anzeigen Wird geladen... Autoplay Wenn Autoplay aktiviert ist, wird die Wiedergabe automatisch mit einem der aktuellen Videovorschläge fortgesetzt. Nächstes Video Kali Linux 2.0 - Install Tor Browser - Dauer: 2:37 Kali Linux Tutorials 6.501 Aufrufe 2:37 Create Oracle 11g Database using DBCA - Dauer: 10:52 Abbasi Asif 24.554 Aufrufe 10:52 Oracle Database 12c: How to create a database using DBCA? - Dauer: 3:03 aclnz 5.741 Aufrufe 3:03 how to solve ORA-12560: TNS:protocol adapter error - Dauer: 2:27 Deepak Soni 110.290 Aufrufe 2:27 SQL tutorial 36: how to create database using database configuration assistant DBCA - Dauer: 12:11 Manish Sharma 29.044 Aufrufe 12:11 How to Fix IO Error in sql oracle - Dauer: 2:34 Adam Tech 26.380 Aufrufe 2:34 Oracle Database Tutorial 70: IO ERRO
display:0.0" message Getting a way around the "No protocol specified, …cannot open display:0.0" message October 30, 2011Linux/Unixcannot open display: :0.0, Linux Tips & Tricks, No protocol specified, xauth cookieArvind Kumar After doing sudo su - (to give myself root privileges) when I tried editing a file using gedit info.txt it would show me the following error message: root@arvind-Inspiron-1440:~# gedit info.txt No protocol specified (gedit:4700): Gtk-WARNING **: cannot open display: :0.0 After doing some search I found the following reason: X authentication is based on cookies -- secret little pieces of random data that only you and the X server know... So, you need to let the other user in on what your cookie is. One way to do this is as follows:
Before you issue the su or sudo (but after having ssh'ed into the remote system if you are using ssh), request the cookie for the current DISPLAY that's connecting to your X server: As suggested I followed the steps given below and i was able to find a way to get rid of xauth error messages. First of all, to get the current COOKIE information, I do xauth list $DISPLAY: arvind@arvind-Inspiron-1440:~$ xauth list $DISPLAY Which gives me the following value: arvind-Inspiron-1440/unix:0 MIT-MAGIC-COOKIE-1 bfa2e2b478a6ef3c362301170214c04e Now, I promote myself to root by doing sudo su - (and entering the password). It results in switching the current user. Here's the command line with result to give myself the root privileges: arvind@arvind-Inspiron-1440:~$ sudo su -
[sudo] password for arvind:
root@arvind-Inspiron-1440:~# Next, I added xauth add to the value returned by xauth list $DISPLAY (given above) and ran it in the console as: root@arvind-Inspiron-1440:~# xauth add arvind-Inspiron-1440/unix:0 MIT-MAGIC-COOKIE-1 bfa2e2b478a6ef3c362301170214c04e Now I can edit any file within my system using my gedit or jedit editor in console. I guest there must be a permanent solution to it but until I get one it works just fine for me. You may also like: How to increase the number of Courier-IMAP connections on Centos,… jEdit showing Connect to FTP Server window on start error… Creating new virtual host while using Xampp in Ubuntu (Linux) Broken jEdit FTP plugin fix a