PDA

View Full Version : VNC Server Problem


osfdeath
2004-04-10, 09:21 AM CDT
Reviving this :)

I have a fedora server to which I can only SSH
I've attempted to run vncserver :0
It appears to be running and I attempt to connect from my home (windows) machine but get the "Can't connect" box every time.
I FTP to the server to have a look at the logs and setup:
xstartup

#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

Here is what the log says:

10/04/04 10:16:19 Xvnc version 3.3.7 - built Feb 28 2003 18:27:24
10/04/04 10:16:19 Copyright (C) 2002-2003 RealVNC Ltd.
10/04/04 10:16:19 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
10/04/04 10:16:19 All Rights Reserved.
10/04/04 10:16:19 See http://www.realvnc.com for information on VNC
10/04/04 10:16:19 Desktop name 'X' (host.domain.com:0)
10/04/04 10:16:19 Protocol version supported 3.3
10/04/04 10:16:19 Listening for VNC connections on TCP port 5900
10/04/04 10:16:19 Listening for HTTP connections on TCP port 5800
10/04/04 10:16:19 URL http://host.domain.com:5800
Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring

Fatal server error:
could not open default font 'fixed'
/root/.vnc/xstartup: line 3: xrdb: command not found
/root/.vnc/xstartup: line 4: xsetroot: command not found
/root/.vnc/xstartup: line 5: xterm: command not found
/root/.vnc/xstartup: line 6: twm: command not found


Ideas on how I can fix this?
Yes I'm new to linux and fedora

crackers
2004-04-10, 09:57 AM CDT
Rule #1: don't run stuff as the root user. This can bite you in the rear when you don't know what you're doing and especially when you're just starting out. Create a "normal" user for your daily operations.

As for your VNC problem, it kind of sounds like you don't have "X" installed. Do you have a GUI when you sit down in front of the Fedora box and it's finished booting? The reason I say this is because xsetroot and xterm are part of the basic XFree86 installation.

osfdeath
2004-04-10, 11:09 AM CDT
Only running it as root to get it working
(I won't be running it all the time either - only when I want to connect)

I never sit in front of the box - it's a rented webserver in a datacenter so I don't know about the GUI
Can you provide more info about how to get this working via SSH?
I have no idea about paths and so on for fedora or X

crackers
2004-04-10, 02:06 PM CDT
Originally posted by osfdeath
I never sit in front of the box - it's a rented webserver in a datacenter so I don't know about the GUI

In that case, there's no way you can run VNC. Server setups like that typically don't have X installed. The only way "in" is via SSH.

Ug
2004-04-10, 02:36 PM CDT
I've split this thread and moved it to the server forum.

osfdeath
2004-04-10, 05:39 PM CDT
Thanks UG - should have started a new topic

@crackers
I know others using fedora have done it
There is something installed (X) - I just don't know what it is, how to use it or how to access it :)
I do know another guy in the same data center has it set up and I attempted to work with him to set mine up but couldn't manage to get it working....

crackers
2004-04-10, 08:45 PM CDT
The only thing I can suggest that, if you're renting this server, then you should be talking to the support people at the hosting center. That's their job: to help you. Tell them exactly what you want to do and they should help, if what you're doing is within their policy guidelines.

osfdeath
2004-04-11, 06:33 AM CDT
They won't support 3rd party software on the machines
Already asked them :)

osfdeath
2004-04-20, 08:19 PM CDT
Found the problem to be that there is no desktop running
(Figured it out by installing fedora on my own box - very nice!)

Now to learn how to run all the servers without cpanel lol