Originally Posted by drevolution
2. How to setup remote desktop to Centos Server from windows machines.
I'm never certain what people mean by "from" and "to" in questions like that.
I will guess you mean you want to use the keyboard, mouse and display on a Windows desktop system to operate applications that are running on a Centos system that is elsewhere on your LAN.
Linux has some support for the Windows remote desktop protocol. But that is probably not a good choice for you, unless you have a really strong need to avoid adding new software to the Windows desktop system.
1) For text only (non GUI) applications on Linux, it is a lot easier and more efficient to use some SSH client to create a terminal window on Windows that connects to a text mode shell on Centos. There are many available SSH clients for Windows. The one I prefer is putty
, which is part of the cygwin
collection of unix-like utilities for Windows.
2) For operating Linux GUI applications from Windows, my usual choice is VNC. Before talking much about VNC, you should understand an important terminology difference between X (the basic graphics system in Linux) and VNC:
An X "server" is the end of X nearer the keyboard/display. An X "client" is the end nearer the application.
A VNC "server" is the end of VNC nearer the application. A VNC "client" is the end nearer the keyboard/display.
So a typical use of VNC involves two VNC programs (that you need to download and install): A Linux program that acts as both a VNC server and an X server. A Windows program that acts as a VNC client. So end to end you have a Windows VNC client talk to a Linux VNC server that is also a Linux X server that talks to a Linux X client that is part of a Linux GUI application. You can install the Centos vnc server with yum. There are several different freeware Windows vnc clients you can find and download.
To use vnc, you first need something on the Linux end to give a vnc server command that creates a Linux virtual desktop connected to the vnc server, typically already logged in as a specific user, and gives a vnc password to that desktop. You could have some automatic scripting on the Centos system create those desktops. We usually have individual users when they need such a desktop log into the Centos system via putty, and issue their own command to create their own virtual desktop. Then the user run the Windows vnc client and connects to the virtual desktop (giving the password the desktop was created with) and then uses it.
3) It takes less setup to use X directly without VNC. I generally find that is a bit less robust and less efficient (uses more LAN bandwidth for the same graphics operations), but your results may be different.
You can download and install an X server for Windows (remember "server" is the side of X closer to the keyboard/display). The xwin
program in cygwin
is one good choice.
An X server on Windows can be setup so it uses a virtual desktop program on Linux (such as KDE or GNOME) to contain all the GUI applications, so the effect looks much the same as VNC. The entire Linux virtual desktop is a window within the Windows desktop.
An X server on Windows can be setup to use the Windows desktop program directly, so each Linux GUI app has its own window(s) separately movable and sizeable within the Windows desktop. That mode tends to be more convenient, but trickier to set up and in my experience more likely to malfunction with random glitches.