【X11vnc】Ubuntu18.04 x11vnc启动失败,报错error opening logfile: /var/log/x11vnc.log

【X11vnc】Ubuntu18.04 x11vnc启动失败,报错error opening logfile: /var/log/x11vnc.logUbuntu18.04x11vnc启动失败,报错erroropeninglogfile:/var/log/x11vnc.log前提概要报错解决方案前提概要之前在Ubuntu18.04安装了x11vnc,最近通过vncview连不上了,使用ssh登录后,根据journalctl-ux11vnc发现报错创建/var/log/x11vnc.log后查看x11vnc.log报错root@VM-16-8-ubuntu:/home/ubuntu#cat/var/log/x11vnc.l

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全家桶1年46,售后保障稳定

Ubuntu18.04 x11vnc启动失败,报错error opening logfile: /var/log/x11vnc.log

前提概要

之前在Ubuntu18.04 安装了x11vnc,最近通过vnc view连不上了,使用ssh登录后,根据journalctl -u x11vnc 发现报错
在这里插入图片描述
创建/var/log/x11vnc.log后查看x11vnc.log

报错

root@VM-16-8-ubuntu:/home/ubuntu# cat /var/log/x11vnc.log | head -n 1000
14/10/2021 10:30:02 passing arg to libvncserver: -rfbauth
14/10/2021 10:30:02 passing arg to libvncserver: /etc/x11vnc.pass
14/10/2021 10:30:02 passing arg to libvncserver: -rfbport
14/10/2021 10:30:02 passing arg to libvncserver: 5900
14/10/2021 10:30:02 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 96503
xauth:  unable to generate an authority file name
14/10/2021 10:30:02 -auth guess: using 'XAUTHORITY=/var/run/lightdm/root/:0' for disp='unset'
14/10/2021 10:30:02 XOpenDisplay("") failed.
14/10/2021 10:30:02 Trying again with XAUTHLOCALHOSTNAME=localhost ...
14/10/2021 10:30:02 
14/10/2021 10:30:02 *** XOpenDisplay failed. No -display or DISPLAY.
14/10/2021 10:30:02 *** Trying ":0" in 4 seconds.  Press Ctrl-C to abort.
14/10/2021 10:30:02 *** 1 2 3 4 
14/10/2021 10:30:06 *** XOpenDisplay of ":0" successful.
14/10/2021 10:30:06 
14/10/2021 10:30:06 Using X display :0
14/10/2021 10:30:06 rootwin: 0x2a0 reswin: 0xe00001 dpy: 0xc6786c40
14/10/2021 10:30:06 
14/10/2021 10:30:06 ------------------ USEFUL INFORMATION ------------------
14/10/2021 10:30:06 
14/10/2021 10:30:06 Wireframing: -wireframe mode is in effect for window moves.
14/10/2021 10:30:06   If this yields undesired behavior (poor response, painting
14/10/2021 10:30:06   errors, etc) it may be disabled:
14/10/2021 10:30:06    - use '-nowf' to disable wireframing completely.
14/10/2021 10:30:06    - use '-nowcr' to disable the Copy Rectangle after the
14/10/2021 10:30:06      moved window is released in the new position.
14/10/2021 10:30:06   Also see the -help entry for tuning parameters.
14/10/2021 10:30:06   You can press 3 Alt_L's (Left "Alt" key) in a row to 14/10/2021 10:30:06 repaint the screen, also see the -fixscreen option for 14/10/2021 10:30:06 periodic repaints. 14/10/2021 10:30:06 14/10/2021 10:30:06 XFIXES available on display, resetting cursor mode 14/10/2021 10:30:06 to: '-cursor most'. 14/10/2021 10:30:06 to disable this behavior use: '-cursor arrow' 14/10/2021 10:30:06 or '-noxfixes'. 14/10/2021 10:30:06 using XFIXES for cursor drawing. 14/10/2021 10:30:06 GrabServer control via XTEST. 14/10/2021 10:30:06 14/10/2021 10:30:06 Scroll Detection: -scrollcopyrect mode is in effect to 14/10/2021 10:30:06 use RECORD extension to try to detect scrolling windows 14/10/2021 10:30:06 (induced by either user keystroke or mouse input). 14/10/2021 10:30:06 If this yields undesired behavior (poor response, painting 14/10/2021 10:30:06 errors, etc) it may be disabled via: '-noscr' 14/10/2021 10:30:06 Also see the -help entry for tuning parameters. 14/10/2021 10:30:06 You can press 3 Alt_L's (Left "Alt" key) in a row to 
14/10/2021 10:30:06   repaint the screen, also see the -fixscreen option for
14/10/2021 10:30:06   periodic repaints.
14/10/2021 10:30:06 
14/10/2021 10:30:06 XKEYBOARD: number of keysyms per keycode 7 is greater
14/10/2021 10:30:06   than 4 and 51 keysyms are mapped above 4.
14/10/2021 10:30:06   Automatically switching to -xkb mode.
14/10/2021 10:30:06   If this makes the key mapping worse you can
14/10/2021 10:30:06   disable it with the "-noxkb" option.
14/10/2021 10:30:06   Also, remember "-remap DEAD" for accenting characters.
14/10/2021 10:30:06 
14/10/2021 10:30:06 X FBPM extension not supported.
14/10/2021 10:30:06 X display is capable of DPMS.
14/10/2021 10:30:06 --------------------------------------------------------
14/10/2021 10:30:06 
14/10/2021 10:30:06 Default visual ID: 0x21
14/10/2021 10:30:06 Read initial data from X display into framebuffer.
14/10/2021 10:30:06 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
14/10/2021 10:30:06 
14/10/2021 10:30:06 X display :0 is 32bpp depth=24 true color
14/10/2021 10:30:06 
14/10/2021 10:30:06 Listening for VNC connections on TCP port 5900
14/10/2021 10:30:06 Listening for VNC connections on TCP6 port 5900
14/10/2021 10:30:06 listen6: bind: Address already in use
14/10/2021 10:30:06 Not listening on IPv6 interface.
14/10/2021 10:30:06 
14/10/2021 10:30:06 Xinerama is present and active (e.g. multi-head).
14/10/2021 10:30:06 Xinerama: number of sub-screens: 1
14/10/2021 10:30:06 Xinerama: no blackouts needed (only one sub-screen)
14/10/2021 10:30:06 
14/10/2021 10:30:06 fb read rate: 927 MB/sec
14/10/2021 10:30:06 fast read: reset -wait  ms to: 10
14/10/2021 10:30:06 fast read: reset -defer ms to: 10
14/10/2021 10:30:06 The X server says there are 10 mouse buttons.
14/10/2021 10:30:06 screen setup finished.
14/10/2021 10:30:06 

The VNC desktop is:      VM-16-8-ubuntu:0

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

Jetbrains全家桶1年46,售后保障稳定

解决方案

  1. 根据提示的报错执行x11vnc -ncache 10 后可以正常监听5900。此时通过vnc viewer可以正常连接,但是无法通过原先的密码访问。
  2. 查看 /lib/systemd/system/x11vnc.service 中读取密码的路径。
  3. 重置密码sudo x11vnc -storepasswd /etc/x11vnc.pass
  4. 重启x11vncsystemctl restart x11vnc 后可以使用新密码登录成功
    `
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/234229.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Hadoop集群搭建,14张过程截图超详细教程

    Hadoop集群搭建,14张过程截图超详细教程作者 大数据小禅 文章简介 本篇文章主要讲解 Hadoop 集群的搭建 为了方便大家理解与操作 关键的步骤博主都进行了截图 减少小伙伴的出错概率 文章源码获取 本文的搭建 PDF 相关安装包 小伙伴们可以关注文章底部的公众号 点击 联系我 备注 Hadoop 搭建获取哦 欢迎小伙伴们点赞 收藏 留言 Hadoop 集群搭建过程 1 Hadoop 简介以及集群规划 2 基础环境准备 3 关闭防火墙 4 配置 IP 地址映射 5 添加 Hadoop 用

    2025年6月1日
    0
  • SMTP服务器地址_imap服务器怎么设置

    SMTP服务器地址_imap服务器怎么设置认识SMTP服务器首先要知道SMTP,SMTP是“SimpleMailTransferProtocol”的缩写,即简单电子邮件传输协议,而SMTP服务器就是遵循SMTP协议发送电子邮件的服务器,用来发送或中转用户发出的电子邮件。SMTP协议是一个相对简单、高效的文本协议,使用25端口,属于TCP/IP协议族,可以帮助每台SMTP服务器在发送或中转电子邮件时找到下一个目的地,要为一个给定的域名决定…

    2022年10月3日
    0
  • __builtin_offsetof()[通俗易懂]

    __builtin_offsetof()[通俗易懂]————-linuxcompiler-gcc4.h————–#define__compiler_offsetof(a,b)__builtin_offsetof(a,b)分析准备:__compiler_offsetof(),为gcc编译器中的编译方面的参数,查阅gcc方面的文档:—>gcc.pdf.Downloadfromwww.gn

    2022年8月22日
    9
  • mysql前缀索引语句_mysql 前缀索引

    mysql前缀索引语句_mysql 前缀索引联合索引概念联合索引又叫复合索引,即一个覆盖表中两列或者以上的索引,例如:index_name(columna,columnb)1创建方式执行altertable语句时创建altertabletable_nameaddindexindex_name(column_list)1index_name是创建的联合索引的名字,可以没有,没有的话系统会根据该索引包含的第一列来赋名称;tabl…

    2022年5月10日
    44
  • 黑盒测试用例设计方法详解

    黑盒测试用例设计方法详解黑盒测试用例设计方法包括等价类划分法、边界值分析法、错误推测法、因果图法、判定表驱动法、正交试验设计法、功能图法、场景图法等。(一)等价类划分法定义:等价类划分法是把所有可能输入的数据,即程序的输入域划分策划国内若干部分(子集),然后从每一个子集中选取少数具有代表性的数据作为测试用例。方法是一种重要的、常用的黑盒测试用例设计方法。等价类是指某个输入域的子集合。在该子集合中,各个输入数据…

    2022年6月6日
    26
  • h5播放rtsp流_h5页面嵌入微信公众号

    h5播放rtsp流_h5页面嵌入微信公众号项目需求最近遇到一个新需求,将rtsp视频流接入h5页面中,rtsp是无法直接在h5页面上显示的,所以得通过一些手段将视频转成可以在h5上显示的格式;博主尝试过用nginx+ffmpeg转流,也尝试过用bilibili开源的flv.js转流;但最终效果都不太好,延迟高,卡顿时间长;后面发现一个神器VLC客户端,实时播放,完全不卡顿。前期准备VLC下载链接根据上方链接下载VLC客户端,根据自己的操作系统下载安装,博主使用的是windows10系统实际开发1.确保rtsp视频流可用,海康威视IP

    2022年8月31日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号