Debian12安装VNC及novnc

在安装VNC前,应该先行安装好GUI桌面,我使用的是KDE。 安装VNC

sudo apt install tigervnc-standalone-server tigervnc-common tightvncserver

切换到需连接VNC的用户并设置VNC的密码:

su user
vncpasswd

按提示设置好密码后,安装novnc:

sudo apt install novnc

切换到需连接VNC的用户后,启动vnc服务:

vncserver -localhost no -geometry 1440x900

启动完vnc服务后,根据输入的信息启动novnc,注意vnc服务的端口:

websockify -D --web=/usr/share/novnc/ 41181 localhost:5901

接下来你可以使用浏览器访问 ip:41181 来连接vnc了。 下面是一些可能需要的命令。 查看vnc服务信息:

vncserver -list

关闭某个vnc服务:

vncserver -kill :1

查看websockify的进程:

ps aux | grep websockify

评论区

暂时没有评论。

发表新评论