LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-15-2009, 12:31 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Rep: Reputation: 34
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.

Thanks.
 
Old 04-15-2009, 07:29 AM   #2
maresmasb
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
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.

Last edited by Tinkster; 10-30-2010 at 04:27 PM.
 
Old 04-15-2009, 07:39 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 04-15-2009, 10:24 AM   #4
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[45] {x86,x86_64}, Debian "testing" {x86,x86_64}
Posts: 219

Rep: Reputation: 36
"Remote Desktop" might be a poor choice of naming in GNOME

Quote:
Originally Posted by linuxlover.chaitanya View Post
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.

bgoodr
 
Old 04-15-2009, 10:44 AM   #5
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
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?

Thanks
 
Old 04-15-2009, 10:18 PM   #6
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[45] {x86,x86_64}, Debian "testing" {x86,x86_64}
Posts: 219

Rep: Reputation: 36
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.

Good Luck,
bgoodr
 
Old 04-16-2009, 01:14 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by bgoodr View Post
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.
 
Old 04-16-2009, 05:46 PM   #8
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
bgoodr,

No, it was installed on the windows box and I want to connect to the Linux machine.

It connects and then disconnects at just about the same time.
 
Old 04-16-2009, 11:25 PM   #9
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[45] {x86,x86_64}, Debian "testing" {x86,x86_64}
Posts: 219

Rep: Reputation: 36
Then it is a firewall issue.
 
Old 04-17-2009, 08:07 AM   #10
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
What port would VNC be listning on?
 
Old 04-17-2009, 09:34 PM   #11
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
I have 5800:5803 and 5900:5903 open on the firewall.
 
Old 04-17-2009, 09:49 PM   #12
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
I checked services via the KDE panels and it stated that VNCserver is stopped. How do I restart it. The restart didn't work via the panels.
 
Old 04-17-2009, 09:56 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try starting it from the command line as root so that you can see what error messages it throws up.

First, su to root "su -" and enter the password. Note the dash after su.

Not sure what the service is called - check with "chkconfig --list" and look for something that looks like vncserver in the list.

Then simply start it "service service_name start"
 
Old 05-04-2009, 04:12 PM   #14
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
To continue...

Had some help in making the needed changes on the Linux machine.

I was able to connect but only once whether I use a 192... (local) or using a www or just a x.com address.

When first connected I logged of normally but could not VNC to connect from the windows machine to linux again.

Any ideas/suggestions would be appreciated.
 
Old 05-05-2009, 03:14 AM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,254

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Was the vnc server still running? Have you got the error msgs?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem:Connect to internet with winXP through a computer running suse10.2 B_Seda88 Linux - Networking 3 03-18-2008 10:32 AM
free winxp openssh (beside f-secure ssh server & cygwin) to connect winxp from linux imnoob Linux - General 3 12-06-2007 01:26 PM
Installed TightVNC. Fails. Can't find fonts when ran. Running CentOS. CrewXp Linux - Software 12 08-16-2007 03:06 PM
WinXP computer--modify for Linux 3.1416 Linux - General 9 06-08-2004 09:46 PM
tightVNC set-up with Fedora and WinXP pro.. sxa Linux - Software 14 01-29-2004 10:30 PM


All times are GMT -5. The time now is 07:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration