While trying to install vncserver on Openstack instance (RHEL7.3) getting below error message that says repos are disabled.
[cloud-user@rhel7 lib64]$ sudo yum install tigervnc-server -y
Loaded plugins: search-disabled-repos
There are no enabled repos.
Run “yum repolist all” to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos –enable <repo>
To enable custom repositories:
yum-config-manager –enable <repo>
I tried to get the files related to vnc and copied those under /usr/bin and /usr/lib64 but I ended up with better approach of using Xming tool to open GUI.
- Setting up your DISPLAY
In order to open a GUI on a remote host you need to set an environment variable called $DISPLAY.
This re-directs the display so that the GUI appears on your desktop. First get your ip address:
Click Start -> Run -> cmd -> At the prompt type ‘ipconfig’
Make a note on of your IPv4 address . If VPN is connected use the corresponding IPv4 from ifconfig.
On the remote host set the display:
export DISPLAY=[your ip address]:0.0
Now you need a piece of software to allow Windows to display a GUI from UNIX. The most commonly used one is:
When you have installed Xming, then start XLaunch. You might want to add it to your start up so that you don’t have to start it every time.
Make sure you check the ‘No Access Control’ tick box when creating an XLaunch configuration
Test your display, on the remote host type: xterm, you should see a small terminal appear.
NOTE: If you see any error message related to missing shared object (.so file) then try to get that .so file and place it under /usr/lib64. Create the link as needed for ex:
[cloud-user@rhel7 lib64]$ pwd
[cloud-user@rhel7 lib64]$ sudo cp ~/lib64/libXrender.so.1.3.0 .
[cloud-user@rhel7 lib64]$ sudo ln -s libXrender.so.1.3.0 libXrender.so.1
[cloud-user@rhel7 ~]$ cd /usr/lib64
[cloud-user@rhel7 lib64]$ sudo cp ~/lib64/libXtst.so.6.1.0 .
[cloud-user@rhel7 lib64]$ sudo ln -s libXtst.so.6.1.0 libXtst.so.6
[cloud-user@rhel7 lib64]$ sudo cp ~/lib64/libXi.so.6.1.0 .
[cloud-user@rhel7 lib64]$ sudo ln -s libXi.so.6.1.0 libXi.so.6