我正在尝试使用bash脚本远程将firefox包安装到我的所有linux主机上。但是,当我执行脚本时,我会得到以下错误。如何在bash脚本中启用显示?
错误:
No protocol specified
Error: cannot open display: :0.0
No protocol specified
Error: cannot open display: :0.0
在linux中执行用于在EC2实例上安装oracle的命令时,我会收到以下错误。
任何一个人,请帮助我在this.all有价值的建议,将不胜感激。
$./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 9321 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1023 MB Passed
Checking monitor
我通过ssh连接到远程Linux服务器,并试图执行ImageMagick的display命令。我知道问题可能不在服务器端,因为当我从不同的机器连接时,我不会遇到相同的问题。我在本地机器上安装了XQuartz,并使用ssh标记-Y和-X连接(这两种方法都没有解决问题),我仍然收到以下错误。我的电脑是运行El的MacBook Pro。有什么想法吗?
display: unable to open X server `' @ error/display.c/DisplayImageCommand/426.
谢谢!
作为学习Unix/Linux的教室,我在Windows 10中使用微软的Ubuntu应用程序。
gedit somefile.txt
但我得到了以下信息:
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gedit:27829): Gtk-WARNING **: cannot open display: :0.0
下列任何一种解决办法都没有奏效:
运行oracle enterprise linux
Oracle安装程序一直告诉我没有设置DISPLAY变量。但是,回声显示会清晰地打印出":0.0“
作为root登录,我可以运行xclock来启动应用程序,但是当我"su oracle“然后运行xclock时,它拒绝了。
[oracle@devsebl ~] xclock
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
如何授予oracle用
我有一个docker图像,其中安装了一个医疗数据分析应用程序。这个应用程序在gui和控制台上都能工作。通常,在我的linux中,我从终端运行应用程序的命令是 ./dsi_studio --action=trk ... 而且它运行得相当顺利。如果您单击此应用程序,它将尝试打开GUI。当我试图在docker图像中使用它时,它在任何情况下都会尝试连接到显示器(即使我按照终端中显示的方式运行)。当然,由于我没有从docker中进行任何显示GUI的设置,我得到了以下错误,指出它找不到要连接的显示器。 qt.qpa.xcb: could not connect to display
qt.qpa.pl
我试图在Linux服务器上运行一段python代码,而我的代码涉及到运行Selenium。在我开始运行代码后不久,弹出了以下错误:
The browser appears to have exited before we could connect. The output was: Error: cannot open display:
我安装了firefox和selenium,但由于某些原因,错误不断出现
我该如何解决这个问题?
谢谢
我正在安装在Solaris 10的本地太阳机上的Oraccle11G。我遵循了oracle文档中提供的所有预req步骤,但毕竟,当我试图使用oracle用户运行安装程序时。安装程序检查预reqs并给出以下错误:
checking monitor: must be configured to display at 256 colors. couldnot execute autocheck for display colors using command /usr/openwin/bin/xdpyinfo. Check if dsiplay variables are set设
我正试图在centos 7桌面上安装HPjmeter控制台,以便监视我的web应用程序GC状态。我遵循了官方用户指南中提到的所有步骤,但在执行此命令行以启动控制台时:
/opt/hpjmeter/bin/hpjmeter
我收到这样的信息:
Please check that a display is available and the appropriate display variable is set
我将$DISPLAY变量的值更改为localhost:0.0,但仍然得到相同的消息。
有人能帮我把它修好吗。
谢谢
我试着用这个上下文制作一个键盘句柄:
当f1按下“开始”(按下并释放此键: the )和按下f2时,将状态设置为false以停止按下键( the ):
from pynput.keyboard import Key, Listener
STATUS = True
def on_release(key):
if key == Key.f1:
# Stop listener
STATUS = False
if key == key.f2:
STATUS = True
def main():
with Listener(
在我的本地中,我一直收到一个错误,如
java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
我尝试了以下所有选项
1)-Djava.awt.headless
2)安装xvbf。
3)出口DISPLAY=:0.0
我还给出了命令行
./katalon -runMode=console -projectPath="/home/jenktran/Automation/Katalon First Proj/Katal
我对Docker相当陌生(昨天了解到它,发现它很有趣),而且对它完全没有技巧,所以请尽量使您的回答尽可能友好。我运行了一个ubuntu映像,并试图在其中安装和运行wireshark (基于GUI的数据包捕获器),但是在运行时我得到了以下错误:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
dbus[2537]: The last reference on a connection was dropped without closing the connection. This
我已经在一个新的debian安装上安装了ettercap。
这是我正在犯的错误:
root@debian:/home/debian# sudo ettercap -G
ettercap 0.8.2 copyright 2001-2015 Ettercap Development Team
No protocol specified
GTK+ failed to initialize. Is X running?
在网上搜索,解决方案这里 (第二条评论)说要运行xhost local:root。然而,这给我带来了一个错误:
root@debian:/home/debian# xhost l
我正在尝试从here为ubuntu安装code::blocks的暗色主题。但是当我在terminal中执行命令sudo cb_share_config时,我得到了Error:Unable to initialize gtk, is DISPLAY set properly?。我非常痴迷于白色主题,迫切需要黑色主题。有人能帮帮忙吗。
我知道我搞砸了,我只是不知道什么,怎么搞的,什么时候的。我曾经能够运行gksudo (gui应用程序)或sudo (gui应用程序)。
然后我再也不能-我已经把整个互联网撕裂,寻找一个解决方案,这是我最后的希望,拜托,我如何解决这个问题?
$ sudo heimdall-frontend
heimdall-frontend: cannot connect to X server
数独诺德利乌斯给Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to in
$ gksudo nautilus
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(nautilus:6072): Gtk-WARNING **: cannot open display:
故障排除尝试:
使用gksu和sudo时出现相同的错误。
也尝试过export DISPLAY=:0.0。
最后,甚至尝试安装lightdm-gtk-gre
我已经在我的系统Kubuntu14.04中安装了grub-customizer。
当我试图启动它时,我得到以下错误,(请帮助).
santosh@santosh-pc:/usr/bin$ sudo ./grub-customizer
No protocol specified
** (grub-customizer:2992): WARNING **: Could not open X display
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
(grub-customizer:2992
您好,我运行了许多关于这个问题的参考教程,但没有一个解决了我的问题。当我安装笔记本电脑模式工具并尝试启动GUI时,出现了问题。
sudo apt-get install laptop-mode-tools
pkexec /usr/sbin/lmt-config-gui
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform
我试图将本地IP地址添加到xhost中,并得到以下错误:
dyld: Library not loaded: /opt/X11/lib/libXmuu.1.dylib
Referenced from: /usr/bin/xhost
Reason: no suitable image found. Did find:
/opt/X11/lib/libXmuu.1.dylib: code signature in (/opt/X11/lib/libXmuu.1.dylib) not valid for use in process using Library Validation
我刚安装了Ubuntu 17.10。一切看起来都很好,除了我不能使用Synaptic。我安装它(显然)没有问题,但当我点击它的图标,什么都没有发生。
从终端尝试,这是我得到的错误:
No protocol specified
Unable to init server: Could not connect: Connection refused
(synaptic:3572): Gtk-WARNING **: cannot open display:
知道这意味着什么吗?
提前感谢您的支持。