【昉·星光 2(VisionFive 2)RISC-V单板计算机】桌面太卡,退而求其次使用vnc远程桌面连接

描述

前言

使用HDMI显示发现桌面异常卡,几乎不具备实用性,于是只能退而求其次,使用远程桌面的方式。

sudo mkdir -p "/dev/debs/partial"

sudo ln -s "/dev/debs" /var/cache/apt/archives

安装server

sudo apt install tigervnc-standalone-server -y

安装gui

sudo apt install xfce4 -y
开发板

开发板

sudo apt install xfce4-terminal -y

PC端安装vncviewer

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

配置

su root 切换到root

vncpasswd 设置密码

root@starfive:~# vncpasswd

Password:

Verify:

Would you like to enter a view-only password (y/n)? n

A view-only password is not used

vi ~/.vnc/xstartup

输入如下内容

#!/bin/sh

unset SESSION_MANAGER

unset DBUS_SESSION_BUS_ADDRESS

exec startxfce4

chmod u+x ~/.vnc/xstartup

启动服务

vncserver :1 -localhost no -geometry=1920x1080

:1是端口,最终tcp端口是此数字+5900 ,也就是1+5900=5901

-localhost no 默认为yes,设置成no则可以非localhost也可以连接vnc

-geometry 设置分辨率

root@starfive:~# vncserver :1 -localhost no -geometry=1920x1080

/usr/bin/xauth:  file /root/.Xauthority does not exist

New Xtigervnc server 'starfive.mshome.net:1 (root)' on port 5901 for display :1.

Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /tmp/tigervnc.A4i0QX/passwd starfive.mshome.net:1 to connect to the VNC server.

连接

File->New Connection...
开发板

开发板

输入密码
开发板

开发板

配置终端

Applications->
开发板

开发板

开发板

这样右键就可以打开终端了。

总结

使用远程桌面使用更流畅,也可以作为没有HDMI显示器时的替代。

审核编辑:汤梓红

打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分