LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-20-2011, 07:39 PM   #1
peter_u
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
vnc server on fedora12 or higher


I'm trying to setup vnc on a fedora system. currently I am on a fedora12 with SElinux enabled.
I installed with Yum the tigervnc and configured the service with screen 1 for one user "gy".
When I try to conn3ect to it from a windows XP laptop I get the no connection feedback.
So I installed vnc on some other windows box to try connections and it all worked. So something blocks it on fedora.

I disabled SElinux, but it didn't resolve the issue.

Any thoughts?
 
Old 01-20-2011, 07:51 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Did you install VNC or VNC server? Did you open the port that you are trying on?
 
Old 01-20-2011, 08:19 PM   #3
peter_u
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow View Post
Did you install VNC or VNC server? Did you open the port that you are trying on?
Thanks for the quick response.

I installed
yum install -y tigervnc tigervnc-server
then I configured:
echo 'VNCSERVERS="1:gy"' >> /etc/sysconfig/vncservers
echo 'VNCSERVERARGS[1]="-geometry 1280x1024"' >> /etc/sysconfig/vncservers
and set a vncpassword for user "gy".
vncserver is active
I opened port 5901 in the firewall from the system/firewall menu, at least I thought so,
and it didn't work, but then I issued:
/etc/rc.d/init.d/iptables stop
and it worked.

I guess now the only question is how to configure the firewall.
 
Old 01-20-2011, 09:29 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
IF I remember correctly you have to stop and restart IPtables before the change takes effect.
 
Old 01-21-2011, 06:38 AM   #5
peter_u
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I found the solution.
The graphical firewall tool from the system menu did not take the port 5901 which I needed to open,
I had to edit
/etc/sysconfig/iptables

and insert a line
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

After issuing the command
service iptables restart
I was able to connect via vnc from a windows box.

Thanks lazlow for your help.
 
  


Reply



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 server/vnc client with sound support fire-fly Linux - Server 2 12-30-2010 04:21 PM
scp missing in my Fedora12 server robbmac Linux - Software 2 12-14-2009 06:29 PM
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 06:05 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:04 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
Open Source Consulting | Domain Registration