鲁班猫vnc与error

5. 远程桌面

本章主要讲解如何使用远程桌面连接LubanCat
5.1. VNC

VNC(Virtual Network Console)是虚拟网络控制台的缩写。 它是一款优秀的远程控制工具软件,由著名的AT&T的欧洲研究实验室开发。
5.1.1. 配置鲁班猫VNC服务

VNC分为客户端和服务端,我们首先进行鲁班猫上服务端的配置。
5.1.1.1. 安装VNC服务

sudo apt install x11vnc

5.1.1.2. 创建连接密码

x11vnc -storepasswd

使用cat用户创建VNC连接密码,密码默认保存在/home/cat/.vnc/passwd文件中
5.1.1.3. 进行连接测试

export DISPLAY=:0
x11vnc -auth guess -once -loop -noxdamage -repeat -rfbauth /home/cat/.vnc/passwd -rfbport 5900 -shared

手动开启VNC服务,设置连接端口为5900,如果端口被占用可以使用其他端口。

开启VNC服务以后,我们使用MobeXterm的VNC连接功能进行测试
5.1.1.4. 设置VNC服务开机自启动

sudo vim /etc/systemd/system/x11vnc.service

新建文件,创建一个x11vnc.service的服务,在文件中输入以下内容

[Unit]
Description=x11vnc (Remote access)
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -display :0 -rfbauth /home/cat/.vnc/passwd -rfbport 5900 -forever -loop -noxdamage -repeat -shared -capslock -nomodtweak
ExecStop=/bin/kill -TERM $MAINPID
ExecReload=/bin/kill -HUP $MAINPID
KillMode=control-group
Restart=on-failure

[Install]
WantedBy=graphical.target

文件创建成功以后,使用以下命令重新读取系统服务配置,将x11vnc.service加入系统服务并开启

sudo systemctl daemon-reload
sudo systemctl enable x11vnc
sudo systemctl start x11vnc


vncserver -geometry 1366x768 -alwaysshared -depth 24 -dpi 96 :1 -localhost no

错误:连不上

12/04/2024 16:18:56 -usepw: found /home/cat/.vnc/passwd
12/04/2024 16:18:56 x11vnc version: 0.9.16 lastmod: 2019-01-05  pid: 3202
12/04/2024 16:18:56 Using X display :0.0
12/04/2024 16:18:56 rootwin: 0x53b reswin: 0x4800001 dpy: 0x8e7a29a0
12/04/2024 16:18:56
12/04/2024 16:18:56 ------------------ USEFUL INFORMATION ------------------
12/04/2024 16:18:56 X DAMAGE available on display, using it for polling hints.
12/04/2024 16:18:56   To disable this behavior use: '-noxdamage'
12/04/2024 16:18:56
12/04/2024 16:18:56   Most compositing window managers like 'compiz' or 'beryl'
12/04/2024 16:18:56   cause X DAMAGE to fail, and so you may not see any screen
12/04/2024 16:18:56   updates via VNC.  Either disable 'compiz' (recommended) or
12/04/2024 16:18:56   supply the x11vnc '-noxdamage' command line option.
12/04/2024 16:18:56
12/04/2024 16:18:56 Wireframing: -wireframe mode is in effect for window moves.
12/04/2024 16:18:56   If this yields undesired behavior (poor response, painting
12/04/2024 16:18:56   errors, etc) it may be disabled:
12/04/2024 16:18:56    - use '-nowf' to disable wireframing completely.
12/04/2024 16:18:56    - use '-nowcr' to disable the Copy Rectangle after the
12/04/2024 16:18:56      moved window is released in the new position.
12/04/2024 16:18:56   Also see the -help entry for tuning parameters.
12/04/2024 16:18:56   You can press 3 Alt_L's (Left "Alt" key) in a row to
12/04/2024 16:18:56   repaint the screen, also see the -fixscreen option for
12/04/2024 16:18:56   periodic repaints.
12/04/2024 16:18:56
12/04/2024 16:18:56 XFIXES available on display, resetting cursor mode
12/04/2024 16:18:56   to: '-cursor most'.
12/04/2024 16:18:56   to disable this behavior use: '-cursor arrow'
12/04/2024 16:18:56   or '-noxfixes'.
12/04/2024 16:18:56 using XFIXES for cursor drawing.
12/04/2024 16:18:56 GrabServer control via XTEST.
12/04/2024 16:18:57
12/04/2024 16:18:57 Scroll Detection: -scrollcopyrect mode is in effect to
12/04/2024 16:18:57   use RECORD extension to try to detect scrolling windows
12/04/2024 16:18:57   (induced by either user keystroke or mouse input).
12/04/2024 16:18:57   If this yields undesired behavior (poor response, painting
12/04/2024 16:18:57   errors, etc) it may be disabled via: '-noscr'
12/04/2024 16:18:57   Also see the -help entry for tuning parameters.
12/04/2024 16:18:57   You can press 3 Alt_L's (Left "Alt" key) in a row to
12/04/2024 16:18:57   repaint the screen, also see the -fixscreen option for
12/04/2024 16:18:57   periodic repaints.
12/04/2024 16:18:57
12/04/2024 16:18:57 XKEYBOARD: number of keysyms per keycode 7 is greater
12/04/2024 16:18:57   than 4 and 51 keysyms are mapped above 4.
12/04/2024 16:18:57   Automatically switching to -xkb mode.
12/04/2024 16:18:57   If this makes the key mapping worse you can
12/04/2024 16:18:57   disable it with the "-noxkb" option.
12/04/2024 16:18:57   Also, remember "-remap DEAD" for accenting characters.
12/04/2024 16:18:57
12/04/2024 16:18:57 X FBPM extension not supported.
12/04/2024 16:18:57 X display is capable of DPMS.
12/04/2024 16:18:57 --------------------------------------------------------
12/04/2024 16:18:57
12/04/2024 16:18:57 Default visual ID: 0x21
12/04/2024 16:18:57 Read initial data from X display into framebuffer.
12/04/2024 16:18:57 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/7680
12/04/2024 16:18:57
12/04/2024 16:18:57 X display :0.0 is 32bpp depth=24 true color
12/04/2024 16:18:57
12/04/2024 16:18:57 Autoprobing TCP port
12/04/2024 16:18:57 Autoprobing selected TCP port 5900
12/04/2024 16:18:57 Autoprobing TCP6 port
12/04/2024 16:18:57 Autoprobing selected TCP6 port 5900
12/04/2024 16:18:57 listen6: bind: Address already in use
12/04/2024 16:18:57 Not listening on IPv6 interface.
12/04/2024 16:18:57
12/04/2024 16:18:57 Xinerama is present and active (e.g. multi-head).
12/04/2024 16:18:57 Xinerama: number of sub-screens: 1
12/04/2024 16:18:57 Xinerama: no blackouts needed (only one sub-screen)
12/04/2024 16:18:57
12/04/2024 16:18:57 fb read rate: 90 MB/sec
12/04/2024 16:18:57 fast read: reset -wait  ms to: 10
12/04/2024 16:18:57 fast read: reset -defer ms to: 10
12/04/2024 16:18:57 The X server says there are 10 mouse buttons.
12/04/2024 16:18:57 screen setup finished.
12/04/2024 16:18:57

The VNC desktop is:      lubancat:0
PORT=5900

******************************************************************************
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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/593245.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

数据分析从入门到精通 1.numpy 剑客修炼

会在某一瞬间突然明白,有些牢笼是自己给自己的 —— 24.5.5 一、数据分析秘笈介绍 1.什么是数据分析 是把隐藏在一些看似杂乱无章的数据背后的信息提炼出来,总结出所研究对象的内在规律。使得数据的价值最大化 案例: 分析用户的消…

Kotlin: Expecting a ‘>‘

数组值为任意类型&#xff0c;声明报错: Kotlin: Expecting a > var anyArr1: Array<Any?> arrayOf("a", "b", "c", true, 34)原因是&#xff1a; // var anyArr1: Array<Any?> arrayOf("a", "b", "c…

概念解析 | 威胁建模与DREAD评估:构建安全的系统防线

注1:本文系"概念解析"系列之一,致力于简洁清晰地解释、辨析复杂而专业的概念。本次辨析的概念是:威胁建模和DREAD模型 概念解析 | 威胁建模与DREAD评估:构建安全的系统防线 What Is Threat Modeling? Definition, Process, Examples, and Best Practices - Spic…

蓝桥杯-路径之谜

题目描述 小明冒充X星球的骑士&#xff0c;进入了一个奇怪的城堡。城堡里面什么都没有&#xff0c;只有方形石头铺成的地面。 假设城堡的地面时n*n个方格。如下图所示。 按习俗&#xff0c;骑士要从西北角走到东南角。可以横向或者纵向移动&#xff0c;但是不能斜着走&#x…

SpringBoot自定义定时任务

通常&#xff0c;在我们的项目中需要定时给前台发送一些提示性消息或者我们想要的定时信息&#xff0c;这个时候就需要使用定时任务来实现这一功能&#xff0c;实现也很简单&#xff0c;接下来具体来看看吧~ 简单定时任务 首先&#xff0c;你需要在你的启动类上加上开启定时任…

贪吃蛇(下)游戏的实现

感谢大佬的光临各位&#xff0c;希望和大家一起进步&#xff0c;望得到你的三连&#xff0c;互三支持&#xff0c;一起进步 个人主页&#xff1a;LaNzikinh-CSDN博客 文章目录 前言一.蛇和食物的打印二.游戏的运行逻辑三.结束游戏 &#xff08;善后工作&#xff09;四.游戏的测…

K8S-Dashboard安装并创建普通用户

参考&#xff1a;在centos stream 9上搭建k8s最新版本&#xff08;当前&#xff1a;v1.26.1&#xff09;集群环境 查找dashboard 对应的版本 https://github.com/kubernetes/dashboard/releases 下载 kubernetes-dashboard.yaml 使用的2.7.0 wget https://raw.githubuserconte…

mac安装虚拟机linux系统

需要下载的有&#xff1a;centos8镜像 , 虚拟器 VMware 软件包 , Termius 或者xshell 1. CentOS系统下载 linux系统一般有&#xff1a; CentOS、ubuntu、redhat&#xff0c;选择一种进行安装就可以 CentOS 2024 年开始停止维护和发布 CentOS8的下载与安装(windows下安装) 镜…

【网络安全产品】---应用防火墙(WAF)

what Web应用防火墙&#xff08;Web Application Firewall) WAF可对网站或者App的业务流量进行恶意特征识别及防护&#xff0c;在对流量清洗和过滤后&#xff0c;将正常、安全的流量返回给服务器&#xff0c;避免网站服务器被恶意入侵导致性能异常等问题&#xff0c;从而保障…

3.10设计模式——Template Method 模版方法模式(行为型)

意图 定义一个操作中的算法骨架&#xff0c;而将一些步骤延迟到子类中&#xff0c;Template Method 使得子类可以不改变一个算法的结构即可重新定义该算法的某些特定步骤。 结构 AbstractClass&#xff08;抽象类&#xff09;定义抽象的原语操作&#xff0c;具体的子类将重定…

C++:set和map的介绍

目录 关联式容器 键值对 set介绍&#xff1a; set的模板参数列表 set的双向迭代器&#xff1a; insert的使用和set的特性&#xff1a; set的删除&#xff1a; set的find&#xff1a; lower_bound 、 upper_bound&#xff1a; multiset&#xff1a; map介绍&#xff…

C语言——指针的奥秘(1.0)

指针 一.内存和地址1.内存2.编址 二.指针变量和指针1.取地址操作符&#xff08;&&#xff09;2.指针变量和解引用操作符&#xff08;*&#xff09;1.指针变量2.拆解指针类型3.解引用操作符4.指针变量的大小 三.指针变量的类型和意义1.指针的解引用2.指针 - 整数3.void* 指针…

JVM笔记1--Java内存区域

1、运行时数据区域 从上图可以看出来&#xff0c;Java虚拟机运行时数据区域整体上可以分成5大块&#xff1a; 1.1、程序计数器 程序计数器是一块较小的内存空间。它可以看做当前线程所执行的字节码的行号指示器。在Java虚拟机的概念模型里&#xff0c;字节码解释器工作时就是…

OpenAI下周将发布ChatGPT搜索引擎,挑战谷歌搜索!

目前&#xff0c;多方位消息证实&#xff0c;OpenAI将会在5月9日上午10点公布该消息&#xff0c;大约是北京时间周五的凌晨2点。 5月3日&#xff0c;前Mila研究员、麻省理工讲师Lior S爆料&#xff0c;根据OpenAI最新的SSL证书日志显示&#xff0c;已经创建了search.chatgpt.c…

Java集合排序

1. 集合排序API 1.1 集合排序概述 集合排序是指对一个集合中的元素按照特定规则进行重新排列&#xff0c;以使得集合中的元素按照预定义的顺序呈现。 在集合排序中&#xff0c;通常需要定义一个比较规则&#xff0c;这个比较规则用于决定集合中的元素在排序后的顺序。元素之间…

KIE基于图模型的关键信息抽取源码详解

1.数据集准备 下载数据集 https://download.openmmlab.com/mmocr/data/wildreceipt.tar WildReceiptOpenset 准备好 WildReceipt。 转换 WildReceipt 成 OpenSet 格式: # 你可以运行以下命令以获取更多可用参数: # python tools/dataset_converters/kie/closeset_to_opens…

程序的机器级表示——Intel x86 汇编讲解

往期地址&#xff1a; 操作系统系列一 —— 操作系统概述操作系统系列二 —— 进程操作系统系列三 —— 编译与链接关系操作系统系列四 —— 栈与函数调用关系操作系统系列五 —— 目标文件详解操作系统系列六 —— 详细解释【静态链接】操作系统系列七 —— 装载操作系统系列…

java下乡扶贫志愿者招募管理系统springboot-vue

计算机技术在现代管理中的应用&#xff0c;使计算机成为人们应用现代技术的重要工具。能够有效的解决获取信息便捷化、全面化的问题&#xff0c;提高效率。 技术栈 前端&#xff1a;vue.jsElementUI 开发工具&#xff1a;IDEA 或者eclipse都支持 编程语言: java 框架&#xff1…

c++ 红黑树学习及简单实现

1. 了解红黑树 1.1. 概念 红黑树&#xff0c;是一种二叉搜索树&#xff0c;但在每个节点增加一个存储位表示节点的颜色&#xff0c;可以是红色&#xff0c;或是黑色&#xff0c;通过对任何一条从根到叶子的路径上各个节点的着色方式进行限制&#xff0c;红黑树确保没有一条路…

Dockerfile镜像实例

目录 一、构建SSH镜像 1. 建立工作目录 2. 生成镜像 3. 启动容器并修改root密码 二、systemctl镜像 1. 建立工作目录 2. 生成镜像 3. 运行镜像容器 ​编辑 4. 测试容器systemct 三、Nginx镜像 1. 建立工作目录 2. 编写Dockerfile脚本 3. 编写run.sh启动脚本 4. …
最新文章