zoukankan      html  css  js  c++  java
  • UOS虚拟显示器&VNC配置

    1. 安装xserver-xorg-video-dummy
    sudo apt install xserver-xorg-video-dummy
    
    1. 配置文件
    sudo vim /etc/X11/xorg.conf.d/99-dummy.conf
    

    写入以下内容

    Section "Device"
        Identifier  "Configured Video Device"
        Driver      "dummy"
        VideoRam 256000
    EndSection
    
    Section "Monitor"
        Identifier  "Configured Monitor"
        HorizSync 10.0-300
        VertRefresh 10.0-200
    EndSection
    
    Section "Screen"
        Identifier  "Default Screen"
        Monitor     "Configured Monitor"
        Device      "Configured Video Device"
        DefaultDepth 24
        SubSection "Display"
        Depth 24
        Modes "1920x1080"
        EndSubSection
    EndSection
    
    1. 重启lightdm服务
    sudo service lightdm restart
    

    =======================================================================================

    1. 安装vnc
    sudo apt-get install x11vnc
    
    1. 设置密码
    sudo x11vnc -storepasswd
    
    1. 配置文件
    sudo vim /lib/systemd/system/x11vnc.service
    

    写入以下内容

    [Unit]
    Description=Start x11vnc at startup.
    After=multi-user.target
    
    [Service]
    Type=simple
    ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/<USERNAME>/.vnc/passwd -rfbport 5900 -shared -capslock -nomodtweak
    
    
    [Install]
    WantedBy=multi-user.target
    

    /home/USERNAME/.vnc/passwd 中的USERNAME需要换成你自己的用户名

    systemctl daemon-reload
    
    systemctl enable x11vnc.service
    
    systemctl start x11vnc.service
    
    没伞的孩子,就要学会在雨中奔跑!
  • 相关阅读:
    贝塞尔曲线应用(贝塞尔插值)
    贝塞尔曲线原理(简单阐述)
    STL头文件有哪些及简单介绍
    句柄与MFC对象关系和相互获取
    Reflect
    Set 和 Map 数据结构
    Symbol
    对象的新增方法
    对象的扩展
    数组的扩展
  • 原文地址:https://www.cnblogs.com/mikigo/p/14419837.html
Copyright © 2011-2022 走看看