ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
unix:x11:x11vnc

x11vnc

指定したディスプレイ番号のXの共有が出来る.自分自身でもOK

$ x11vnc -display $DISPLAY

tips

切断した後もx11vncを終了しないようにする

既定値では接続終了後に終了してしまう

$ 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(mDNS)

-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  

AndroidでUSB有線接続を使う

Wi-Fi接続だと結構帯域を食う.USB接続時にそちらで通信するとWi-Fiの帯域が空く.

$ adb usb #USB接続を有効に
$ adb reverse tcp:5900 tcp:5900 #tcp:5900を転送

このあとAndroidのVNC clientで localhost:5900 に接続.

USB接続のたびに実行する必要がある.(接触不良だとすぐ切れて辛い)

  • x0vncserver(tigervnc)
  • vino

コメント

コメントを入力. Wiki文法が有効です:
  ____    ___  __  __   ____   ____
 / __ \  / _ \ \ \/ /  / __/  / __/
/ /_/ / / ___/  \  /  / _/   _\ \  
\___\_\/_/      /_/  /_/    /___/
 
unix/x11/x11vnc.txt · 最終更新: 2022/01/12 00:18 by matoken