Redhat Linux Enterprise unable to access via Remote Desktop but can ping, SSH etc.

Posted on 2007-10-17
Last Modified: 2013-12-15
We have a Redhat Enterprise Linux server (v4) that cannot be accesses using Remote Desktop (using Tight or Real VNC).

On the server I have configured the Remote Desktop password and No Confirmation required for remote desktop. The server Firewall is disabled. The server can be ping'd and can ping out (can also SSh in/out).

Any suggestions where I should start troubleshooting? Pls also help provide the Linux commands as I am a Linux novice (know grep, ps, reboot commands etc). Many thanks.
Question by:mactus
    LVL 13

    Accepted Solution

    To be able to access the "desktop" you will have to have the VNC server running.

    When you start the VNC server (vncserver is the command) it will tell you which display it is attached to.  If it says :0 then the port to connect would be 5900, however if it says :1 or :2 or anything other than :0 you will need to increment the port number accordingly.

    :0 = 5900
    :1 = 5901
    :2 = 5902

    so on and so on.

    If you run vncserver and it gives you an error when ran this is your problem.

    Also everytime that you run vncserver you will find it increments the port number.  

    And, which ever user you want it to log in as is who you need to run vncserver as, so if you want to run it as "user1" login as that user and type vncserver, check the display and connect via vnc to the relevant port.

    Author Comment

    Hi thanks. I logged in via SSH and run vncserver, I also did a port scan (via Internet) to confirm the port can be seen from external network. But when I run VNC viewer, it is unable to connect (on all ports :5900 , :5901, :5902 etc) .

    Is there any other steps for me to try? Pls also refer to log below.

    [root@webserver .vnc]# cat webserver:1.log
    _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
    _XSERVTransOpen: transport open failed for inet6/webserver:1
    _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

    Xvnc version 4.0 - built Nov 24 2004 16:08:56
    Underlying X server release 60801000, The X.Org Foundation

    Thu Oct 18 09:41:18 2007
     vncext:      VNC extension running!
     vncext:      Listening for VNC connections on port 5901
     vncext:      Listening for HTTP connections on port 5801
     vncext:      created VNC server for screen 0
    error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
    Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from li                       st!
    Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li                       st!
    [root@webserver .vnc]#
    [root@webserver .vnc]# ps
      PID TTY          TIME CMD
     9048 pts/1    00:00:00 bash
     9088 pts/1    00:00:00 Xvnc
     9094 pts/1    00:00:00 vncconfig
     9095 pts/1    00:00:00 xterm
     9096 pts/1    00:00:00 twm
     9135 pts/1    00:00:00 ps
    [root@webserver .vnc]#
    LVL 1

    Assisted Solution

    Hi, have you enabled x11 forwarding? Perform  gdmsetup --> security --> uncheck deny tcp conncetion  and then try..

    One more thing , in main menu in preferences, find and activate remote desktop tab..

    LVL 3

    Expert Comment

    How do I fix the gdmsetup instructions when I do not have access to the GUI. (Trying to set up a vncserver so that I can get X11 from a remote box) So until it starts working, i have to use putty or ssh.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now