Blank Viewer Window when serevr is run at boot time

R. S. Patil kpr_rspatil "at" sancharnet.in
Wed Jan 28 13:55:00 2004


dear friends,

I am Using Suse 8.2 & Real VNC 4 vnc-4.0-0b4.i386.rpm

As per guide line given by Mr. Jerry Westrick at
http://faq.gotomyvnc.com/cgi-bin/jerry@westrick.com
and additional reference
"Setting up VNC on Linux" By Jeff Vincent
I tried following.

When I try to connect from a Win XP machine
using Viewer I get a Blank Window with "X11"
in the caption. The windows has a X shaped
cursor which I am able to move mouse.
I am not able to get Login prompt or
normal GUI login window.

with vncviewer I tried 192.168.10.1:50/51/52/60/61/62
with all same result.

Please Note that if I undo all the changes and
get back GUI at Console logged in as a user, run
vncserver at shell prompt and try to connect from
same xp machine I am able to get kde desktop in
vncviewer of-course I have modified .vnc/xstartup file
and added "startkde &" at end. This setting is
common in both setups. in later case also I am not
able to get login prompt but I feel its normal.

Can Somebody help me in this Regard.

Thanks.

Best Regards

R. S. Patil


================ Details Are As Follows ================

1)--------------------------------------------------------------------------
-----------
edited /etc/services and at end added
vnc640x8        5950/tcp        # Small
vnc800x8        5951/tcp        # Medium
vnc1024x8       5952/tcp        # Large
vnc640x16       5960/tcp        # Small
vnc800x16       5961/tcp        # Medium
vnc1024x16      5962/tcp        # Large

2)--------------------------------------------------------------------------
-----------
edited /etc/inetd.conf and added at end
(each line is broken for e-mail purpose)

vnc640x8   stream tcp nowait nobody /usr/bin/Xvnc
   :50 -inetd -once -query localhost -geometry  640x480
   -depth  8  securitytypes=none
vnc800x8   stream tcp nowait nobody /usr/bin/Xvnc
   :51 -inetd -once -query localhost -geometry  800x600
   -depth  8  passwordFile=/home/rsp/.vnc/passwd
vnc1024x8  stream tcp nowait nobody /usr/bin/Xvnc
   :52 -inetd -once -query localhost -geometry 1024x768
   -depth  8  passwordFile=/home/rsp/.vnc/passwd
vnc640x16  stream tcp nowait nobody /usr/bin/Xvnc
   :60 -inetd -once -query localhost -geometry  640x480
   -depth 16  passwordFile=/home/rsp/.vnc/passwd
vnc800x16  stream tcp nowait nobody /usr/bin/Xvnc
   :61 -inetd -once -query localhost -geometry  800x600
   -depth 16  passwordFile=/home/rsp/.vnc/passwd
vnc1024x16 stream tcp nowait nobody /usr/bin/Xvnc
   :62 -inetd -once -query localhost -geometry 1024x768
   -depth 16  passwordFile=/home/rsp/.vnc/passwd
# End.

3)--------------------------------------------------------------------------
-----------
Created a new file called vncserver in /etc/xinetd.d
(additional work than suggested but gave me result of
atleast connecting)
service vnc640x8
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = :50 -inetd -query localhost -once
        -geometry 640x480 -depth  8 securitytypes=none
}

service vnc800x8
{
        socket_type     = stream
        protocol        = tcp

        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = :51 -inetd -query localhost -once
        -geometry 800x600 -depth  8 securitytypes=none
}

service vnc1024x8
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = :52 -inetd -query localhost -once
        -geometry 1024x768 -depth  8 securitytypes=none
}

service vnc640x16
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = :60 -inetd -query localhost -once
        -geometry 640x480 -depth 16 securitytypes=none
}

service vnc800x16
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = :61 -inetd -query localhost -once
        -geometry 800x600 -depth 16 securitytypes=none
}

service vnc1024x16
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = :62 -inetd -query localhost -once
        -geometry 1024x768 -depth 16 securitytypes=none
}

4)--------------------------------------------------------------------------
-----------
In Yast2-.>System->Sysconfig Editor
changed DISPLAYMANAGER_REMOTE_ACCESS to yes
changed DISPLAYMANAGER_STARTS_XSERVER to no
changed KDM_SHUTDOWN to root
changed KDM_GREETSTRING to "welcome To VNC Server"
then saved the changes

5)--------------------------------------------------------------------------
-----------
Edited /etc/X11/xdm/xdm-config
commented "! DisplayManager.requestPort: 0"
edited /etc/X11/xdm/Xaccess
uncommented *  #any host can get a login window

***** Could not find and do following ******
3) edit 'kdmrc' and enable XDMCP on port 177 (if kde is new enough)
          a) RedHat 7.2 - '/etc/kde/kdm/kdmrc'
          b) If running Gnome as your desktop,
             start gdmconfig, select Expert Mode,
             ensure that Enable XDMCP is checked.
             (You must be logged in as root)

Rebooted the system

6)--------------------------------------------------------------------------
-----------

1) I am able to Ping the Linux Box.
2) I can Telnet Linux Box and Run Commands
3) lsof Command Gives Following Command

# lsof -i -n -P | grep -v 127.0.0.1

COMMAND    PID   USER   FD   TYPE DEVICE SIZE NODE NAME

portmap    656    bin    3u  IPv4   1204       UDP *:111
portmap    656    bin    4u  IPv4   1294       TCP *:111 (LISTEN)
nmbd       703   root    6u  IPv4   1306       UDP *:137
nmbd       703   root    7u  IPv4   1307       UDP *:138
nmbd       703   root    8u  IPv4   1309       UDP 192.168.10.1:137
nmbd       703   root    9u  IPv4   1310       UDP 192.168.10.1:138
ibserver   730   root    0u  IPv4   1580       TCP *:3050 (LISTEN)
ibserver   781   root    0u  IPv4   1580       TCP *:3050 (LISTEN)
sshd       831   root    3u  IPv6   1625       TCP *:22 (LISTEN)
xinetd    1096   root    5u  IPv4   3555       TCP *:901 (LISTEN)
xinetd    1096   root    8u  IPv4   3558       TCP *:9098 (LISTEN)
xinetd    1096   root    9u  IPv4   3559       TCP *:23 (LISTEN)

*************** It seems Xvnc is Running ***************

xinetd    1096   root   10u  IPv4   3560       TCP *:5950 (LISTEN)
xinetd    1096   root   11u  IPv4   3561       TCP *:5951 (LISTEN)
xinetd    1096   root   12u  IPv4   3562       TCP *:5952 (LISTEN)
xinetd    1096   root   13u  IPv4   3563       TCP *:5960 (LISTEN)
xinetd    1096   root   14u  IPv4   3564       TCP *:5961 (LISTEN)
xinetd    1096   root   15u  IPv4   3565       TCP *:5962 (LISTEN)

*************** It seems Xvnc is Running ***************

xinetd    1096   root   16u  IPv4   3566       TCP *:21 (LISTEN)
smbd      1097   root    9u  IPv4   3548       TCP *:139 (LISTEN)
httpd     1130   root   16u  IPv4   4441       TCP *:80 (LISTEN)
httpd     1149 wwwrun   16u  IPv4   4441       TCP *:80 (LISTEN)
in.telnet 1229   root    0u  IPv4  11340       TCP
192.168.10.1:23->192.168.10.248:1625 (ESTABLISHED)
in.telnet 1229   root    1u  IPv4  11340       TCP
192.168.10.1:23->192.168.10.248:1625 (ESTABLISHED)
in.telnet 1229   root    2u  IPv4  11340       TCP
192.168.10.1:23->192.168.10.248:1625 (ESTABLISHED)