Wednesday 17 February 2016

vnc issue

I had this issue earlier as well , but all the blogs misled me.

When I start the vnc , I get the grey vnc screen but no terminal window on it.
there is nothing much I can do on the vnc screen without the terminal (putty) window

While i google , lot of the blogs say about modifying the /home/oracle/.vnc/xstartup file

I modified it and restart vnc number of times, but nothing helped.

Then , I turn to the vnc log file to see if I can find a clue of whats wrong.

The following line caught my attention:

/root/.vnc/xstartup: line 11: xterm: command not found

upon checking xterm command is not found.

[root@ovpxpippd .vnc]#
[root@ovpxpippd .vnc]# ls -l /usr/bin/xterm
ls: cannot access /usr/bin/xterm: No such file or directory
[root@ovpxpippd .vnc]#
[root@ovpxpippd .vnc]#

I proceed to install xterm.

[root@ovpxpippd .vnc]#
[root@ovpxpippd .vnc]# yum install xterm
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xterm.x86_64 0:215-8.el5_4.1 will be installed
--> Processing Dependency: libtermcap.so.2()(64bit) for package: xterm-215-8.el5_4.1.x86_64
--> Processing Dependency: libXaw.so.7()(64bit) for package: xterm-215-8.el5_4.1.x86_64
--> Running transaction check
---> Package libXaw.x86_64 0:1.0.2-8.1 will be installed
--> Processing Dependency: libXpm.so.4()(64bit) for package: libXaw-1.0.2-8.1.x86_64
---> Package libtermcap.x86_64 0:2.0.8-46.1 will be installed
--> Processing Dependency: /etc/termcap for package: libtermcap-2.0.8-46.1.x86_64
--> Running transaction check
---> Package libXpm.x86_64 0:3.5.5-3 will be installed
---> Package termcap.noarch 1:5.5-1.20060701.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================
 Package                              Arch                             Version                                        Repository                            Size
=================================================================================================================================================================
Installing:
 xterm                                x86_64                           215-8.el5_4.1                                  el5_latest                           411 k
Installing for dependencies:
 libXaw                               x86_64                           1.0.2-8.1                                      el5_latest                           329 k
 libXpm                               x86_64                           3.5.5-3                                        el5_latest                            44 k
 libtermcap                           x86_64                           2.0.8-46.1                                     el5_latest                            14 k
 termcap                              noarch                           1:5.5-1.20060701.1                             el5_latest                           265 k

Transaction Summary
=================================================================================================================================================================
Install       5 Package(s)

Total download size: 1.0 M
Installed size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): libXaw-1.0.2-8.1.x86_64.rpm                                                                                                        | 329 kB     00:00
(2/5): libXpm-3.5.5-3.x86_64.rpm                                                                                                          |  44 kB     00:00
(3/5): libtermcap-2.0.8-46.1.x86_64.rpm                                                                                                   |  14 kB     00:00
(4/5): termcap-5.5-1.20060701.1.noarch.rpm                                                                                                | 265 kB     00:01
(5/5): xterm-215-8.el5_4.1.x86_64.rpm                                                                                                     | 411 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                            206 kB/s | 1.0 MB     00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:termcap-5.5-1.20060701.1.noarch                                                                                                             1/5
  Installing : libtermcap-2.0.8-46.1.x86_64                                                                                                                  2/5
  Installing : libXpm-3.5.5-3.x86_64                                                                                                                         3/5
  Installing : libXaw-1.0.2-8.1.x86_64                                                                                                                       4/5
  Installing : xterm-215-8.el5_4.1.x86_64                                                                                                                    5/5
  Verifying  : libtermcap-2.0.8-46.1.x86_64                                                                                                                  1/5
  Verifying  : libXaw-1.0.2-8.1.x86_64                                                                                                                       2/5
  Verifying  : xterm-215-8.el5_4.1.x86_64                                                                                                                    3/5
  Verifying  : libXpm-3.5.5-3.x86_64                                                                                                                         4/5
  Verifying  : 1:termcap-5.5-1.20060701.1.noarch                                                                                                             5/5

Installed:
  xterm.x86_64 0:215-8.el5_4.1

Dependency Installed:
  libXaw.x86_64 0:1.0.2-8.1            libXpm.x86_64 0:3.5.5-3            libtermcap.x86_64 0:2.0.8-46.1            termcap.noarch 1:5.5-1.20060701.1

Complete!
[root@ovpxpippd .vnc]#
[root@ovpxpippd .vnc]#
[root@ovpxpippd .vnc]#


Then started up vnc, and yes, now I get my terminal window.

So although you have the vnc packages , but unless you have the xterm packages installed , you cannot make use of vnc . 

Hope this helps some one.

No comments:

Post a Comment