LinuxQuestions.org
Visit Jeremy's Blog.
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 03-26-2005, 02:10 AM   #1
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Rep: Reputation: 15
VNC WinXP to Linux


I downloaded and installed RealVNC for both my Windows XP and Slackware 10.1 computers.

I am able to access my WinXP computer from my Linux computer with no problems. However, I am unable to access my Linux from my Windows.

---------------------------------------------------------------------------------------------
vncserver

New 'robinder:1 (rbarlow)' desktop is robinder:1

Starting applications specified in /home/rbarlow/.vnc/xstartup
Log file is /home/rbarlow/.vnc/robinder:1.log
----------------------------------------------------------------------------------------------

in the xstartup file I added the command "gnome-session" and I made a password with vncpasswd.

When I try to connect from my windows using

vncviewer 192.168.1.104:1

I get a "unable to connect to host: Connection refused (10061)" error message.

I tried connecting to the :0 display and it connected and a password box came up. I entered the password but it said there was no password and asked if I wanted to try to reconnect. I guess when I was trying to get it to work I changed something and it doesn't come up anymore.

I've searched everywhere on the internet but I can't find any answers... please help!!
 
Old 03-26-2005, 06:28 AM   #2
brundles
Member
 
Registered: Nov 2003
Location: UK
Distribution: SUSE 9.2
Posts: 77

Rep: Reputation: 15
The password will be stored in a file in the .vnc directory - if you delete the passwd file in there it should reset the password and ask for a new one when you run the VNC server.

In terms of the refused connection, is the firewall setup to allow ranges of connections starting at 5900? VNC starts at 5900 and works upwards. i.e. robinder:1 uses port 5901, robinder:2 uses 5902 and so on.
 
Old 03-27-2005, 11:31 AM   #3
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
When I deleted the passwd file and ran vncserver again I got the following message:

"You will require a password to access your desktops."

I ran vncpasswd again and made a new one, started vncserver and got the same error.

As for the port forwarding, I enabled it on my router but it didn't do anything. I was thinking since this was on the same LAN then it wouldn't matter but I re-read your post and you said "firewall". Is there a firewall enabled in Slackware 10.1 which is causing connections on certain ports to be denied? That would make sense since it can connect to Windows but Windows can't connect to it... If this persumption is right, how to I change the configuration of the Slackware firewall??
 
Old 04-01-2005, 12:40 AM   #4
paul.nel
Member
 
Registered: Nov 2003
Location: Cape Town
Distribution: Gentoo, Redhat 9, SuSE 9.0, 9.2, Win XP
Posts: 149

Rep: Reputation: 15
I suggest you try
Code:
/etc/initr.d/iptables stop
. This should switch off your firewall. Just to check if it is the firewall that is the problem. (Switch it back on afterwards off course, I am not suggesting you run with out a firewall)

Another thing. Try to not use vncpasswd and see what happens. Even if it says a password will be required. You will be prompted for a password when you login from your Windows machine. This password should be the same as the one for the user to whom that specific vncserver process belongs, ie the user that started the vncserver. Just enter it at the time you run vncviewer. Not sure if this will sort your problem out, but it might just.

Last edited by paul.nel; 04-01-2005 at 12:41 AM.
 
  


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
Solaris VNC to Linux Laoch Solaris / OpenSolaris 3 09-24-2005 12:20 PM
Using WinXP to remotely control Linux box RDP? VNC? Fisslefink Linux - Networking 4 03-14-2005 12:38 AM
VNC from XP to Linux pk_fox Linux - Networking 4 01-26-2005 12:45 PM
HELP!! Tried to install linux (YOPER) with winxp and now winxp is unmountable! buffpandabear Linux - Newbie 2 01-13-2005 06:18 PM
linux and vnc crisponions Linux - Software 3 07-04-2003 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 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