指定したディスプレイ番号のXの共有が出来る.自分自身でもOK
$ x11vnc -display $DISPLAY
既定値では接続終了後に終了してしまう
$ x11vnc --help | grep "^-once" -A1 -once Exit after the first successfully connected viewer disconnects, opposite of -forever. This is the Default.
-forever
オプションを利用する
$ x11vnc --help | grep "^-forever" -A1 -forever Keep listening for more connections rather than exiting as soon as the first client(s) disconnect. Same as -many
-shared
オプションを利用する
$ x11vnc --help | grep "^-shared" -A1 -shared VNC display is shared, i.e. more than one viewer can connect at the same time (default off).
右に配置した 720x405
のディスプレイをメインディスプレイの解像度分オフセットして指定.同様に指定範囲のみの指定も可能.
-clip 720x405+1366+0
-clip xinerama1
1枚目のディスプレイの指定 → xinerama0
2枚目のディスプレイの指定 → xinerama1
-avahi
$ avahi-browse -ta | grep YOGA-260 | grep VNC + wlp3s0 IPv6 yoga-260:0 VNC Remote Access local + wlp3s0 IPv4 yoga-260:0 VNC Remote Access local
Wi-Fi接続だと結構帯域を食う.USB接続時にそちらで通信するとWi-Fiの帯域が空く.
$ adb usb #USB接続を有効に $ adb reverse tcp:5900 tcp:5900 #tcp:5900を転送
このあとAndroidのVNC clientで localhost:5900
に接続.
USB接続のたびに実行する必要がある.(接触不良だとすぐ切れて辛い)
コメント