startkde出现$DISPLAY is not set or cannot connect to the X server

#startkde
$DISPLAY is not set or cannot connect to the X server

解决:

xinit /usr/bin/startkde --display :1 -- /usr/bin/Xorg :1

或者:

xinit /usr/bin/startkde --display :1

If you want to play with examples like this, you might want to use xinit
to start your sessions:
xinit /usr/bin/startkde --display :1 -- /usr/bin/Xorg :1
will just about always get you what you want. If your command, startkde
in this case, does not have a "--display" flag, you‘ll have to export
DISPLAY=:1 beforehand and you might even need to add "-ac" to the Xorg
command line to allow connections.

时间: 2024-08-24 06:12:58

startkde出现$DISPLAY is not set or cannot connect to the X server的相关文章

Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.

安装oracle数据时需要用到图形界面安装,当我们用root用户登录后切换到oracle用户时运行./runInstaller提示报错: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable. 这是因为没有赋予oracle运行图形界面的权限,这时只要在root下运行xhost + 然后回车即可解决问题.[[email protected] ~]# xhost +access con

CentOS8安装pycharm报错【Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. 】

在CentOS8 安装pycharm报出如下错误,原来是自己画蛇添足的用sudo执行pycharm.sh,没有按照Install说明里边的直接执行 ./pycharm.sh. 原因见这里:https://www.cnblogs.com/qingqing74647464/p/8685837.html OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will l

EBS运行快速安装的程序时,提示DISPLAY变量设置不对

EBS运行快速安装的程序时,系统提示如下: Rapid Install Wizard is validating your file system...... >> Wizard requires the DISPLAY variable to be set. >> Please set your DISPLAY variable and restart Rapid Install Wizard. 在主机进行以下设置后,尝试重新运行仍旧报错: $ export DISPLAY=IP

Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again。

错误如下: Ignoring required pre-requisite failures. Continuing... Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-01-29_03-14-51AM. Please wait ... DISPLAY not set. Please set the DISPLAY and try again. Depending on the Unix Shell

DISPLAY变量和xhost(原创)

DISPLAY 在Linux/Unix类操作系统上, DISPLAY用来设置将图形显示到何处. 直接登陆图形界面或者登陆命令行界面后使用startx启动图形, DISPLAY环境变量将自动设置为:0:0, 此时可以打开终端, 输出图形程序的名称(比如xclock)来启动程序, 图形将显示在本地窗口上, 在终端上输入printenv查看当前环境变量, 输出结果中有如下内容:DISPLAY=:0.0使用xdpyinfo可以查看到当前显示的更详细的信息.DISPLAY 环境变量格式如下hostname

ROS Could not connect to display localhost:17.0

问题 我是 Xshell 连接的 VirtualBox 的 Ubuntu16.04 版本是因为我在命令行窗口启动 GUI 界面导致的 QXcbConnection: Could not connect to display localhost:17.0 rqt: cannot connect to X server localhost:.0 解释 17.0 是 DISPLAY 变量的值关于DISPLAY 变量的解释,建议可以参考 Linux DISPLAY环境变量的妙用 文章格式有点乱,但戳中了

Debian上安装TightVNC Server

from:www.penlug.org/twiki/bin/view/Main/TightVNC Using VNC The tool vncserver allows you to run additional X servers on a single machine. These X servers don't display anywhere, but instead you need to connect to them using vncviewer. The additional

Ubuntu 下安装VNC server

尽管我们在大部分情况下用ssh登录Ubuntu服务器就好了,但是有时候我们的程序需要在图形界面下运行,这时我们就要用到vnc server这个软件了.在Ubuntu下安装vnc server很简单的,只要下面几步就可以了: 第一步,获取安装文件 sudo apt-get install vnc4server 第二步,修改VNC Password,不能太短 # vncpasswd Password: ****** Verify:***** 第三步,检查防火墙,这个就不详细说明了 第四步,启动VNC

如何查询MySql日志

如何查询MySql日志 分类: mysql2012-02-23 19:14 26756人阅读 评论(2) 收藏 举报 mysqlcommandprintingserversocketoutput 今天美国老板发来一封email,一句What happen to ...? 其他任何线索没有,我的给出答案,一一排查,看能否找到问题缘由或是恢复数据,更新问题?程序问题?结果都是没有头绪,最后想了下mysql的日志看能否看看,以前没看过mysql的日志,查查资料,最终皇天不负有心人,搞定了,现在总结下: