RHEL 8.1 - 接続後、Tiger vncに黒い画面が表示される

RHEL 8.1 - 接続後、Tiger vncに黒い画面が表示される

Red Hat 8 Enterprise サーバーに TigerVNC をインストールするには、以下のリンクに示す指示に従いました。

https://www.tecmint.com/install-and-configure-vnc-server-in-centos-7/

ただし、Windows vncクライアントからサーバーに接続すると、黒いディスプレイのみが表示され、マウスポインタのみが機能します。これはかなり一般的な問題のようですが、これまでGoogleで検索したものの中には役に立ったものや適用可能なものはないようです。

問題になる可能性があるログファイルにエラーメッセージがあります。

環境のインポートに失敗しました:org.freedesktop.systemd1プロセスが状態1で終了しました。

完全なログファイルは次のとおりです。

Xvnc TigerVNC 1.9.0 - built Jan 28 2020 09:21:11
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12003000, The X.Org Foundation

Thu Mar 26 10:48:35 2020
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: created VNC server for screen 0
Failed to import environment: Process org.freedesktop.systemd1 exited with status 1

Thu Mar 26 10:48:38 2020
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)

Thu Mar 26 11:03:41 2020
Connections: accepted: 192.168.0.17::2372
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)

Thu Mar 26 11:03:48 2020
VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888

どんなアイデア/アイデアも歓迎します。

編集:〜/ .vnc / xstartupの内容

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/etc/X11/xinit/xinitrc
# Assume either Gnome will be started by default when installed
# We want to kill the session automatically in this case when user logs out. In case you modify
# /etc/X11/xinit/Xclients or ~/.Xclients yourself to achieve a different result, then you should
# be responsible to modify below code to avoid that your session will be automatically killed
if [ -e /usr/bin/gnome-session ]; then
    vncserver -kill $DISPLAY
fi

編集2:

/lib/systemd/system/の内容[Eメール保護]

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=simple

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver_wrapper <USER> %i
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target

/etc/gdm/custom.confの内容

# GDM configuration storage

[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=true
WaylandEnable=false
#TimedLoginEnble=true
#TimedLogin=engineering
#TimedLoginDelay=5

[security]

[xdmcp]


[chooser]

[debug]
# Uncomment the line below to turn on debugging
Enable=true

ベストアンサー1

おすすめ記事