[[PageOutline]] * [http://vezihgth.blogspot.com/2010/08/tightvnc-for-windows-httpvezihgth.html blog: TightVNC派生版のTurboVNCは最高だ!!] = x11vnc = * 「caught XIO error」というエラーとともに勝手にログアウト(Xのセッションからも)することがあるが、詳細不明 * => #57 * see [./x11vnc] for x11vnc --help * [http://www.karlrunge.com/x11vnc/ x11vnc: a VNC server for real X displays] * [http://alromero.posterous.com/using-x11vnc-instead-of-vino-tightvncserver-o Using X11vnc instead of vino, tightvncserver or vnc4server - alromero's posterous] * [http://z.cs.utexas.edu/users/habals/blog/index.php/archives/22 Jungwoo's Blog » Blog Archive » x11vnc over SSH on Ubuntu Linux] * [http://rdt17.blogspot.com/2007/09/ubuntu704-x11vnc.html チラシの裏にでも書いてろ な!: Ubuntu7.04 にx11vncをインストールする] * ~/.x11vncrc {{{ display :0 # This will do in most single user machine rfbauth .vnc/passwd # password file rfbport 5900 # Use this default port forever # Without this x11vnc will die after serving one connection. localhost # Only accept local connections. This makes your x11vnc secure along with SSH. }}} * x11vnc -storepasswd で作られるパスワードファイルは先頭8文字しか見ない模様 * -rw------- 1 mitty mitty 8 Feb 17 00:04 .vnc/passwd * ~~ssh 越しにx11vnc serverの起動には成功せず(原理的に出来ない?)~~ * sudo x11vncで起動すればよい * 「alias sudo='sudo -H '」している場合は、以下のようにする {{{ sudo x11vnc -rc ~/.x11vncrc }}} * see also [../ssh#X11Forwardingwithanotheruser] * xfceの Settings -> Session and Startup の Application Autostart に 「/usr/bin/x11vnc」で登録すると良い * ps wwwwaux | grep auth {{{ root 1106 0.0 3.4 119100 17436 tty7 Ss+ Mar06 0:05 /usr/bin/X :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-bcQe9Q/database -nolisten tcp vt7 }}} * Xfce4 の例 * -display :0 -auth guess で自動的に見つけてくれる模様 == vnc with xinetd == * [http://hp.vector.co.jp/authors/VA022911/tec/centos/vnc2.htm 水銀室 VNCをxinetd経由で起動しGDMでログインする -CentOS最短構築支援-] * [http://ubuntuforums.org/showthread.php?t=363236 HOWTO: x11vnc (vnc for display :0) - Ubuntu Forums] > {{{ > server_args = -inetd -o /var/log/x11vnc.log -svc > }}} * -svc はうまく動かない * SSLを強制される( UNIXPW_DISABLE_SSL=1, UNIXPW_DISABLE_LOCALHOST=1をexportしても効かない) * [http://www.karlrunge.com/x11vnc/ssvnc.html ssvnc: SSL/SSH VNC viewer]を用いてlocalhost接続した後、User/Passwordでログインしてもattachされない * Xfceを使っているせい? (Xubuntu) 1. $ sudo aptitude install -R xinetd 1. $ sudo vim /etc/xinetd.d/x11vnc * source:lab/trunk/TipAndDoc/xinetd.d/x11vnc * attachment:x11vnc.log <- /var/log/x11vnc.log * session毎に上書きされる模様(最新の接続情報しか残らない) * この設定では、xinetdとx11vncの両方で、localhost以外からの接続を拒否しているが、それでもxinetdへのセッションそのものは確立するため、iptablesでポートごと塞ぐのがmore better