1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't log in via VNC?

Discussion in 'Linux - General discussion' started by sandisk, Nov 21, 2007.

  1. sandisk

    sandisk Regular member

    Joined:
    Jun 27, 2005
    Messages:
    733
    Likes Received:
    0
    Trophy Points:
    26
    Hey guy's :)

    I can't log into my fedora server via vnc, anyone got suggestions on this ?

    So from past experience I typed vncserver :1

    It said something like "starting application specified in root/ .vnc/ xstartup
    log file is /root/.vnc/servermyname.com:1.log"

    so I thought great, opened up tightvnc and put in the ip address:1

    But now it says can't connect to server....I've tried lots of different things but can't connect.

    I mailed the guy and he said he can't help, that it was to do with vnc and not his server.

    any suggestions on this guy's?


    EDIT:

    I logged in via Winscp and here's what the log said :

    Couldn't open RGB_DB '/usr/share/X11/rgb'

    Xvnc Free Edition 4.1.1
    Copyright (C) 2002-2005 RealVNC Ltd.
    See http://www.realvnc.com for information on VNC.
    Underlying X server release 70000000, The X.Org Foundation


    Wed Nov 21 05:37:30 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/lib/xserver/SecurityPolicy
    Could not init font path element /usr/share/X11/fonts/misc/, removing from list!
    Could not init font path element /usr/share/X11/fonts/TTF/, removing from list!
    Could not init font path element /usr/share/X11/fonts/OTF, removing from list!
    Could not init font path element /usr/share/X11/fonts/Type1/, removing from list!
    Could not init font path element /usr/share/X11/fonts/CID/, removing from list!
    Could not init font path element /usr/share/X11/fonts/100dpi/, removing from list!
    Could not init font path element /usr/share/X11/fonts/75dpi/, removing from list!

    Fatal server error:
    could not open default font 'fixed'
    /root/.vnc/xstartup: line 9: xsetroot: command not found
    /root/.vnc/xstartup: line 12: twm: command not found
    vncconfig: unable to open display "server.myname.com:1"
    Warning: This program is an suid-root program or is being run by the root user.
    The full text of the error or warning message cannot be safely formatted
    in this environment. You may get a more descriptive message by running the
    program as a non-root user or by removing the suid bit on the executable.
    xterm Xt error: Can't open display: %s




    Also when I was running vnc first on my server, it wouldn't rum at all, it said something like "Xauth" not found can't run vnc. So I installed Xauth via yum -y. I don't even know what Xauth is :-\
     
  2. slugfuk

    slugfuk Guest

    You are trying to login as root, which the server security policy will not allow. It looks like vncserver is working on the server end so you need to login as <user>@<ip>:1 .. and then depending on how it is set up it should ask you for a password.

    I ran it on my webserver until it just stopped working.. something went corrupt somewhere. Hope you have ftp or ssh access as well.
     
    Last edited by a moderator: Nov 21, 2007

Share This Page