Using VNC in Google Cloud

  1. Setup the firewall rules
    1. ingress rule for the inbound machine, port: tcp:5901-5910
    2. egress rule for the outbound machine, port: tcp:5901-5910
  2. Create the Linux instance:
    1. Choose the desirable config
    2. sudo apt-get update
    3. sudo apt-get install gnome-core
    4. sudo apt-get install vnc4server
    5. apply the network tag for the ingress rule
  3. Modify the vnc configuration on the Linux instance.
    1. vim .vnc/xstartup // as shown in the bottom of the post, credits to http://onkea.com/ubuntu-vnc-grey-screen/ for the config file
    2. :wq!
    3. sudo shutdown -r now
  4. On the other machine:
    1. apply the egress networking tag
    2. install vnc viewer of your choice
    3. connect to x.x.x.x:5901

Should work like a charm :).

Continue reading “Using VNC in Google Cloud”