(DUT)# kmsvnc
VNC server will start listening on port 5900. Forward the port with SSH from your client, and connect through the port. Example:
(workstation)$ ssh -L 5900:localhost:5900 DUT
Then connect using a VNC client, such as VNC Viewer for Google Chrome to localhost:5900. It will ask you if you want to connect unauthenticated, here we are relying on ssh forwarding to restrict who can connect.
TODO(uekawa): set up component for crbug.
For Googlers please use http://go/kmsvnc-bug to file a bug. Current known issues are available at http://b/hotlistid:2869886
For development I typically deploy to /usr/local/ because tests expect them there.
$ BOARD=rammus-arc-r $ setup_board --board=${BOARD} # required only once per board. $ cros_workon --board=${BOARD} start screen-capture-utils $ emerge-${BOARD} -j 100 chromeos-base/screen-capture-utils $ cros deploy --root=/usr/local/ localhost:2229 chromeos-base/screen-capture-utils $ tast run localhost:2229 graphics.KmsvncConnect $ tast run localhost:2229 graphics.Smoke.platform
For debugging I typically need to deploy to /usr/sbin, from inside chroot
$ cros deploy localhost:2229 chromeos-base/screen-capture-utils $ gdb-${BOARD} --remote=localhost:2229 /usr/sbin/kmsvnc