当前位置:网站首页>vncserver: Failed command ‘/etc/X11/Xvnc-session‘: 256!
vncserver: Failed command ‘/etc/X11/Xvnc-session‘: 256!
2022-06-30 20:20:00 【蓝羽飞鸟】
安装vncserver启动时出现如下报错:
Starting applications specified in /etc/X11/Xvnc-session
Log file is /root/.vnc/XXXX:1.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.
vncserver: Failed command '/etc/X11/Xvnc-session': 256!
=================== tail -15 /root/.vnc/XXXX:1.log ===================
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12008000, The X.Org Foundation
Thu Jun 30 09:08:25 2022
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5901
vncext: created VNC server for screen 0
X connection to :1 broken (explicit kill or server shutdown).
Thu Jun 30 09:08:26 2022
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
Killing Xtigervnc process ID 2451... which seems to be deadlocked. Using SIGKILL!
==========================================================================================
Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
然后根据提示运行了如下命令:
tigervncserver -xstartup /usr/bin/xterm
又会有如下报错:tigervncserver: Can't start '/usr/bin/xterm': No such file or directory!
然后安装xterm
sudo apt install xterm
再运行tigervncserver -xstartup /usr/bin/xterm还是会报错,但是这次错又不一样:
X connection to :2 broken (explicit kill or server shutdown).
Thu Jun 30 09:19:55 2022
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
Killing Xtigervnc process ID 5929... which seems to be deadlocked. Using SIGKILL!
正百思不得其解时,看到了报错信息中其实有如下提示:
Starting applications specified in /etc/X11/Xvnc-session
Log file is /root/.vnc/XXXX:2.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :2 to connect to the VNC server.
运行:
xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :2
连接成功
边栏推荐
猜你喜欢

为什么vscode用久了电脑速度变慢?

The Commission is so high that everyone can participate in the new programmer's partner plan

To eliminate bugs, developers must know several bug exploration and testing artifacts.

Amazon restricts LGBTQ related search and product sales in the United Arab Emirates

Great God detailed open source Buff gain Introduction 丨 Live

B_QuRT_User_Guide(32)

Maya house modeling

RP原型资源分享-购物类App

Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)

B_QuRT_User_Guide(33)
随机推荐
第299场
B_QuRT_User_Guide(33)
Lumiprobe dye hydrazide - BDP FL hydrazide solution
Scene 299
Wechat applet development practice cloud music
maya房子建模
MySQL简介、详细安装步骤及使用 | 黑马程序员
Black apple server system installation tutorial, black apple installation tutorial, teach you how to install black apple in detail [easy to understand]
unittest自动测试多个用例时,logging模块重复打印解决
Go 语言标识符、包名规范
大神詳解開源 BUFF 增益攻略丨直播
What are database OLAP and OLTP? Same and different? Applicable scenarios
基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享
Lvalue reference and lvalue reference
Peking University ACM problems 1004:financial management
Peking University ACM problems 1002:487-3279
Basic concepts of tree
STL的基本组成部分
Maya House Modeling
Study on PEGylation of lumiprobe and PEG linker - iodine-peg3-acid