2021-12-19

VNC远程桌面配置

跨平台远程桌面工具安装

VNC server下载 https://www.realvnc.com/en/connect/download/vnc/

VNC viewer下载 https://www.realvnc.com/en/connect/download/viewer/

VNC SERVER 6.2.1版本(Linux):

VKUPN-MTHHC-UDHGS-UWD76-6N36A    有效期至2029-07-21

77NVU-D9G5T-79ESS-V9Y6X-JMVGA    有效期至2024-12-02

安装序列号

sudo /usr/bin/vnclicense -add VKUPN-MTHHC-UDHGS-UWD76-6N36A

配置服务开机自启

sudo systemctl enable vncserver-x11-serviced

重启服务

sudo systemctl start vncserver-x11-serviced

之后用VNC Viewer连接即可。

虚拟显示器

VNC远程登录无外接显示器的Ubuntu Desktop - 简书

参数计算 * Modeline Calculator

最终配置文件:

Section "Monitor"

  Identifier "Monitor0"

  HorizSync 28.0-80.0

  VertRefresh 48.0-75.0

  # https://arachnoid.com/modelines/

  # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz

  Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync

  # 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz

  Modeline "1680x1050_60.00" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync

EndSection

Section "Device"

  Identifier "Card0"

  Driver "dummy"

  VideoRam 256000

EndSection

Section "Screen"

  DefaultDepth 24

  Identifier "Screen0"

  Device "Card0"

  Monitor "Monitor0"

  SubSection "Display"

    Depth 24

    Modes "1680x1050_60.00"

  EndSubSection

EndSection

jetson vnc配置

ref: jetson nano开启VNC烂先生的博客-CSDN博客jetson nano vnc

#!/bin/bash

export DISPLAY=:0

gsettings set org.gnome.Vino enabled true

gsettings set org.gnome.Vino prompt-enabled false

gsettings set org.gnome.Vino require-encryption false

xrandr --fb 1680x1050

/usr/lib/vino/vino-server &



注意要根据echo $DISPLAY的结果设置合适的参数值

sudo gedit /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml

<key name='enabled' type='b'>

      <summary>Enable remote access to the desktop</summary>

      <description>

        If true, allows remote access to the desktop via the RFB

        protocol. Users on remote machines may then connect to the

        desktop using a VNC viewer.

      </description>

      <default>false</default>

    </key>


sudo glib-compile-schemas /usr/share/glib-2.0/schemas

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容