Solved

VNCServer on Linux

Posted on 2009-04-14
12
757 Views
Last Modified: 2013-12-06
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
Comment
Question by:MardukLitzer
  • 7
  • 5
12 Comments
 
LVL 19

Expert Comment

by:jools
Comment Utility
you also need to have X installed.

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

0
 
LVL 2

Author Comment

by:MardukLitzer
Comment Utility
But I do have X and Gnome and KDE.... I am able to startx from the console and the GUI comes up....
0
 
LVL 19

Expert Comment

by:jools
Comment Utility
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
 
LVL 2

Author Comment

by:MardukLitzer
Comment Utility
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
 
LVL 19

Accepted Solution

by:
jools earned 500 total points
Comment Utility
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
 
LVL 2

Author Comment

by:MardukLitzer
Comment Utility
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
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!

 
LVL 19

Expert Comment

by:jools
Comment Utility
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
 
LVL 19

Expert Comment

by:jools
Comment Utility
Don't forget the :2 !!!!


or in your case :1 :-)
0
 
LVL 2

Author Comment

by:MardukLitzer
Comment Utility
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
 
LVL 19

Expert Comment

by:jools
Comment Utility
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
 
LVL 2

Author Closing Comment

by:MardukLitzer
Comment Utility
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
 
LVL 19

Expert Comment

by:jools
Comment Utility
> When you say ssh -X do you mean tunneling X through SSH?

I certainly do...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Haven’t we all been there – Mom (or Grandma) needs help on her computer, so calls her IT son (or grandson) for help.  Wouldn’t it be so much easier to just remotely connect to her computer and fix the thing rather than trying to go through it on the…
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

14 Experts available now in Live!

Get 1:1 Help Now