View previous topic :: View next topic |
Author |
Message |
drivetheory n00b
Joined: 25 Sep 2006 Posts: 5 Location: Florida - USA
|
Posted: Mon Sep 25, 2006 5:04 am Post subject: RealVNC / vncserver ERROR!!! |
|
|
I'm a linux noob, but know winblows for a living so i can be taught!!! Unfortunately I've googled till my fingers became stiff and tried the ##Gentoo channel on IRC till they told me to stop asking and yet im still without any answers...
This is my problem:
Code: | mobile-slave ~ # vncserver
VNC Server Enterprise Edition E4.2.6 - built Jul 27 2006 10:19:03
Copyright (C) 2002-2006 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
Xvnc Enterprise Edition E4.2.6 - built Jul 27 2006 10:19:13
Copyright (C) 2002-2006 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc
Sun Sep 24 13:01:10 2006
vncext: VNC extension running!
vncext: created VNC server for screen 0
TcpListener: listening on IPv4, port 5901
TcpListener: listening on IPv4, port 5801
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' |
I'm at a complete loss!
Any and ALL help would be truly appreciated.
Just please take it slow and step by step, linux/unix is still VERY new to me, but, nonethe less i still managed to install Gentoo including all the drivers and such.
Also, FYI, im tryign to install RealVNC Ent. Ed. cause it's what we use at work. I've VNC'd in using the KDE "Desktop Sharing" method but it's very buggy (characters repeat for no reason, sluggish refresh rate, unreliable connections across 100MB LAN w/ barely any other LAN traffic, and other such strange anomalies.
There was a previous thread for this same error but it got abandoned.
Please, please, please help!
After all, i can't migrate from windows to linux if i can't get linux to completely replicate the functionality of my windows box for all practical purposes. |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Mon Sep 25, 2006 5:59 am Post subject: |
|
|
I use x11-misc/x11vnc. No such problems there.
For your problem, check the config, as the fonts get installed in other directories under xorg (/usr/share/fonts/). _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
drivetheory n00b
Joined: 25 Sep 2006 Posts: 5 Location: Florida - USA
|
Posted: Mon Sep 25, 2006 8:31 pm Post subject: More Info |
|
|
MORE INFO:
http://www.realvnc.com/products/enterprise/4.2/x0.html
relevant contents of my "/etc/make.conf" file:
relevant contents of my "/etc/services" file:
Code: | vnc-1440x900x24 5900/tcp |
relevant contents of my "/etc/xinetd.d/xvncserver" file:
Code: | service vnc-1440x900x24
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :69 -inetd -query localhost -once -geometry 1440x900 -depth 24 -SecurityTypes=None
} |
relevant contents of my "/etc/X11/xorg.conf" file:
Code: | Section "Module"
# <ALL THE OTHER SECTIONS & STUFF>
# Configuration of VNC Server
Subsection "vnc"
Option "Desktop" "DriveTheory's Gentoo Box"
Option "IdleTimeout" "600"
Option "Depth" "24"
Option "Geometry" "1440x900"
Option "AllowedUsers" "drivetheory:f"
Option "Inetd"
EndSubSection
EndSection |
Code: | Section "Files"
# Font locations added by me & installing fonts
FontPath "/usr/share/fonts/default/ghostscript/"
FontPath "/usr/share/fonts/ttf-bitstream-vera/"
FontPath "/usr/share/fonts/cyrillic/"
FontPath "/usr/share/fonts/corefonts/"
FontPath "/usr/share/fonts/freefont/"
FontPath "/usr/share/fonts/sharefonts/"
FontPath "/usr/share/fonts/terminus/"
FontPath "/usr/share/fonts/unifont/"
FontPath "/usr/share/fonts/dejavu/"
# Font paths added by gentoo
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
# FontPath "/usr/share/fonts/TTF/" #<-- not in /usr/lib/X11 or /usr/share/fonts
FontPath "/usr/share/fonts/Type1/"
# FontPath "/usr/lib/X11/fonts/local/" #<-- not in /usr/lib/X11 or /usr/share/fonts
# FontPath "/usr/lib/X11/fonts/75dpi/:unscaled" #<-- not in /usr/lib/X11 or /usr/share/fonts
# FontPath "/usr/lib/X11/fonts/100dpi/:unscaled" #<-- not in /usr/lib/X11 or /usr/share/fonts
# FontPath "/usr/lib/X11/fonts/Speedo/" #<-- not in /usr/lib/X11 or /usr/share/fonts
# FontPath "/usr/lib/X11/fonts/TrueType/" #<-- not in /usr/lib/X11 or /usr/share/fonts
EndSection |
the pages i have used as a reference:
http://www.realvnc.com/products/enterprise/4.2/man/vncserver.html - vncserver manual page
http://www.realvnc.com/products/enterprise/4.2/man/vncconfig.html - vncconfig manual page
http://www.realvnc.com/products/enterprise/4.2/man/Xvnc.html - Xvnc manual page
http://gentoo-wiki.com/HOWTO_Xvnc_terminal_server - HOWTO Xvnc terminal server
Contents of the "/etc/vnc/config" file:
Code: | # Default vncserver configuration. See the vncserver man page for details.
-PasswordFile $HOME/.vnc/passwd # Location of VncAuth password
-desktop "$HOSTNAME:$DISPLAYNUM ($USER)" # Desktop name
-pn # Continue even if standard ports fail
-httpd <inline> # Serve Java viewer inline |
X11vnc runs, but, it still displays the same quirky behavior as Desktop Sharing, and is incompatible with laptop power schemes (if the power setting is to turn the screen off after 10 mins, my VNC connection goes blank, if i move the mouse, my VNC screen shows desktop then 1-2 seconds later goes blank again).
IF anyone else has any ideas please do tell, and IF you recommend configuring XYZ file please include "/PATH/FILENAME" & what code to enter in proper syntax
Do I need to add / include anything in any other files?
THANKS! |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Tue Sep 26, 2006 5:40 am Post subject: |
|
|
Quote: | (gentoo-wiki)
Preinstall
Enable the useflag "server" in /etc/make.conf. Amd64 users should use realvnc instead of tightvnc for now.
You may find that you need to make a link to the fonts directory in order for the Xvnc server to work (This will also work for realvnc):
ln -s /usr/share/fonts/ /usr/lib/X11/fonts
|
AFAIK you dont need an entry in xorg.conf. At least I dont have one here
Have you tried one of the "more standard" resolutions like 1024x768, 1280x1024, 1600x1200? That may not fit exactly to your screen, but these resolutions are standardized.
Quote: |
server_args = :69
...
vnc-1440x900x24 5900/tcp
|
This does not match! You define display :69 and have to use the according port 5969/tcp IIRC. _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
drivetheory n00b
Joined: 25 Sep 2006 Posts: 5 Location: Florida - USA
|
Posted: Wed Sep 27, 2006 11:57 pm Post subject: |
|
|
the :69 was a guess, i figured it should be :00 or something like that, but using :00 just seemed stange (me being a linux n00b and all)
also, i have already ran the command "ln -s /usr/share/fonts/ /usr/lib/X11/fonts" in the beginning, but it has made no difference, along with other things mentioned on the wiki page u/i specified.
as well, this install of Gentoo is on a laptop, that's my current screen resolution, desktop sharing works in that resolution, Xvnc works in that resolution.
and lastly, the settings in xorg.conf i got from the page http://www.realvnc.com/products/enterprise/4.2/x0.html
none the less it all still doesn't account for that first error:
Code: | Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb' |
|
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Thu Sep 28, 2006 8:30 am Post subject: |
|
|
The port :0 is blocked by your local X server.
for vnc to connect to your current running desktop you have to specify display :0 (or port 5900 AFAIK)
If you want VNC to create a new display independent of the running X server you HAVE to specify another display and port. You can use display :69 as is usually unused. AFAIK the according port to connect over the network is 5969.
/usr/X11R6/lib/X11/rgb.txt is installed on my system (most likely during emerge realvnc, but I dont know as I did this quite some time ago ). xorg has another location for rgb.txt. If you dont have it, link the xorg version to the needed place. _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
drivetheory n00b
Joined: 25 Sep 2006 Posts: 5 Location: Florida - USA
|
Posted: Fri Sep 29, 2006 10:32 pm Post subject: |
|
|
<-- n00b is quite frustrated but relentless in his pursuit of understanding the penguin
ok, here we go:
I am trying to connect to the :0 session
I have set the port to 5900
reinstallation of RealVNC Ent. Ed responded with XYZ files haven't changed
"emerge -u vnc" responded with no outdated packages found
/usr/X11R6/lib/X11/rgb.txt -OR- /usr/X11R6/lib/X11/rgb still don't exist
vncserver still yields the same results...
what do you get when you "equery b /usr/whatever/rgb.txt" ???
also, do you have the fonts listed that i am missing? how did you get them? |
|
Back to top |
|
|
drivetheory n00b
Joined: 25 Sep 2006 Posts: 5 Location: Florida - USA
|
Posted: Wed Oct 04, 2006 7:53 am Post subject: Fixed! |
|
|
I believe i fixed the problem by emerging 'net-libs/libvncserver' |
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Mon Oct 09, 2006 11:40 pm Post subject: |
|
|
Fonts are now in /usr/share/fonts/...
ls: /usr/X11R6/lib/X11/fonts/: No such file or directory
I think the /usr/bin/vncserver variants don't use xorg.conf, but have their paths hardcoded. So you must change the vncserver scripts or make compatibility links...
Emerging libvncserver fixing it would surprise me, but if it does, good... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|