• 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

  • 相关阅读:
    使用Socks5代理和HTTP协议的爬虫技术
    js检测数据类型总结
    dom4j基本使用与XPath不生效处理
    nginx修改成非root用户启动
    centos部署tomcat
    sqlserver配置管理器无法启动解决方案
    Java 18新特性:开启Java编程的新篇章
    Python自动化小技巧23——PDF文件拆分为单独页面(PyMuPDF)
    Ant Design Vue Pro去掉权限,直接进入系统
    人与人之间的差异在于外界
  • 原文地址:https://blog.csdn.net/qq_35865125/article/details/125455826