vncviewer:VNCサーバー接続が閉じられました。

vncviewer:VNCサーバー接続が閉じられました。

そのため、KDE ​​PlasmaでDebian Jessieを実行しているワークステーション「orac」にVNCサーバー(Tight VNC)をインストールしました。 Debian StretchとKDE Plasmaを実行している私のワークステーション「tact」にVNCクライアント(またTight VNC)があります。

パスワードを設定するには、oracでvncpasswdを実行します。

VNCを使って「tact」から「orac」を使いたいです。

SSH経由でoracに接続し、vncserverを起動しました。

jj5@orac:~$ vncserver 

New 'X' desktop is orac:1

Starting applications specified in /home/jj5/.vnc/xstartup
Log file is /home/jj5/.vnc/orac:1.log

次に、スマートコンソールで実行します。

jj5@tact:~$ vncviewer orac:1
Connected to RFB server, using protocol version 3.8
Enabling TightVNC protocol extensions
Performing standard VNC authentication
Password: 
Authentication successful
Desktop name "jj5's X desktop (orac:1)"
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap which is TrueColor.  Pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
vncviewer: VNC server closed connection

報告書を提出する前に、vncviewer: VNC server closed connectionすべてがうまくいっているようだった。ウィンドウが開き、KDE ​​Plasmaがログイン/ロードを実行していることがわかります。その後、私のoracデスクトップがロードされ、いくつかのデフォルトのDolphinウィンドウがロードされ、KDE ​​Plasmaが自動起動スクリプトの処理を開始するので、すべてがうまくいくようです。起動すると、KDE ​​/ VNCが消えて終了します。一般的vncviewer: VNC server closed connectionに、時にはvncviewer: read: Connection reset by peer

それでは、KDE(またはVNC?)が起動するとすぐに終了するのはなぜですか?どんな助けでも大変感謝します!

ps以下は、VNCサーバー(orac)環境に関するいくつかの追加情報です。

jj5@orac:~/.vnc$ ls -al
total 24K
drwx------  2 jj5 jj5 4.0K May  4 17:35 ./
drwxr-xr-x 74 jj5 jj5 4.0K May  4 17:35 ../
-rw-r--r--  1 jj5 jj5 1.3K May  4 17:36 orac:1.log
-rw-r--r--  1 jj5 jj5    5 May  4 17:35 orac:1.pid
-rw-------  1 jj5 jj5    8 May  4 15:52 passwd
-rwxr-xr-x  1 jj5 jj5  263 May  4 17:32 xstartup*

ログファイルには以下が表示されます。

jj5@orac:~/.vnc$ cat orac\:1.log 
04/05/17 17:35:57 Xvnc version TightVNC-1.3.9
04/05/17 17:35:57 Copyright (C) 2000-2007 TightVNC Group
04/05/17 17:35:57 Copyright (C) 1999 AT&T Laboratories Cambridge
04/05/17 17:35:57 All Rights Reserved.
04/05/17 17:35:57 See http://www.tightvnc.com/ for information on TightVNC
04/05/17 17:35:57 Desktop name 'X' (orac:1)
04/05/17 17:35:57 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
04/05/17 17:35:57 Listening for VNC connections on TCP port 5901

04/05/17 17:36:04 Got connection from client 10.1.1.126
04/05/17 17:36:04 Using protocol version 3.8
04/05/17 17:36:04 Enabling TightVNC protocol extensions
04/05/17 17:36:06 Full-control authentication passed by 10.1.1.126
04/05/17 17:36:06 Pixel format for client 10.1.1.126:
04/05/17 17:36:06   32 bpp, depth 24, little endian
04/05/17 17:36:06   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
04/05/17 17:36:06   no translation needed
04/05/17 17:36:06 Using tight encoding for client 10.1.1.126
04/05/17 17:36:06 Using compression level 1 for client 10.1.1.126
04/05/17 17:36:06 Using image quality level 6 for client 10.1.1.126
04/05/17 17:36:06 Enabling X-style cursor updates for client 10.1.1.126
04/05/17 17:36:06 Enabling cursor position updates for client 10.1.1.126
04/05/17 17:36:06 Enabling LastRect protocol extension for client 10.1.1.126

10.1.1.126は私のVNCクライアント「tact」です。

私のxstartupスクリプトはほとんどデフォルトのスクリプトです(〜/ .Xresourcesファイルがないため、xrdbコマンドからそのファイルを削除しました。そうしないとそのままです)。

jj5@orac:~/.vnc$ cat xstartup 
#!/bin/sh

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

ベストアンサー1

ああ、うわー。だから問題を見つけて、次のように解決しました。

jj5@orac:~$ rm .config/autostart/dropbox.desktop

システムにDropboxクライアントをインストールしようとすると、dropbox.desktopファイルがインストールされているように見えます(ただし機能しないため使用しません)。ここでこのファイルを忘れました。 VNCを介してoracにアクセスしようとした後、私のホームディレクトリで最近変更されたファイル/ディレクトリを見て、これを見つけました。たとえば、

jj5@orac:~$ ls -Alt | head
total 21292
drwx------    4 jj5  jj5      4096 May  4 18:12 Dropbox
drwx------    5 jj5  jj5      4096 May  4 18:12 .dropbox
drwx------    2 jj5  jj5      4096 May  4 18:12 .vnc
-rw-------    1 jj5  jj5      3136 May  4 18:12 .Xauthority
-rw-------    1 jj5  jj5     26860 May  4 18:07 .viminfo
-rw-------    1 jj5  jj5      6692 May  4 17:49 .bash_history
drwx------    2 jj5  jj5      4096 May  4 17:36 .pulse
-rw-r--r--    1 jj5  jj5        75 May  4 17:25 .selected_editor
-rw-r--r--    1 jj5  jj5       697 May  4 17:22 .profile
-rw-r--r--    1 jj5  jj5      3963 May  4 17:22 .bashrc

dropbox.desktop ファイルは次のとおりです。

jj5@orac:~/archive/2017-05-04-181328$ cat dropbox.desktop 
[Desktop Entry]
Name=Dropbox
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
Exec=dropbox start -i
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false

おすすめ記事