VNC Viewer请求超时解决方案 、灰屏xfce4解决方案

0 / 1481

问题

连接时提示:Timed out waiting for a response from the computer

xfce4方案

安装方式也非常简单,此处默认系统已经安装了vncserver,如果没有安装,使用如下命令进行安装:

sudo apt install tigervnc-standalone-server

然后安装xfce

sudo apt-get install xfce4 # 选lightdm

可以使用如下命令,查看是否安装成功:

ps -A | grep xfce4

修改配置文件~/.vnc/xstartup为:

#!/bin/sh

# Uncomment the following two lines for normal desktop:

# unset SESSION_MANAGER

# exec /etc/X11/xinit/xinitrc

dbus-launch startxfce4

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
xrdb $HOME/.Xresources

vncserver -list
vncserver -kill :2
vncserver -localhost no -geometry 1920x1080 :2

客户端

vncviewer

下载页面:

Download VNC Viewer for Windows | VNC® Connect

地址填写格式如:10.8.0.16:2