Connect to Centos 5.3 Linux Computer using TightVnc from WinXP
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Rep:
Connect to Centos 5.3 Linux Computer using TightVnc from WinXP
Hello,
I a newbie and getting the feel of linux.
I would like to use TightVnc on my WinXP box to connect to my Linux machine...so far all on a LAN.
I read the TightVnc documentation but it isn't clear what pieces of TightVnc I have to download.
As I said I only want to connect for WinXP to the Linux box.
Is the only think I have to do is to download and install TightVnc on the WinXP machine and if so what pieces and do I have to do anything in the Linux box.
Any help in clearing up this issue would be appreciated.
You need to install and launch a VNC server application on the Linux server. Currently your Windows box tries to connect via VNC to a service that doesn't exist on the Linux box.
You also need to open up firewall ports 5900 (and a few more upwards) to allow incoming VNC data traffic on the Linux server.
It could be helpful if you told what distribution you are using. There is an option available in System > Preferences > Remote Desktop.
Once you launch this option you will understand the self explanatory window. You can configure your system to be controlled remotely. There is an option to set the password to connect remotely.
Once this is done you can download the vnc viewer from realvnc site for xp and install it. After installing launch the vnc viewer and connect to your Linux desktop.
"Remote Desktop" might be a poor choice of naming in GNOME
Quote:
Originally Posted by linuxlover.chaitanya
There is an option available in System > Preferences > Remote Desktop.
The naming of "Remote Desktop" can be confusing to some users. What is GNOME referring to by "Remote Desktop"? Are they referring to the rdesktop program that connects to Windows machines by way of RDP, and hence the Windows name of Remote Desktop Connections? Or is that menu entry intended for setup of VNC servers and clients only?
Note also that there is a program similar to VNC called x11vnc that I've occasionally used. It is set up similarly to VNC servers, but allows you to connect to a pre-existing X session, which is very similar in behavior to what Windows Remote Desktop Connection does. IIRC, you also have to setup a daemon on the destination host for x11vnc just like you do for VNC.
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Original Poster
Rep:
Thank all for your quick replies.
My Linux is Centos 5.3.
I checked and at start up time the VNC server on the Linux box is started, something like 1024x768.
From what I've been able to dope out of all of this is that you download the TightVnc program on the WinXP box and then connect to the Linux machine...correct???
When you start the TightVnc application on Windows does it connect right away to the Linux box and what command do you have to issue to start the session working?
Did you install vncserver on the Linux machine? Did you start it?
What I typically do is this command on the Linux machine:
Code:
vncserver :2
So that will start a Xvnc process running in the background. You should be able to see this in the process status with the ps -ef command (look for Xvnc). That process will die once you reboot, so you will have to execute the above command again once you reboot (or make some arrangement to have that executed when you login to GNOME; I don't know how to do that offhand).
So, if your Linux machine is on the network, then you should be able to connect to it from the Windows machine using TightVNC. What you specify is the server name (the Linux box) and the display number which in this case is "2".
Like maresmasb stated, you need to open up ports in your firewall on the Linux machine so that incoming connections will work. My understanding is that, for VNC servers, the TCP/IP port that is opened up is 5900+<display_num>, which in the above example will be 5902.
I don't recall how you specify the display number when you execute TightVNC on the Windows machine. If your machines name is called "mustard", you may have to type in "mustard:2" or "mustard:2.0". Or you may have to type in the display number into a separate text field.
The naming of "Remote Desktop" can be confusing to some users. What is GNOME referring to by "Remote Desktop"? Are they referring to the rdesktop program that connects to Windows machines by way of RDP, and hence the Windows name of Remote Desktop Connections? Or is that menu entry intended for setup of VNC servers and clients only?
This can be used to connect to linux from windows machine using the same vnc viewer the same way you will by using vnc server. I use this sometimes to connect to my Ubuntu system from xp. But that is mostly for fun as I do not use windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.