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:
- 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.
- sudo apt-get install vnc4server (comes from universe)
- Put the following line at the end of /etc/inetd.conf:
Replace "Server" with something you want the window title to be, usually the server name.Code:5900 stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -desktop=Server -query localhost -IdleTimeout 7200 -depth 16 -once securitytypes=none
- sudo /etc/init.d/inetd restart
- 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.