栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

VNC连接失败:The connection was refused by the host computer

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

VNC连接失败:The connection was refused by the host computer

解决方法:

1.用Xshell登陆自己的服务器

2.在命令行中输入vncserver,命令行中出现:

Warning: optimal6:2 is taken because of /tmp/.X2-lock

Remove this file if there is no X server optimal6:2

在命令行中输入:

rm  /tmp/.X2-lock

在ubuntu20.04 中配置 vncserver

  1. Install gnome-session-flashback:

$ sudo apt install gnome-session-flashback

  1. Add this to ~/.vnc/xstartup:

#!/bin/sh
autocutsel -fork
xrdb $HOME/.Xresources
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP=“GNOME-Flashback:Unity”
export XDG_MENU_PREFIX=“gnome-flashback-”
unset DBUS_SESSION_BUS_ADDRESS
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check --debug &

在macos中配置 vncviewer

连接完成,即可在vncviewer 中显示 ubuntu 桌面

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/880444.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号