Ubuntu gedit報錯Gtk-WARNING **: cannot open display: :0.0 解決辦法
當使用su 到另外一個使用者執行某個程式,而這個程式又要有圖形顯示的時候,就有可能有下面提示:
No protocol specified
(gedit:2144): Gtk-WARNING **: cannot open display: :0
解決辦法:這是因為Xserver預設情況下不允許別的使用者的圖形程式的圖形顯示在當前螢幕上. 如果需要別的使用者的圖形顯示在當前螢幕上, 則應以當前登陸的使用者, 也就是切換身份前的使用者執行如下命令:
xhost+
通過執行這條命令,就授予了其它使用者訪問當前螢幕的許可權,於是就可以以另外的使用者執行需要執行的程式了。
相關推薦
Ubuntu gedit報錯Gtk-WARNING **: cannot open display: :0.0 解決辦法
當使用su 到另外一個使用者執行某個程式,而這個程式又要有圖形顯示的時候,就有可能有下面提示: No protocol specified (gedit:2144): Gtk-WARNING **: cannot open display: :0 解決辦法:這是因為Xserver預設情況
Gtk-WARNING **: cannot open display問題的解決
1. SDL安裝 2. ssh連線配置,x11forwarding 與VNC方式不同,qemu-kvm利用圖形介面方式開啟虛擬機器,會以彈出視窗的方式與虛擬機器互動。某些情況下,工作環境是通過各種term程式利用ssh登入到伺服器,這時執行qemu的啟動程式,通常會
使用gedit出現No protocol specified (gedit:14333): Gtk-WARNING **: cannot open display: :0.0
2012年11月06日 15:40:06 wche1990 閱讀數:17159更多 個人分類: 學習總結 linux 切換到root許可權,在終端下使用gedit時出現下面的錯誤: No protocol specified (gedit:14333): Gtk-WA
輕鬆解決遠端連結的“Gtk-WARNING **: cannot open display;”或“Cannot connect to display;”問題
遠端連線伺服器或者工作站的時候,通常不能開啟一個GUI圖形使用者,而且在開啟過程中會出現諸如:(gedit:46927): Gtk-WARNING **: cannot open display:或者:指令名:Cannot connect to display的提示。那麼如何
ogg啟動報錯libnnz11.so: cannot open shared object file
version pat director ggsci 11.2.1 aries targe 64bit ews 當ogg軟件解壓,並給予正確的權限後,在啟動ogg時會遇到如下報錯: [[email protected]/* */ ogg]# ./ggsci./g
php5.6,Ajax報錯,Warning: Cannot modify header information - headers already sent in Unknown on line 0
ont line span use -s nbsp ati bsp data php5.6ajax報錯 Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be r
前臺報錯:Uncaught TypeError: Cannot read property '0' of null
錯誤現象: var div1=mycss[0].style.backgroundColor; //這一行提示360和chrome提示:Uncaught TypeError: Cannot read property '0'&nb
Mac下安裝第三方模塊報錯:‘sqlfront.h‘ file not found的解決辦法
for found ins 解決辦法 第三方模塊 mssql erro ref div 1.軟件環境: mac環境:10.11.6(15G31) python: 3.6 2.問題: sudo pip install pymssql 後出現下面問題:
MySQL報錯:Ignoring query to other database的解決辦法
MySQL query 原因是在登陸數據庫的時候,缺少了-u參數 錯誤截圖:修正截圖:MySQL報錯:Ignoring query to other database的解決辦法
node 報錯 throw er; // Unhandled 'error' event 解決辦法
node 報錯 Starting child process with 'node web.js' events.js:183 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE :::8000 a
nacicat for mysql/mysql 設定外來鍵報錯1005:Can't create table (errno: 150)解決辦法
nacicat for mysql/mysql 設定外來鍵報錯1005:Can’t create table (errno: 150) 使用nacicat for mysql工具或者mysql 命令列中
PyCharm報錯:“No R interpreter defined: Many R……”——解決辦法
報錯截圖:參考:https://stackoverflow.com/questions/19645527/trying-to-get-pycharm-to-work-keep-getting-no-python-interpreter-selected
Warning: Cannot modify header information的解決辦法
昨天將本站的wordpress升級到最新版本,今天早上,經過兩位朋友的提醒,才發現用非chrome瀏覽器開啟部落格,頭部會顯示有錯誤,錯誤內容為: Warning: Cannot modify header information – headers already sent by (output
eclipse pom.xml 報錯org.apache.maven.plugin.war.WarMojo的解決辦法
如題,maven專案eclipse提示pom.ml有錯,提示資訊就是org.apache.maven.plugin.war.WarMojo。 然後執行 maven install 出現如下錯誤提示[INFO] --- maven-war-plugin:2.2:war (de
R語言:“cannot open the connection”的解決辦法
在R語言的實踐中,讀入資料檔案幾乎是必須的操作,但沒有設定好工作空間的位置,將會提示如下錯誤: Error in file(file, "rt") : cannot open the connection In addition: Warning mess
啟動eclipse報錯 Could not create the Java Virtual Machine 解決辦法
今天下載了eclipse neon,但是啟動的時候報瞭如下的錯誤: 網上查詢了下,說這是系統為eclipse分配的記憶體不足,需要修改eclipse.ini檔案。 eclipse.ini是eclipse 記憶體分配之類的配置檔案,對java虛擬機器的記憶體管理
git報錯: git: not authorized :未經授權解決辦法
今天拉專案的時候很順利,但是準備pull下來最新的專案的時候卻一直提示 not authorized,一直說我未經授權,剛開始不知道怎麼回事,後來看了一會,解決了,將解決的辦法記錄下來,以便以後遇到了更快的定位解決辦法。我用的是Hbuilder,當然這個是無關緊要的,一個專案
Git clone 報錯:fatal: protocol 'https' is not supported解決辦法
Cloning into '2_mqtt_test_onenet'... fatal: protocol 'https' is not supported 解決辦法: 方法1:不用https,換用ssh去clone(如果有ssh選項) 如:git clone
Apache啟動報錯:could not bind to address [::]:443 解決辦法
安裝Apache伺服器的時候,報如下錯誤: Installing the 'apache' service The 'apache' service is successfully installed. Testing httpd.conf.... Errors repo
SVN提交報錯"Commit blocked by pre-commit hook"的解決辦法
參考: 【問題】 Linux命令列下用 svn commit -m "XXX" 的方式提交程式碼改動,失敗。錯誤提示如下: Transmitting file data .svn: Commit failed (details follow): svn: Comm