码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Ubuntu install vncserver


    Ubuntu 20自带的vnc server

    Ubuntu 20.04已内置了默认的VNC服务vino, 如果只是简单使用,那么不需要安装其他类型的VNC Server.

    进入 设置-共享-屏幕共享-打开,然后,后台才会运行vino.

    disable 加密:

    gsettings set org.gnome.Vino require-encryption false

    缺点:

    遇到一个现象,远程机器不接显示器或者关闭显示器后,本地只能看到远端机器的桌面,不能控制。自己安装tigervnc可以解决。

    Ubuntu 20.04 VNC服务开启-远程桌面设置_健忘的老菜鸟的博客-CSDN博客_ubuntu 开启vnc服务

     

    Install tigervnc

    https://tecadmin.net/install-vnc-server-on-ubuntu-20-04/#:~:text=1%20How%20To%20Install%20and%20Configure%20VNC%20Server,%E2%80%93%20Create%20a%20Systemd%20Service%20File%20for%20VNC.

    -- 从step2开始即可;

    Others:

    GDM, KDM, LightDM, SDDM的区别和安装配置_JASON凯伊-菜鸟一枚的博客-CSDN博客_gdm3 lightdm sddm哪个好


    Display issues when connecting to VNC Server running on Linux

    From:
    https://help.realvnc.com/hc/en-us/articles/360005081572-Display-issues-when-connecting-to-VNC-Server-running-on-Linux

    In some circumstances, your Linux remote computer will not display correctly in VNC Viewer. The commonly reported issues are:

    • a black or blank screen
    • application windows are white
    • slow refresh of images

    The issue is most commonly seen when connecting to a computer with no monitors attached (headless), or a monitor using HDMI/DisplayPort is connected but powered off.

    It appears that in the above situations, Linux does not correctly report graphical updates to be captured by VNC Server. At this time, there are some known workarounds you can try below:

    1. Upgrade VNC Server to version 6.5.0, as this version contains some changes to try and automatically recover from a blank screen
    2. If you are running VNC Server on Ubuntu 18.04 LTS or later, or CentOS/RHEL 8 or later, you need to disable Wayland
    3. Change your Power settings on the Linux computer to never turn off the monitors/displays
    4. Check that Linux is not set to a "Battery Saver" power mode
    5. Connect an EDID emulator to the VNC Server computer. An example EDID emulator can be seen here
      Note: RealVNC have not tested this particular emulator and it is only provided as an example
    6. Change the VNC Server CaptureMethod parameter:
      • On the remote Linux computer, open the VNC Server dialog.
      • Select Options from the hamburger menu.
      • On the Expert tab, filter the list for CaptureMethod, and set the value to 1
      • Restart VNC Server

        This can also be specified using a configuration file: /root/.vnc/config.d/vncserver-x11
    7. Install the X11 dummy driver, by running:
      • Ubuntu
        sudo apt update
        sudo apt install xserver-xorg-video-dummy
        sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak # this file may not exist so if there is an error, it can be ignored
        sudo cp /etc/X11/vncserver-virtual-dummy.conf /etc/X11/xorg.conf
      • RHEL / CentOS
        sudo yum install xorg-x11-drv-dummy
        sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak # this file may not exist so if there is an error, it can be ignored
        sudo cp /etc/X11/vncserver-virtual-dummy.conf /etc/X11/xorg.conf
      • Reboot the machine, and you should now be able to connect as expected.
      • Note: Following these steps will result in any connected monitors displaying a blank screen. If you need to use a monitor, run sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.dummy and reboot
      • Note 2: This method is using the X11 dummy driver, so some graphical features may not be available. If you want your own driver to work, you will have to research what changes are needed and make your own xorg.conf

  • 相关阅读:
    HTML+CSS+JS网页设计期末课程大作业 html+css+javascript+jquery化妆品电商网站4页面
    照片相似性搜索引擎Embed-Photos;赋予大型语言模型(LLMs)视频和音频理解能力;OOTDiffusion的基础上可控制的服装驱动图像合成
    【组件专题】初识COM组件
    「POJ 3666」Making the Grade 题解(两种做法)
    C++11:右值引用
    一个对安卓日志输出功能的优化
    Tomcat Takeover
    [杂谈]-二进制到十进制转换
    【写在七夕浪浪漫时刻】Go中遇到http code 206和302的获取数据的解决方案
    Clear Code for Minimal API
  • 原文地址:https://blog.csdn.net/qq_35865125/article/details/125455826
  • 最新文章
  • 【JVM】编译执行与解释执行的区别是什么?JVM 使用哪种方式?
    用 Hashids 优雅解决 C 端自增 ID 暴露问题
    V8引擎 精品漫游指南--Ignition篇(上) 指令 栈帧 槽位 调用约定 内存布局 基础内容
    LLVM Pass快速入门(四):代码插桩
    milkup:桌面端 markdown AI续写和即时渲染
    基于项目工程构建SBOM(软件物料清单)的研究
    鸿蒙应用开发UI基础第二节:鸿蒙应用程序框架核心解析与实操
    .NET 中如何快速实现 List 集合去重?
    扣子Coze实战:从0到1打造抖音+小红书热点监控智能体
    浅谈数据访问层
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号