LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-31-2007, 08:40 AM   #1
pdelassus
LQ Newbie
 
Registered: May 2007
Posts: 7

Rep: Reputation: 0
VNC Server on CentOS - Viewer on XP


I have the task of putting VNC server on a CentOS server and putting VNC viewer on my XP machine. I have zero experience on Linux, so I need step by step from downloading to the end. If you have a place to steer me in the right direction, that will work too. Thank you so much.
 
Old 05-31-2007, 09:21 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
See and follow: http://fedoranews.org/tchung/vnc/

Note; the default ports for the VNC viewers are different between Linux(5901) and Windows(5900). For the Windows VNC viewer add a colon followed by the number one (1), examples:

<the IP address of the Linux system>:1
192.168.0.111:1
 
Old 05-31-2007, 10:33 AM   #3
pdelassus
LQ Newbie
 
Registered: May 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I was able to follow all of that on the CentOS side, but it didn't tell me what I need to do on the Windows side.
 
Old 05-31-2007, 12:48 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
I told you, start the vncviewer on the Windows side and enter the IP of the Linux server and add the :1 at the end, example 192.168.0.10:1
 
Old 05-31-2007, 01:24 PM   #5
pdelassus
LQ Newbie
 
Registered: May 2007
Posts: 7

Original Poster
Rep: Reputation: 0
it tells me "connection refused" when i try that.
 
Old 05-31-2007, 03:01 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Did you follow the guide??? http://fedoranews.org/tchung/vnc/
 
Old 05-31-2007, 03:46 PM   #7
pdelassus
LQ Newbie
 
Registered: May 2007
Posts: 7

Original Poster
Rep: Reputation: 0
yeah, i did everything, i've talked to another guy that said he got his up and going today as well. i dont know what i did, i'm thinking i messed up some code somewhere. i'm reinstalling the OS as i type. thanks for your time.
 
Old 04-18-2008, 10:37 AM   #8
daylightnetworks
LQ Newbie
 
Registered: Apr 2008
Location: Malta, MT
Distribution: CentOS
Posts: 1

Rep: Reputation: 0
Lightbulb Firewall Rules

If you really tried anything with port and :1 after your linux box ip try disabling your linux firewall by typing

service iptables stop

and try entering into your vnc again.
If the problem will be solved you have to follow these simple steps:

step 1:
open the iptables config
vi /etc/sysconfig/iptables

Step 2:
Insert this Line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

Step 3:
enable iptables again
service iptables restart

Last edited by daylightnetworks; 04-18-2008 at 10:42 AM. Reason: More details
 
Old 10-01-2009, 01:59 PM   #9
qwkfish
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Rep: Reputation: 0
Hung at the same place but trying to go one more step!

Interestingly enough, "vncviewer localhost:2" or "vncviewer 127.0.0.1:2" works but if I try to use the real IP address of the server like "vncviewer 192.168.12.3:2" this fails! The hosts file has a proper entry but yet it fails. How is that explained? My one step further is getting this to work with a Xen virtual machine. I thought that the VM was going to be the tough part but yeah, thought wrong.
 
Old 10-01-2009, 07:43 PM   #10
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,226

Rep: Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023
Like daylightnetworks said, you prob need to open the port using iptables (firewall).
 
Old 10-01-2009, 09:56 PM   #11
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:37 PM.
 
Old 10-14-2010, 11:59 AM   #12
Jadedkill
LQ Newbie
 
Registered: Oct 2010
Location: Missouri
Distribution: CentOS, Gentoo
Posts: 17

Rep: Reputation: 0
Possible Solution

Quote:
Originally Posted by daylightnetworks View Post
If you really tried anything with port and :1 after your linux box ip try disabling your linux firewall by typing

service iptables stop

and try entering into your vnc again.
If the problem will be solved you have to follow these simple steps:

step 1:
open the iptables config
vi /etc/sysconfig/iptables

Step 2:
Insert this Line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

Step 3:
enable iptables again
service iptables restart
The above steps should work however, you also need to ensure that the vncserver service is started as well. This service is not set to automatically start with your system. You should then be able to connect just fine.
 
Old 05-28-2011, 04:45 AM   #13
freelinuxtutorial
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
I followed this tutorial it works for me..
freelinuxtutorial.blogspot.com/2011/05/linux-vpn-server-configuration.html
 
  


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
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
vnc viewer how to ? ashintoms Linux - Networking 2 07-25-2007 06:43 AM
VNC server/viewer riluve Linux - Software 1 03-09-2005 03:31 PM
Newbie help RE VNC viewer/server indespair Linux - Networking 3 08-25-2004 06:27 PM
VNC Viewer scottpioso Linux - General 11 03-10-2003 10:41 AM


All times are GMT -5. The time now is 11:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration