Ubuntu 中的 TightVNC

Ubuntu 中的 TightVNC

下一個任務是在 linux ubuntu 20.4 LTS 上透過 TightVNC 進行遠端訪問,以便與 Windows 上相同,即連接後,您可以看到使用者在做什麼以及他在哪裡點擊。即使是初始設定也存在問題。在~/.vnc/xstartup檔案中寫入以下內容:

"#! / bin / bash
xrdb $ HOME / .Xresources
startxfce4 & "

記錄檔

12/03/20 16:32:14 Xvnc version TightVNC-1.3.10
03/12/20 16:32:14 Copyright (C) 2000-2009 TightVNC Group
03/12/20 16:32:14 Copyright (C) 1999 AT&T Laboratories Cambridge
03/12/20 16:32:14 All Rights Reserved.
03/12/20 16:32:14 See http://www.tightvnc.com/ for information on TightVNC
03/12/20 16:32:14 Desktop name 'X' (itc-VirtualBox: 1)
03/12/20 16:32:14 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
03/12/20 16:32:14 Listening for VNC connections on TCP port 5901
Font directory '/ usr / share / fonts / X11 / 75dpi /' not found - ignoring
Font directory '/ usr / share / fonts / X11 / 100dpi /' not found - ignoring
xrdb: No such file or directory
xrdb: can't open file '/home/itc/.Xresources'
/ usr / bin / startxfce4: X server already running on display: 1
xfce4-session: Another session manager is already running

使用tightvnc檢視器連接時,出現錯誤“未建立連接,因為目標電腦拒絕了連接請求。”

問題去哪裡挖怎麼解決?

答案1

將您的~/.vnc/xstartup文件更改為:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

相關內容