Main Menu

Search

LINUX: How To Enable GUI / BUI Access For Oracle Linux 8 (OL8)

LINUX: How To Enable GUI / BUI Access For Oracle Linux 8

Follow below steps.

1) On the Linux 8 host on which you want GUI access, install tigervnc server package.

# dnf -y install tigervnc-server

2) On the Linux 8 host edit /etc/tigervnc/vncserver.users file and uncomment or add line ":1=root' to enable root access

Below is snippet of file for reference.

# TigerVNC User assignment
#
# This file assigns users to specific VNC display numbers.
# The syntax is <display>=<username>. E.g.:
#
# :2=andrew
# :3=lisa
:1=root


3) On the Linux 8 host set vncpassword using below command.

# vncpasswd

You will be prompted for password and confirm password. You can optionally set viewonly vnc password if needed.

# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used

4) On the Linux 8 host set VNC environment for remote GUI access. 

For this run below commands.

cd ~

echo session=gnome >> .vnc/config

5) On the Linux 8 host, Start and enable VNC service. 

For this run below commands.

# sudo systemctl start vncserver@:1
# sudo systemctl enable vncserver@:1

6) From the client local machine from which you want to connect to OL8 GUI console, follow below steps.

6(a) SSH to OL8 host using below command.

ssh root@<ol8-host> -L 5901:localhost:5901

Replace <ol8-host> with OL8 host and when prompted for <ol8-host> host password, enter the vncpassword you set on above step (3).

You will be logged into <ol8-host>

6(b) From the client local machine, launch the VNC viewer client, enter run below command. 

localhost:1

You will be prompted for vncviewer password for ol8 host. Enter the password and you will be logged into GUI of OL8 host.




No comments:

Post a Comment