Ah, do you want to take over your existing desktop? You will need to modify your xorg.conf file
in the "Module" section you will want to load VNC, like so:
Code:
Section "Module"
Load "type1"
Load "dbe"
Load "freetype"
Load "glx"
Load "v4l"
Load "extmod"
Load "vnc"
EndSection
and specify VNC as an input device, like so:
Code:
Section "InputDevice"
Driver "rfbkeyb"
Identifier "Keyboard[2]"
Option "InputFashion" "VNC"
EndSection
Section "InputDevice"
Driver "rfbmouse"
Identifier "Mouse[3]"
Option "InputFashion" "VNC"
EndSection
and then you want to tell VNC and your video device driver to bind together:
Code:
Section "Device"
BoardName "R200 BB"
BusID "1:0:0"
Driver "radeon"
Identifier "Device[0]"
Option "alwaysshared"
Option "usevnc" "yes"
Option "httpdir" "/usr/share/vnc/classes"
Option "httpport" "5800"
VendorName "ATI"
EndSection
and add it to your server layout (your xorg.conf will differ, I'm running a dual-head system so my xorg.conf has a lot of extra settings in it):
Code:
Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
InputDevice "Keyboard[2]" "ExtraKeyboard"
InputDevice "Mouse[3]" "ExtraPointer"
Option "Clone" "off"
Option "VNC" "3 2"
Option "Xinerama" "on"
Screen "Screen[0]"
Screen "Screen[1]" RightOf "Screen[0]"
EndSection
If you do that you will then be able to remotely log into your computer using a web browser, so that if your hostname is foo.com you can connect by:
http://foo.com:5800/ (to attach to current sessions on screen 0)
http://foo.com:5801/ (to start new sessions)
This will enable you to access your desktop/machine from any web browser with the Java plugin.
By going the core/xorg.conf route VNC will always be enabled in X. But there's another component you need to enable: VNC needs to be listening for requests. For that you want to enable it in inet.d/xinet.d
/etc/xinetd.d/vnc contents:
Code:
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
# prompt. This VNC connection has a resolution of 1024x768, 16bit depth.
service vnc1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/Xvnc
server_args = :42 -inetd -once -query localhost -geometry 1024x768 -depth 16
type = UNLISTED
port = 5901
}
# default: off
# description: This serves out the vncviewer Java applet for the VNC \
# server running on port 5901, (vnc port 1).
service vnchttpd1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/vnc_inetd_httpd
server_args = 1024 768 5901
type = UNLISTED
port = 5801
}
I think I'm forgetting something - perhaps someone can fill in the difference, it's not coming to mind at the moment.
Here are some pretty good VNC howto articles:
http://www.softpanorama.org/Xwindows/vnc.shtml
http://forums.fedoraforum.org/archiv...hp/t-1606.html