我有一个 Ubuntu 21.10 headless,我需要使用远程桌面连接到它。当我尝试开始使用vncserver命令时,我得到以下过早退出代码
hd2900@hd2900:~/.vnc$ vncserver
New Xtigervnc server 'hd2900:1 (hd2900)' on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/hd2900/.vnc/passwd :1 to connect to the VNC server.
=================== tail /home/hd2900/.vnc/hd2900:5901.log ===================
==============================================================================
Session startup via '/home/hd2900/.vnc/xstartup' cleanly exited too early (< 3 seconds)!
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
The X session cleanly exited!
Killing Xtigervnc process ID 10156... success!
hd2900@hd2900:~/.vnc$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: …Run Code Online (Sandbox Code Playgroud)