LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   General Question about source code (https://www.linuxquestions.org/questions/linux-newbie-8/general-question-about-source-code-720727/)

nataloi 04-21-2009 01:52 PM

General Question about source code
 
I am trying to get realvnc server working on my linux fedora 9 server- however I keep running into stumbling blocks...I think I have an issue with my xserver...

I found this package....Do I need to complile this? if so how do I go about doing it - I can't find anything that tells me how to go about compiling it...

[root@nagios pam.d]# yum install xorg-x11-server-source.i386
Loaded plugins: refresh-packagekit
updates-newkey | 2.3 kB 00:00
fedora | 2.4 kB 00:00
updates | 2.6 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-server-source.i386 0:1.5.2-6.fc9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
xorg-x11-server-source i386 1.5.2-6.fc9 updates-newkey 4.6 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 4.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): xorg-x11-server-source-1.5.2-6.fc9.i386.rpm | 4.6 MB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: xorg-x11-server-source ######################### [1/1]

Installed: xorg-x11-server-source.i386 0:1.5.2-6.fc9
Complete!
[naloi@nagios .vnc]$ vncserver -kill :1
Killing Xvnc process ID 9684
kill 9684: No such process
[naloi@nagios .vnc]$ cd /home/naloi/.vnc
[naloi@nagios .vnc]$ vncserver :1

New 'nagios.experis.com:1 (naloi)' desktop is nagios.experis.com:1

Starting applications specified in /home/naloi/.vnc/xstartup
Log file is /home/naloi/.vnc/nagios.experis.com:1.log

[naloi@nagios .vnc]$ telnet localhost 5901
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

[naloi@nagios .vnc]$ more nagios.experis.com:1.log
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 21 14:47:39 2009
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
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 l
ist!
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 li
st!
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'
xrdb: Connection refused
xrdb: Can't open display 'nagios.experis.com:1'
xmodmap: unable to open display 'nagios.experis.com:1'

(imsettings-start:11266): IMSettings-WARNING **: Failed to invoke a method `Star
tIM':
Launch helper exited with unknown return code 1
Failed to start IM process `none'

(gnome-session:11275): Gtk-WARNING **: cannot open display: nagios.experis.com:1
[naloi@nagios .vnc]$

jf.argentino 04-21-2009 02:41 PM

Gosh!!! The last time I've compiled the X server, I just break my system... OK it was a long time ago, and I was I newby who play the cowboy but, I really don't think you need to compile X server by yourself to make VNC work...
By the way, you have a FEDORA repository to help you for VLC: poptop

nataloi 04-21-2009 02:59 PM

Thanks jf.argentino....ok so I did manually start xfs and that is running...
[root@nagios .vnc]# ps -ef | grep xfs
xfs 11718 1 0 14:55 ? 00:00:00 xfs -droppriv -daemon
root 14596 12881 0 15:56 pts/0 00:00:00 grep xfs

[root@nagios .vnc]# ps -ef | grep xfs
xfs 11718 1 0 14:55 ? 00:00:00 xfs -droppriv -daemon
root 14596 12881 0 15:56 pts/0 00:00:00 grep xfs

[root@nagios .vnc]# ps -ef | grep vncserver
root 14624 12881 0 15:57 pts/0 00:00:00 grep vncserver

[root@nagios .vnc]# ps -ef | grep vnc
root 14630 12881 0 15:57 pts/0 00:00:00 grep vnc


but I don't understand these errors in my log file: I would hope I don't have to compile code...but I have been trying to get this to run for several days now and I am very frustrated...

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 l
ist!
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 li
st!
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'
xrdb: Connection refused
xrdb: Can't open display 'nagios.experis.com:1'
xmodmap: unable to open display 'nagios.experis.com:1'

(imsettings-start:11266): IMSettings-WARNING **: Failed to invoke a method `Star
tIM':
Launch helper exited with unknown return code 1
Failed to start IM process `none'

lazlow 04-21-2009 03:31 PM

Any particular reason you are not just running the VNC-server from the standard repos? It will work fine to connect with realvnc on the other end(probably from a windows machine).

nataloi 04-22-2009 07:52 AM

hey lazlow - thanks for the response...but I think I am running it from the standard distribution but at every turn I have been having problems. The thing is that I didn't install anything on this box and the person who did is not available to me as a resource, so in trying to get this to work I have found many packages to have not been loaded or updated. Do any of those error messages make any sense to you...

these are from the log file: (see first post for entire log file output)

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 l
ist!
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 li
st!
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'
xrdb: Connection refused
xrdb: Can't open display 'nagios.experis.com:1'
xmodmap: unable to open display 'nagios.experis.com:1'

(imsettings-start:11266): IMSettings-WARNING **: Failed to invoke a method `Star
tIM':
Launch helper exited with unknown return code 1
Failed to start IM process `none'
Yesterday 03:41 PM

if so,what direction do you think I should go...right now I am fiddling around with tightvnc to see if I can get that to work instead...but would love to just figure out why this isn't working.

nataloi 04-22-2009 10:00 AM

it's working!
 
Its working! I am not sure what I did, but I can run the viewer on my windows machine and get my desktop...hmmm now if only I can figure out what I did to get it to work!

[root@nagios init.d]# service vncserver status
Xvnc (pid 15503) is running...
[root@nagios init.d]#
[naloi@nagios .vnc]$ telnet localhost 5901
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
RFB 003.008
q
exit
q!
Connection closed by foreign host.
[naloi@nagios .vnc]$


All times are GMT -5. The time now is 07:10 PM.