Home | History | Annotate | only in /device/google/cuttlefish_common/host/frontend/vnc_server
Up to higher level directory
NameDateSize
Android.bp21-Aug-20181.3K
blackboard.cpp21-Aug-20185.6K
blackboard.h21-Aug-20183.5K
frame_buffer_watcher.cpp21-Aug-20186K
frame_buffer_watcher.h21-Aug-20182.6K
jpeg_compressor.cpp21-Aug-20182.7K
jpeg_compressor.h21-Aug-20181.7K
keysyms.h21-Aug-20182.7K
main.cpp21-Aug-20181.3K
mocks.h21-Aug-20181.1K
README.md21-Aug-20181,001
simulated_hw_composer.cpp21-Aug-20183.9K
simulated_hw_composer.h21-Aug-20181.8K
virtual_inputs.cpp21-Aug-20188.6K
virtual_inputs.h21-Aug-20181.1K
vnc_client_connection.cpp21-Aug-201821.7K
vnc_client_connection.h21-Aug-20185K
vnc_server.cpp21-Aug-20182K
vnc_server.h21-Aug-20181.5K
vnc_utils.h21-Aug-20182.5K

README.md

      1 # Host side VNC server
      2 
      3 ## Build instructions
      4 
      5 ```shell
      6 bazel build host/frontend/vnc_server/:vnc_server
      7 ```
      8 
      9 ### Requirements
     10 
     11 * libjpeg-turbo8-dev
     12 
     13 ## Run Instructions
     14 
     15 The vnc server receives frame updates from the hwcomposer through the shared
     16 memory, for which it needs to connect to the ivserver. To send input to the
     17 instance it temporarily connects to monkey, which is set up to run on the
     18 instance as a service and listens on port 6445, so you need to forward that port
     19 to a local socket.
     20 
     21 * Make sure to wait for monkey to start (about 16s), it's one of the last
     22 services to start since it's started by the zygote:
     23 
     24 ```shell
     25 adb shell ps -e | grep monkey
     26 ```
     27 
     28 * Forward the port to a local socket:
     29 
     30 ```shell
     31 adb forward localfilesystem:/tmp/android-cuttlefish-1-input tcp:6445
     32 ```
     33 
     34 * Run the server:
     35 
     36 ```shell
     37 bazel-bin/host/vnc_server/vnc_server --port=6444 --input_socket=/tmp/android-cuttlefish-1-input
     38 ```
     39 
     40 The VNC server will then be listening for connections on port 6444 on the host.
     41