1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Connections: blacklisted: の対処方法

Last updated at Posted at 2014-12-06

VNCサーバに接続が成功する時と失敗する時がある。

  • windowsからの接続失敗例

スクリーンショット 2014-12-08 5.07.24.png

Too many security failures

  • macからの接続失敗例

スクリーンショット 2014-12-08 5.51.34.png

リモートコンピュータのソフトウェアが、このバージョンの画面共有と互換性がないようです。

vncサーバのログ確認

$ tail -f ~/.vnc/server\:1.log

失敗するときは以下出力

Connections: blacklisted: 127.0.0.1

  • vncserverをリスタートする

vncserverをリスタートする君

~/cron/vnc_restarter.sh
# !/bin/sh

LASTLOG=`tail -n 1 ~/.vnc/server\:1.log`
ERRLOG=" Connections: blacklisted: 127.0.0.1"
if [ "$LASTLOG" == "$ERRLOG" ];then
  $HOME/cron/vncstart.sh
fi
~/cron/vncstart.sh
# !/bin/sh

vncserver -kill :1
vncserver \
  -geometry 1280x1024 \
  -dpi 96 \
  -alwaysshared \
  -depth 16 \
   :1

echo `date '+%c'` " cron/vncstart.sh" >> ~/.vnc/server\:1.log

cronに登録

@reboot $HOME/cron/vncstart.sh
* * * * * $HOME/cron/vnc_restarter.sh
1
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
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?