為什麼我無法建立 VNC 會話?

為什麼我無法建立 VNC 會話?

當我輸入 時vncserver,出現以下錯誤。

誰能告訴我為什麼會收到這則訊息?我沒有看到任何問題xstartup

/home/tello/.vnc>vncserver

Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

_XSERVTransSocketCreateListener: failed to bind listener
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for
unix
_XSERVTransNAMEDOpenServer: Can't open /tmp/.X11-pipe/X21
_XSERVTransOpen: transport open failed for named/spider:21
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for
named

Fatal server error:
Failed to establish all listening sockets
_XSERVTransSocketCreateListener: failed to bind listener
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for
unix
_XSERVTransNAMEDOpenServer: Can't open /tmp/.X11-pipe/X21
_XSERVTransOpen: transport open failed for named/spider:21
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for
named

Fatal server error:
Failed to establish all listening sockets

我沒有看到 /tmp/.X11-pipe/X21 而是那裡有 /tmp/.X11-pipe/X0 。目前我有以下內容:

total 8
drwxrwxr-x   2 root     root          96 May 19 07:56 .
drwxrwxrwt  37 sys      sys         4096 Jun  7 09:52 ..
-rw-rw-rw-   1 root     root           0 May 19 07:56 X0

答案1

您似乎遇到了 的存取錯誤/tmp/.X11-pipe/X21。這可能是/tmp/tmp/.X11-pipe、 或 的所有權或特權/tmp/.X11-pipe/X21。嘗試ls -ld對每個檔案使用該命令來查看它們是否存在,以及您是否有權存取它們。如果/tmp/.X11-pipe/X21存在,則該連接埠上可能已有 VNC 伺服器,或者失敗的運作可能未正確清理。

相關內容