LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-05-2004, 05:06 AM   #1
markpadam
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
Unhappy VNC – Connection Refused


I have just install RedHat 9 on my machine and i can't connect via VNC. I have downloaded and installed the VNC server and checked that it's running but when i try to connect i receive the EM: "Connection Refused".

I have tried disabling the RedHat firewall but it still doesn't work.

I'm trying to connect from within my LAN.
I can connect to the VNC server when i run the viewer from the same machine.

I'm new to Linux! can anyone help?
 
Old 05-06-2004, 03:02 AM   #2
markpadam
LQ Newbie
 
Registered: May 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I now worked out that the firewall is still running. I've set the firewall to medium and opend the ports i need using the GUI version of the Firewall but when i go to the command line and type "setup" then choose the firewall setting it's still set to "High". When i set the it back to "medium" it doesn't save the changes.
 
Old 05-06-2004, 07:46 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I've seen a few posts about this problem with the RH firewall and if I remember correctly the bugs are in the graphical interface. You might want to try using a non RH firewall program like Firestarter.
 
Old 05-06-2004, 03:59 PM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
How are you trying to connect? Are you using a vnc client? Try using a webbrowser. Type this into the address bar.
http://<ip of rh9>:5800

where <ip of rh9> is the IP of that box. You might also try connecting with 5801

I personally don't like vnc for linux. You don't get the view of the screen like you would in windows. Plus you can do just about anything you want throught the command line/ssh.
 
Old 05-07-2004, 01:40 PM   #5
markpadam
LQ Newbie
 
Registered: May 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I installed Firestarter and it seems to have to have worked. Only thing is like you say you don't get to see the desktop.
 
Old 05-07-2004, 07:02 PM   #6
Jim.DiGriz
LQ Newbie
 
Registered: Apr 2004
Location: Tulsa, Oklahoma
Distribution: Slackware 9.1,RedHat 9, Fedora Core 1, Fedora Core 2, Redhat Enterprise Linux AS v. 3, Mac OS 10.3.3
Posts: 16

Rep: Reputation: 0
Edit your ~/.vnc/xstartup and follow the instructions in the comments in there, then restart your vncserver process to get the normal desktop for your user. Should look just like you were sitting at the console.
 
  


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
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
VNC - Connection refused silkyd Linux - Networking 12 03-29-2006 08:09 AM
VNC Connection refused (10061) freddy1234 Linux - Software 9 09-01-2004 11:50 PM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM
VNC Connection refused pacman Linux - Software 7 08-08-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:52 PM.

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