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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-31-2007, 09:40 AM
|
#1
|
LQ Newbie
Registered: May 2007
Posts: 7
Rep:
|
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.
|
|
|
05-31-2007, 10:21 AM
|
#2
|
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:
|
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
|
|
|
05-31-2007, 11:33 AM
|
#3
|
LQ Newbie
Registered: May 2007
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
05-31-2007, 01:48 PM
|
#4
|
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:
|
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
|
|
|
05-31-2007, 02:24 PM
|
#5
|
LQ Newbie
Registered: May 2007
Posts: 7
Original Poster
Rep:
|
it tells me "connection refused" when i try that.
|
|
|
05-31-2007, 04:01 PM
|
#6
|
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:
|
|
|
|
05-31-2007, 04:46 PM
|
#7
|
LQ Newbie
Registered: May 2007
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
04-18-2008, 11:37 AM
|
#8
|
LQ Newbie
Registered: Apr 2008
Location: Malta, MT
Distribution: CentOS
Posts: 1
Rep:
|
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 11:42 AM.
Reason: More details
|
|
|
10-01-2009, 02:59 PM
|
#9
|
LQ Newbie
Registered: Jun 2009
Posts: 8
Rep:
|
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.
|
|
|
10-01-2009, 08:43 PM
|
#10
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,403
|
Like daylightnetworks said, you prob need to open the port using iptables (firewall).
|
|
|
10-01-2009, 10:56 PM
|
#11
|
Member
Registered: Sep 2009
Posts: 196
Rep:
|
...
Last edited by Smartpatrol; 03-11-2010 at 10:37 PM.
|
|
|
10-14-2010, 12:59 PM
|
#12
|
LQ Newbie
Registered: Oct 2010
Location: Missouri
Distribution: CentOS, Gentoo
Posts: 19
Rep:
|
Possible Solution
Quote:
Originally Posted by daylightnetworks
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.
|
|
|
05-28-2011, 05:45 AM
|
#13
|
LQ Newbie
Registered: May 2011
Posts: 2
Rep:
|
I followed this tutorial it works for me..
freelinuxtutorial.blogspot.com/2011/05/linux-vpn-server-configuration.html
|
|
|
All times are GMT -5. The time now is 09:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|