在两三个小时内经历了各种尝试之后,终于成功,现在记录一下过程,以免下次忘记
系统:
我实在树莓派4B 8G版上安装了Manjaro
1.下载
wget https://github.com/azalinux/realvnc-server-aarch64-manjaro/releases/download/realvnc-vnc-server-6.7.2.43081-1-aarch64/realvnc-vnc-server-6.7.2.43081-1-aarch64.pkg.tar.zst
在manjaro上点击上面的链接下载
2.安装:
manjaro系统的打包格式认准.zst
,双击应该就可以安装了(我这次是在浏览器里直接打开的)
如果不能,用下面这个命令:
pacman -U realvnc-vnc-server-6.7.2.43081-1-aarch64.pkg.tar.zst
完事之后就安装成功了
3.配置三项:
sudo systemctl enable vncserver-x11-serviced.service
sudo systemctl start vncserver-x11-serviced.service
sudo systemctl status vncserver-x11-serviced.service
第一条是设置开机启动VNC,第二条是开始VNC服务,第三条是查看VNC的状态。如果操作都正确,则将会显示其为active(running)状态。
4.成功:
5.但是开始的时候遇到了2个问题:
问题1.我已经设置了开机自动登录(系统设置->开机与关机->行为设置)
开机还是会提示输入“KDE钱包服务”密码,输入系统密码后即可,不然vnc不能用。
解决:左下角,搜索,kwalletmanager
,没有的话去系统商店安装,之后打开kwalletmanager更改密码为系统密码一致,其次打开KDE钱包,取消“启用KDE钱包子系统”。
问题2.,解决问题1之后,重启,wifi密码提示重新输入,每次开机都要输入哪行.
解决:右键右下角wifi图标,配置网络连接,WIFI安全,输入密码保存即可解决。
第二天又又又遇到了新问题:不连接显示屏的情况下就不给开机
解决:/boot/config.txt文件内增加以下内容:
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=82
hdmi_force_hotplug=1
伪装成HDMI热插拔信号被检测到, 出现HDMI显示器被接入;即便没有检测到HDMI显示器也要使用HDMI模式
hdmi_group=2
设置HDMI类型为DMT,不指定组, 或者设为0, 将会使用EDID报告的首选组.
hdmi_mode=82
设置在CEA或DMT格式下的屏幕分辨率为1080p 60Hz
参考:树莓派配置文件config.txt详细介绍
6.vnc如果还不行,参考:
1.github:https://github.com/azalinux/realvnc-server-aarch64-manjaro
realvnc-server-aarch64-manjaro
RealVNC Server for Raspberry Pi4 64bit Manjaro AARCH64
This AUR package will install RealVNC Server aarch64 package on any
Manjaro ArchLinux based ARM64 installation on a Raspberry Pi4.
Has been tested on all flavours of Manajaro ARM64 flavours using a 8gb
Raspberry Pi 4b. Has also been tried on XFCE, MATE & KDE Plasma
desktop flavours.
BEFORE YOU INSTALL THIS PACKAGE:
Make sure you have the package base-devel installed fully. For
example, a default install of Manjaro Arch ARM64 only has some
components of base-devel installed by default on a fresh installation
so please perform the following command to ensure all prerequists for
building the package are met: pacman -S base-devel
Installation:
You can use the precompiled package in my Releases page to download &
install:
wget
https://github.com/azalinux/realvnc-server-aarch64-manjaro/releases/download/realvnc-vnc-server-6.7.2.43081-1-aarch64/realvnc-vnc-server-6.7.2.43081-1-aarch64.pkg.tar.zst
pacman -U realvnc-vnc-server-6.7.2.43081-1-aarch64.pkg.tar.zst
OR git clone this package to compile manually:
git clone
https://github.com/azalinux/realvnc-server-aarch64-manjaro.git
makepkg -si
FYI: This should be pre-activated as the source is pre-activated for
use with Raspberry Pi’s however if it doesn’t show a valid license
after installation, you will need a valid realvnc key; to activate
run: sudo /usr/bin/vnclicense -add
Don’t forget to enable the systemd service: sudo systemctl enable
vncserver-x11-serviced.service
And thats it! A working 64bit RealVNC server running on Manjaro
ArchLinux ARM64!
Please note - This free Raspberry Pi edition of RealVnc Server will
let clients connect via TCP direct mode rather than UDP direct mode.
You need an Enterprise License to connect via UDP!
2.manjaro配置VNC服务
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)