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