Debian-Pi-Aarch64/docs/vnc.md

2.1 KiB
Raw Blame History

再次重申!我们是团队,企业级团队出品的系统,不要拿个人作品来和我们比较。

openfans    amatfan.png

        OPENFANS开源社区        树莓派爱好者基地            荣誉出品


如何设置VNC远程访问

使用root账户登录并执行下列操作

安装 RealVNC

apt update
cd ~ ; wget https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.4.0-Linux-ARM.deb
apt install ./VNC-Server-6.4.0-Linux-ARM.deb
dpkg -i ./VNC-Server-6.4.0-Linux-ARM.deb
rm -rf ./VNC-Server-6.4.0-Linux-ARM.deb

然后注销或退出登录,在目录菜单 "其他" 里面可以找到 "VNC Server"

设置root用户VNC密码

VNC默认设置访问密码为你的账户密码用户名为你的账户名

设置成服务的方式启动

## 一些说明介绍:

Installed systemd unit for VNC Server in Service Mode daemon
Start or stop the service with:
  systemctl (start|stop) vncserver-x11-serviced.service

Mark or unmark the service to be started at boot time with:
  systemctl (enable|disable) vncserver-x11-serviced.service

Installed systemd unit for VNC Server in Virtual Mode daemon

Start or stop the service with:
  systemctl (start|stop) vncserver-virtuald.service

Mark or unmark the service to be started at boot time with:
  systemctl (enable|disable) vncserver-virtuald.service
  • 首先杀死进程确保用户手动没有启动VNC
killall vncserver-x11-core vncserver-x11 vncagent vncserverui
  • 然后根据提示,设置成服务并运行
systemctl enable vncserver-x11-serviced.service ; systemctl start vncserver-x11-serviced.service
  • 运行后默认端口为:5900

XRDP SERVER

如果要安装XRDP 执行下面命令除非你知道XRDP是做什么的否则不需要 !!

apt install xrdp -y ; systemctl enable xrdp.service