View Single Post
Old June 20th, 2005   #1
intangible
Ubuntu Extra Shot
 
intangible's Avatar
 
Join Date: Nov 2004
Location: Las Vegas
Beans: 329
Ubuntu 6.06
Send a message via ICQ to intangible Send a message via AIM to intangible Send a message via MSN to intangible Send a message via Yahoo to intangible
HOWTO: Setting up a VNC to GDM connection

This howto is to show how to setup VNC to show a GDM login screen when you connect to your Ubuntu box, effectively using XDMCP over VNC. A VNC client is easier to get going on Windows than a X server for most people, so here's how to use it to connect to your linux box.

I posted the instructions in another thread already, but decided to put them here as well so it's easier to find for everyone.

First thing you'll need to do is enable the universe repositories: https://wiki.ubuntu.com//AddingRepositoriesHowto

Then it's just five easy steps:
  1. System->Administration->Login Screen Setup
    Tab XDMCP->Enable XDMCP You can disable "Honor Indirect Requests"
    For kdm or even xdm, just look through the settings and find XDMCP, make sure it's enabled.
  2. sudo apt-get install vnc4server (comes from universe)
  3. Put the following line at the end of /etc/inetd.conf:
    Code:
    5900    stream  tcp     nowait  nobody  /usr/bin/Xvnc Xvnc -inetd -desktop=Server -query localhost -IdleTimeout 7200 -depth 16 -once securitytypes=none
    Replace "Server" with something you want the window title to be, usually the server name.
  4. sudo /etc/init.d/inetd restart
  5. Log out of your desktop (to restart gdm, xdm, or kdm)

That's it! Try connecting from another machine using and see how it goes.

If you need a VNC client for Windows, try out UltraVNC http://ultravnc.sf.net it's the one I prefer.

For connecting from Linux vnc4viewer with tsclient work well.
__________________
Computer science has as much to do with computers as astronomy has to do with telescopes.
- Edsger Wybe Dijkstra


Intangible's Desktop
intangible is offline   Reply With Quote