Ubuntu22.04 + TigerVNC

安装 TigerVNC

sudo apt install tigervnc-standalone-server

验证连接

# vncserver -xstartup nautilus -localhost no :1 #启动文件管理器并运行外部访问
# vncserver -xstartup gnome-session -localhost no :1 #启动gnome会话
New Xtigervnc server 'localhost.localdomain:1 (root)' on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd localhost.localdomain:1 to connect to the VNC server.

# ss -lntp | grep 5901
LISTEN 0      5            0.0.0.0:5901      0.0.0.0:*    users:(("Xtigervnc",pid=1776923,fd=9))                                                                                         
LISTEN 0      5               [::]:5901         [::]:*    users:(("Xtigervnc",pid=1776923,fd=10))                                                                                        

现在应该可以连接啦!

关闭服务:

# vncserver -kill :1
Killing Xtigervnc process ID 1776923... success!
posted @ 2023-05-09 17:55  develon  阅读(1203)  评论(0编辑  收藏  举报