Configure GUI via VNC in OCI( Oracle Cloud Infrastructure) VM Instance

0
133

In this post, we will be seeing how to configure VNC server quickly and access the GUI on VM Instance in OCI. I am going to convert the VM Instance to a fully functional GUI server in this example. However, instead of doing this, you can only install specific RPMs needed for display to work as well.

Firstly, install “Server with GUI” and “Tiger-VNC” rpms.

[root@ebs-dev ~]# yum -y groups install "Server with GUI"
Loaded plugins: langpacks, ulninfo
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Resolving Dependencies
--> Running transaction check

-----------------------------------------------------------


[root@ebs-dev ~]# yum -y install tigervnc-server
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.8.0-17.0.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================
Package Arch Version Repository Size
Installing:
tigervnc-server x86_64 1.8.0-17.0.1.el7 ol7_latest 215 k
Transaction Summary
Install 1 Package
Total download size: 215 k
Installed size: 509 k
Downloading packages:
tigervnc-server-1.8.0-17.0.1.el7.x86_64.rpm | 215 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : tigervnc-server-1.8.0-17.0.1.el7.x86_64 1/1
Verifying : tigervnc-server-1.8.0-17.0.1.el7.x86_64 1/1
Installed:
tigervnc-server.x86_64 0:1.8.0-17.0.1.el7
Complete!
[root@ebs-dev ~]#

Now run the “vncserver” command to start the VNC instance to connect:

[root@ebs-dev ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /root/.Xauthority does not exist
New 'ebs-dev:1 (root)' desktop is ebs-dev:1
Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ebs-dev:1.log

Now create SSH Tunnel from any GUI enabled local ssh terminal like MobaXterm or Xmanager etc.

ssh -L 5901:localhost:5901 opc@130.61.nnn.nnn

Now connect to the server using the VNC Viewer

You can now access the GUI of the server. You can download the patches directly using edelivery.oracle.com for example.

LEAVE A REPLY

Please enter your comment!
Please enter your name here