#!/bin/bash export $(dbus-launch) export XKL_XMODMAP_DISABLE=1 unset SESSION_MANAGER gnome-panel & gnome-settings-daemon & metacity & nautilus & gnome-terminal & # [ -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" & gnome-session & <p>VNCSERVERS="2:root" VNCSERVERARGS[1]="-GEOMETRY 800×600"
tightvncserver -kill :1
tightvncserver :1
此时你会发现,虽然登录后桌面显示正常,但一旦关闭窗口,画面又会变回灰色。
![[ubuntu]ubuntu安装vncserver后,windows连接灰屏解决方法](https://img.php.cn/upload/article/001/503/042/175798272917416.jpg)
这其实是正常现象,因为 tightvncserver 并未与系统的主图形界面共用同一套图形环境。你只需点击左上角的“应用程序”或“位置”菜单,即可正常打开文件管理器或其他程序。
![[ubuntu]ubuntu安装vncserver后,windows连接灰屏解决方法](https://img.php.cn/upload/article/001/503/042/175798273090668.jpg)
以上就是[ubuntu]ubuntu安装vncserver后,windows连接灰屏解决方法的详细内容,更多请关注php中文网其它相关文章!
Windows激活工具是正版认证的激活工具,永久激活,一键解决windows许可证即将过期。可激活win7系统、win8.1系统、win10系统、win11系统。下载后先看完视频激活教程,再进行操作,100%激活成功。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号