Ubuntu 中的 TightVNC

Ubuntu 中的 TightVNC

下一个任务是通过 Linux Ubuntu 20.4 LTS 上的 TightVNС 进行远程访问,以便与 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 viewer 连接时出现错误“未建立连接,因为目标计算机拒绝连接请求。”

哪里挖,如何解决问题?

答案1

将您的~/.vnc/xstartup文件更改为:

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

相关内容