Installing VNC server on Google Cloud


In this post we are going to see how can we setup GUI in google cloud VM using vncserver. I would be using the same for installing EBS R12.2 in future posts.

Steps:

1. Setup a VM on Google Cloud. I am using RHEL 6.

[himanshu@ebs122 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.10 (Santiago)

2. Install the required RPMS

yum install tigervnc-server

yum install twm

yum install xterm

yum install xsetroot
yum install xclock

3. Start the VNC server using below command

[himanshu@ebs122 ~]$ vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth:  file /home/himanshu/.Xauthority does not exist

New 'ebs122:1 (himanshu)' desktop is ebs122:1

Creating default startup script /home/himanshu/.vnc/xstartup
Starting applications specified in /home/himanshu/.vnc/xstartup
Log file is /home/himanshu/.vnc/ebs122:1.log

4. Now install any vnc viewer and try to access.