[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 772
  • Last Modified:

VNCServer on Linux

I have installed VNCServer using the rpm for i386 from the VNC site. When I attempt to run by typing "vncserver" I get the error below. I have tried running it as non-root with no luck. One thing I had read is that VNC is compiled to work with XFree86 and FC10 runs Xorg. I know the directories it's looking for are not there, and I have pulled a find / -name SecurityPolicy and it is not on my system. XFS is running and I've installed everything related to xorg using 'yum'. Any help would be appreciated!

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'

Xvnc Free Edition 4.1.3 - built Oct 15 2008 12:55:42
Copyright (C) 2002-2008 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc


Tue Apr 14 19:37:00 2009
 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/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!

Fatal server error:
could not open default font 'fixed'
xsetroot:  unable to open display 'LOG:1'
twm:  unable to open display "LOG: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
vncconfig: unable to open display "LOG:1"
0
MardukLitzer
Asked:
MardukLitzer
  • 7
  • 5
1 Solution
 
joolsCommented:
you also need to have X installed.

install gnome of summat and it should fire up.
   yum install gnome-desktop

0
 
MardukLitzerAuthor Commented:
But I do have X and Gnome and KDE.... I am able to startx from the console and the GUI comes up....
0
 
joolsCommented:
SecurityPolicy is part of xorg-x11-server, see below;



# locate SecurityPolicy
/usr/lib/xserver/SecurityPolicy
[root@uktechnotes ~]# rpm -qvilf /usr/lib/xserver/SecurityPolicy
Name        : xorg-x11-server-Xorg         Relocations: (not relocatable)
Version     : 1.1.1                             Vendor: CentOS
Release     : 48.52.el5                     Build Date: Wed 21 Jan 2009 09:21:44 AM GMT
Install Date: Wed 08 Apr 2009 02:02:00 PM BST      Build Host: builder16.centos.org
Group       : User Interface/X              Source RPM: xorg-x11-server-1.1.1-48.52.el5.src.rpm
Size        : 8559820                          License: MIT/X11
Signature   : DSA/SHA1, Mon 09 Mar 2009 01:49:26 AM GMT, Key ID a8a447dce8562897
URL         : http://www.x.org
Summary     : Xorg X server
Description :
X.org X11 is an open source implementation of the X Window System.  It
provides the basic low level functionality which full fledged
graphical user interfaces (GUIs) such as GNOME and KDE are designed
upon.

Open in new window

0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
MardukLitzerAuthor Commented:
Seems I've already got it installed... I did an 'updatedb' and locate SecurityPolicy and still nothing found. See the output of 'yum list xorg*' in the attached file... Any ideas?
yumlist
0
 
joolsCommented:
Verify the package;
   rpm -V xorg-x11-server-Xorg

....have you tried the vncserver that comes with Fedora? The one you downloaded may have some requirements that do not exist in FC10. You may need to remove the other VNC package first.

   yum install vnc-server
0
 
MardukLitzerAuthor Commented:
Ok, so it didn't return anything on the verify... I did however remove the vncserver I had installed via RPM and did the 'yum install vnc-server' and it applied the update.. Seems like the i386 VNC I was trying was having all the problems... See below for output, there are no errors now but I am unable to connect via VNC Viewer to from an XP workstation.... I have the same version of the client installed on my workstation.... Any ideas? I do see the two ports listening when I do a netstat -al

[root@LOG ~]# cat /root/.vnc/LOG:1.log

Xvnc Free Edition 4.1.3
Copyright (C) 2002-2008 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 10503000,


Wed Apr 15 13:13:39 2009
 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
0
 
joolsCommented:
Some example stuff!

Edit the config file.
   vi /etc/sysconfig/vncservers
   VNCSERVERS="1:root 2:me"

   service vncserver restart

You should see the ports open 5801 5802 5901 5902

if you login as "me"
   su - me
   vncpasswd

then connect using the vnc client to your server IP:2
eg/
   vncclient 192.168.0.100:2


0
 
joolsCommented:
Don't forget the :2 !!!!


or in your case :1 :-)
0
 
MardukLitzerAuthor Commented:
Seems like this did it! One last question, how can I resize the window, so that on my client when I resize the VNCViewer window I can also resize the linux desktop resolution? Also, I notice that when I select gnome as the window gui a lot of things don't work via the vnc, like desktop settings window etc...
0
 
joolsCommented:
those settings may be configurable under the client you use. I normally just maximise the VNC window.

what do you mean by "didnt work"??

You may need to check the options for your .vnc file in the home directory for some options to look prettier, the default window manager used to be twm (I think) for vnc.... I've not used vnc for ages now, I prefer to ssh -X and use a local X server like xming or similar.
0
 
MardukLitzerAuthor Commented:
When you say ssh -X do you mean tunneling X through SSH? Is it like sitting at the console? When I mean didn't work, like the display settings window, etc... I rebooted the box and it seems better but not perfect. That is the least of my worries for now, thanks for all your help!
0
 
joolsCommented:
> When you say ssh -X do you mean tunneling X through SSH?

I certainly do...
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now