在vnc中启动xfce4 灰屏解决办法  

今天又安装了一次xfce4,几个问题记下来

查找可用xfce的包yum grouplist

安装 yum install “XFCE-4.4” 这里写看到的具体版本

安装vnc进行远程桌面控制
yum -y install vnc-server

修改vncsercwer的配置文件
vi /etc/sysconfig/vncservers

改为
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800×600"

运行vncserver    vncserver

修改生成的配置文件 vi /root/.vnc/xstartup

#!/bin/sh 

# Uncomment the following two lines for normal desktop: 
unset SESSION_MANAGER 
exec /etc/X11/xinit/xinitrc 

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup 
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources 
xsetroot -solid grey 
vncconfig -iconic & 
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & 
#twm & 
startxfce4 &

如果还是灰屏,在startxfce4前面加入unset SESSION_MANAGER

欢迎大佬支持本博客的发展 -- Donate --

本文链接:在vnc中启动xfce4 灰屏解决办法

转载声明:本站文章若无特别说明,皆为原创,转载请注明来源:三十岁,谢谢!^^


分享到:          
  1. 你好,我的树莓派用了定制系统,桌面环境是xfce。近日成功启动了tightvncserver,没有报错,但连接之后是灰屏。网上查了一番,说是因为配置文件里没有给vncserver指定生成图形界面的“引擎”。(因为不能发图,我就粘贴log文件如配置文件如下:)
    配置:

    #!/bin/sh

    xrdb $HOME/.Xresources
    xsetroot -solid grey
    #x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
    #x-window-manager &
    # Fix to make GNOME work
    export XKL_XMODMAP_DISABLE=1
    /etc/X11/Xsession

    log:
    pi@raspbian:~/.vnc$ less raspbian\:1.log
    14/01/20 05:11:30 Full-control authentication passed by 192.168.137.1
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 24
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 16
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 22
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 21
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 15
    14/01/20 05:11:30 Using zlib encoding for client 192.168.137.1
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding -314
    14/01/20 05:11:30 Enabling full-color cursor updates for client 192.168.137.1
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding -223
    14/01/20 05:11:30 Pixel format for client 192.168.137.1:
    14/01/20 05:11:30 8 bpp, depth 6
    14/01/20 05:11:30 true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
    14/01/20 05:11:30 Using raw encoding for client 192.168.137.1
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 24
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 22
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 21
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 16
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 15
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding -314
    14/01/20 05:11:30 Enabling full-color cursor updates for client 192.168.137.1
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding -223
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 24
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 16
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 22
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 21
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding 15
    14/01/20 05:11:30 Using zlib encoding for client 192.168.137.1
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding -314
    14/01/20 05:11:30 Enabling full-color cursor updates for client 192.168.137.1
    14/01/20 05:11:30 rfbProcessClientNormalMessage: ignoring unknown encoding -223
    14/01/20 05:11:30 Pixel format for client 192.168.137.1:
    14/01/20 05:11:30 32 bpp, depth 24, little endian
    14/01/20 05:11:30 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
    14/01/20 05:11:30 no translation needed
    14/01/20 05:12:35 Client 192.168.137.1 gone
    14/01/20 05:12:35 Statistics:
    14/01/20 05:12:35 key events received 0, pointer events 55
    14/01/20 05:12:35 framebuffer updates 3, rectangles 52, bytes 23590
    14/01/20 05:12:35 cursor shape updates 3, bytes 1668
    14/01/20 05:12:35 raw rectangles 1, bytes 16396
    14/01/20 05:12:35 zlib rectangles 48, bytes 5526
    14/01/20 05:12:35 raw bytes equivalent 3948580, compression ratio 180.119515

    请不吝赐教

    • 时间太久有些记不清了,你看看是不是这两个原因
      1.配置文件中没有启动xface,例如startxfceXXX
      2.client的版本是否支持

  1. 没有通告