How to setup graphical user interface (GUI) in virtual servers and Install tigervnc-server in it

How to setup graphical user interface (GUI) in virtual servers and Install tigervnc-server in it


In this article we will see how to install GUI Mode in Cloud Instance and Install tigervnc-server into it

Here I'm taking oracle linux 7 machine with minimal installation(terminal) means there is no GUI.

Now I would like to install and GUI mode in it .


How to Install Server with GUI mode and and enable VNC Viewer in oci machine


Login into the instance

 


 

 


Now login into root user : 

$ sudo su -

- Check "Server with GUI" Available

$ yum group list

To install Server with GUI  execute this command

$ yum group install "Server with GUI"



Server with GUI Installation has been completed

you can verify it using  $ yum group list you can find it under Installed Envirolment Groups


Now you have to install the tigervnc server

$ yum install tigervnc-server –y 


Then execute below commands and give the password

exit

cd

vncpasswd

password:

Verify Password:

n

sudo bash

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@\:1.service

vi /etc/systemd/system/vncserver@\:1.service

in this file you have to replace <USER> section with  your user account username (here my account user name is opc)

-          replace  <USER>with username

now you have to reload daemon and enable and start the vncserver

systemctl daemon-reload

systemctl enable vncserver@\:1.service

systemctl start vncserver@\:1.service

systemctl status vncserver@\:1.service

 


 Next you have to add vnc-service in the firewall to allow traffic from outside 

firewall-cmd --add-service=vnc-server

firewall-cmd --add-service=vnc-server --permanent

firewall-cmd --list-all


 Thats it from VM/Instance end


In order to connect the above server , you have to download and install vnc viewer / tiger vnc viewer software

RealVNC Viewer Software Link

TigerVNC Server Software


Open the VNC Viewer or Tiger VNC viewer and enter the public-ip:1 [or privateip:1 If your in the same network]

Ex: My public ip is 132.145.212.191, So I have specified  132.145.212.191:1

or


It will prompt for the password, enter the password which you set in earlier command.


 


Configure the language and keyboard then click on start using the oracle linux 7



open the terminal and check the user

 

That’s it

Thanks for reading ..

Tharun.K

 

 

 

 

 




Post a Comment

0 Comments