To rectify the issue:
- login to the Linux console with root account
- type in DISPLAY=:0.0
- type in export DISPLAY
- type in xhost +
- login to oracle account su - oracle
- type in DISPLAY=:0.0
- type in export DISPLAY
- type xclock and see if the previous said error still appears or not.
- if a clock appears that means configuration is done.
- You may proceed to install using oracle account in Linux.