[ INSTALLATION ]
sudo apt-get install tightvncserver
.# to set up a password (doesn't really matter since the ssh tunnel provides the real security)
vncpasswd
[ VM SIDE ]
to start up vnc server:
vncserver :7 -geometry 1280x854 -localhost
Export DISPLAY variable and run something with graphics e.g:
export DISPLAY=:7
igv
[ LOCAL SIDE ]
Run on your local machine to establish the ssh tunnel from local port 2 to your cloud VM's 7
From Nick:
I think this is all I did to get VNC working:
[ INSTALLATION ] sudo apt-get install tightvncserver .# to set up a password (doesn't really matter since the ssh tunnel provides the real security) vncpasswd
[ VM SIDE ]
to start up vnc server:
vncserver :7 -geometry 1280x854 -localhost
Export DISPLAY variable and run something with graphics e.g:
export DISPLAY=:7 igv
[ LOCAL SIDE ]
Run on your local machine to establish the ssh tunnel from local port 2 to your cloud VM's 7
(obviously doesn't really matter which to which)
gcloud compute ssh your_VM_name -- -x -e none -L 5902:127.0.0.1:5907
Then from your vnc client connect to localhost at display 2 (I'm using Chicken) Inline image 1
sudo apt-get install htop default-jre default-jdk openconnect unzip tightvncserver x11-apps samtools igv bedtools gcc picard-tools subversion sra-toolkit