LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-03-2006, 04:55 AM   #1
ashin83
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Question VNC problem


Hi all,
I'm connecting to a linux server through VNC.. I can do this with no problem.. currently I have a dirct access to the linux server, I activated the vnc-server at the server by:
#vncserver
the problem is that on my laptop I don't have the same GUI that is on the server..! It's not clear and I don't have the bar of which I start programs graphically and I don't have the desktop!.. It's a strnge GUI that is not on the server..
Plz help me.. How can I get the exact GUI and desktop that is on the server..?
Thx.
 
Old 01-03-2006, 10:13 PM   #2
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
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

Last edited by KimVette; 01-03-2006 at 10:33 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vnc problem kooshball Linux - Software 1 07-31-2005 05:01 PM
VNC problem apolon10 Linux - Networking 5 04-19-2005 02:00 AM
Yet another VNC problem paul_dundee Linux - Software 5 03-06-2005 04:40 PM
VNC problem eggoz Linux - Networking 4 01-02-2005 02:16 PM
vnc problem saturn_vk Linux - Networking 2 03-17-2003 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration