使用 xface UI界面 ,其他界面还没验证
1.打开终端 进入超级管理员权限 给当前账号添加sudo权限
su - root
usermod -aG sudo 当前用户名
2.切换国内阿里源 (不教你备份了,需要备份的把当前的这个拷贝一份)
sudo nano /etc/apt/sources.list
新出现的黑框里面如果有东西,前面加个#表示注释掉
换行 输入
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
保存并退出 Ctrl+O 回车 Ctrl +X
重启操作系统让sodu 生效
打开终端更新源
sudo apt update
使用以下命令进入超级管理员权限,如果没有第一步将无法识别这个命令
sudo -i
下载realVNC的服务端
wget https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.11.0-Linux-x64.deb
更改文件权限
sudo chmod -R 777 VNC-Server-6.11.0-Linux-x64.deb
安装软件
dpkg -i VNC-Server-6.11.0-Linux-x64.deb
添加 license
vnclicense -add 3TH6P-DV5AE-BLHY6-PNENS-B3AQA
启动 vnc服务
sudo systemctl daemon-reload
sudo systemctl enable vncserver-x11-serviced.service
sudo systemctl start vncserver-x11-serviced.service
vnc界面将会启动
修改静态ip地址 。。。。