LoginSignup
5
3

More than 5 years have passed since last update.

centos7にvnc接続するとアプリケーションメニューやデスクトップ背景が表示されないバグ

Last updated at Posted at 2018-03-21

centos7のサーバにvnc接続する際、いつもうまくいかなくて困るので備忘として。

yumでtigervncサーバをインストールして、設定ファイルを書き直し、いざwindowsからつないでも一部表示が限られてしまう。
以下のようにアプリケーションメニューバーが表示されなかったり、デスクトップの背景が真っ黒になってしまう。

vnc.jpg

tigervncの設定ファイルを書き変える

/lib/systemd/system/vncserver@:1.service
のServiceのところで
PAMName=login
を足すと直る。

...(前略)

[Service]
Type=forking
User=username
PAMName=login #←追記

...(後略)

として

# systemctl daemon-reload
# systemctl restart vncserver@:1

とする。

以下参考にしました:
https://www.centos.org/forums/viewtopic.php?t=65156

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3