我测试了几种在Ubuntu18.04 (WSL)中解决灰度屏幕问题的方法,但直到现在我才能解决这个问题,当然,我在Ubuntu 16.04 (WSL)中没有任何问题,我在Ubuntu 16.04中的配置是:
nano /root/..vnc/xstartup
exec xfce4-session &
xrdb $HOME/.Xresources
xsetroot -solid grey
autocutsel -fork
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession在Ubuntu 16中,这个配置没有任何问题,但在Ubuntu18.04中,我测试了几种方法,如:
exec xfce4-session &
xrdb $HOME/.Xresources
xsetroot -solid grey
autocutsel -fork
export XKL_XMODMAP_DISABLE=1
#/etc/X11/Xsession
unset SESSION_MANAGER
exec /etc/X11/xinint/xinitrc
x-window-manager &或添加
metacity &
nautilus &或者使用这种方法:
xrdb $HOME/.Xresources
xsetroot -solid grey
# fix to make xfce work:
startxfce4 &但我无法在Ubuntu 18.04中得到结果
我怎样才能真正解决这个问题呢?
发布于 2018-05-25 02:35:34
当我取消注释我的标签时,错误信息解决了,请参阅下面的代码:
exec xfce4-session &
xrdb $HOME/.Xresources
xsetroot -solid grey
autocutsel -fork
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
unset SESSION_MANAGER
exec /etc/X11/xinint/xinitrc
x-window-manager &发布于 2018-05-24 15:20:56
我对灰色屏幕的解决方案是将xstartup文件更改为:
#!/bin/bash
env -i /bin/sh -c "export PATH=$PATH;
export XAUTHORITY=$XAUTHORITY;
export DISPLAY=$DISPLAY;
export HOME=$HOME;
export LOGNAME=$LOGNAME;
export USER=$USER;
/usr/bin/xfce4-session"但是vncviewer中的终端图标不能工作。必须找到并执行xfce4终端。
https://askubuntu.com/questions/1039199
复制相似问题