LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2011, 06:20 AM   #1
blacksiddis
LQ Newbie
 
Registered: Mar 2011
Posts: 9

Rep: Reputation: 0
VNC confusion Linux Client --> Windows Host


Ok, firstly forgive me if I posted in the wrong forum, I was unsure! (this is also my firth thread on the forum, although I've lurked around for a bit!)

I just started using Ubuntu 10.10 as my main OS on my netbook, however I would like to access a few programs on my Windows Desktop but I'm having problems with the VNC server. First I tried the Real VNC Enterprise edition which was recommended to me but I noticed some people on this forum said TightVNC is the thing to use! So now I currently run that on my Desktop but I can't seem to connect to it from my Netbook. (connection times out)
Nmap reports that there is no VNC server running my Desktop, but my TightVNC says everything is up and running. Has anyone had any similar problems with VNC from Linux (client) to Windows (host) ? If so how did you work around it?

PS! Somewhat a novice Linux user here, so if you have a solution, be elaborate please!
Cheers

EDIT:
This is just on my own LAN (for now)

Last edited by blacksiddis; 03-06-2011 at 06:26 AM. Reason: Forgot to mention something!
 
Old 03-06-2011, 06:43 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Did you check the Windows firewall settings? You may need to open a port on the Windows machine. Ubuntu doesn't install or configure a firewall by default so unless you did that yourself then you probably don't have a firewall on Ubuntu so that probably isn't the problem.
 
Old 03-06-2011, 07:27 AM   #3
blacksiddis
LQ Newbie
 
Registered: Mar 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Well I haven't looked at it but upon installing TightVNC there was an option that would automate that process. Perhaps it failed, but I don't think that would be the case. Checking it out as we speak non the less.
Cheers
 
Old 03-06-2011, 07:42 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,591

Rep: Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689
VNC

On your Windows machine, after you have checked the firewall and run VNC, check its settings. You need to configure it, set it as a service, and start the service before you can connect.
 
Old 03-06-2011, 07:51 AM   #5
blacksiddis
LQ Newbie
 
Registered: Mar 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Updates

Well, turns out I have had Windows Firewall turned off so it can't be the firewall blocking local VNC connections. Also as far as configuring the TightVNC server, I don't have a whole lot of options. In the configuration menu I can not do much but configuration authentication, change the listening port and the web port for the Java listener (sounds like a web interface for the VNC server, I just disabled that). Furthermore I can manage access control (IP ban generally) and some more technical administration such as session sharing.

How can I verify the server is running as a service on Windows?
 
Old 03-06-2011, 08:38 AM   #6
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
Connecting to Win VNC server from Ubuntu

Navigate to Start>Programs>TightVNC>TightVNC (Service Mode)>Register TightVNC Service
After installing, you may still have to do a "net start tvnserver" from a command prompt to start it. Do "sc query" and tvnserver should be in state "RUNNING". I'm using "SSL/SSH VNC Viewer" here in Ubuntu 10.10 to connect to the Windows 7 VM. If you use that, you will have the choices "Use SSL, Use SSH, SSH+SSL, None". Hit the "None" button before attempting to connect.
 
Old 03-06-2011, 09:48 AM   #7
blacksiddis
LQ Newbie
 
Registered: Mar 2011
Posts: 9

Original Poster
Rep: Reputation: 0
All indications show that the server is RUNNING. I issued "sudo apt-get install ssvnc" to get the SSL/SSH VNC viewer software. One thing I noticed in the GUI is the field VNC Hostisplay. I've tried running a VNC server on Ubuntu and connecting to it from Windows (that was before I deleted Windows all together) But I don't know what this "Display" option is.

I entered the following into ssvnc:
VNC Hostisplay --> 192.168.0.107 (I tried :1 and :0 at the end but to no use)
VNC Password --> The password I set TightVNC to authenticate users with
Proxy/Gateway --> Was unsure of this so I left it blank and tried the routers IP address (only because the router is referred to as "Default Gateway" in Windows CMD. I have no idea how that would help)

ALSO! When I press "Find" in ssvnc GUI It says "No VNC Servers detected" but as mentioned above, all indicators on Windows says it is and the firewall is down.
I think connection still times out, not sure, the popup window generated upon attempting to connect with ssvnc disappears to quickly.
 
Old 03-06-2011, 10:19 AM   #8
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
VNC profile

Create a profile with the settings recommended above; you should then find it in your home directory at .vnc/profiles/
Make sure the following are set (the IP will be that of your VNC server, obviously):

[connection]
host=172.16.86.128
port=5900
proxyhost=
proxyport=
disp=172.16.86.128
disable_all_encryption=1
use_ssl=0

Everything else is commented out. When you open the viewer on your Ubuntu box, click "Load", then click the named profile. Then click "Connect".

Do a netstat and you should see something like this:

~$ netstat -an | grep 5900
tcp 0 0 192.168.0.1:60767 192.168.0.107:5900 ESTABLISHED
 
Old 03-06-2011, 10:31 AM   #9
blacksiddis
LQ Newbie
 
Registered: Mar 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Alright I will try that, just informing you now that my .vnc/profiles directory is empty. You wrote "...Everything else is commented out" implying there should be a profile in this directory to begin with? If so, Mind sharing layout of the file so I may write one manually?

Last edited by blacksiddis; 03-06-2011 at 12:32 PM.
 
Old 03-06-2011, 06:20 PM   #10
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
VNC profile

This is what the SSL/SSH VNC Viewer app creates when you successfully save a profile:
Code:
[connection]
host=192.168.86.128
port=5900
proxyhost=
proxyport=
disp=192.168.86.128

[options]
# parameters commented out with '#' indicate the default setting.
#additional_port_redirs=0
#additional_port_redirs_list=
#change_vncviewer=0
#change_vncviewer_path=
#choose_desktop=0
#choose_desktop_geom=0
#choose_filexfer=0
#choose_multisession=0
#choose_ncache=0
#choose_othervnc=0
#choose_x11vnc_opts=0
#choose_xserver=0
#compresslevel_text=Compress Level: default
#crlfil=
#crtdir=ACCEPTED_CERTS
#cups_local_server=
#cups_local_smb_server=
#cups_manage_rcfile=1
#cups_remote_port=
#cups_remote_smb_port=
#cups_x11vnc=0
disable_all_encryption=1
#disable_pipeline=0
#disable_ssl_workarounds=0
#disable_ssl_workarounds_type=none
#extra_sleep=
#include_list=
#listen_accept_popup=0
#listen_accept_popup_sc=0
#listen_once=0
#multiple_listen=0
#mycert=
#port_knocking_list=
#quality_text=Quality: default
#rfbversion=
#sbwid_string=
#server_anondh=0
#server_vencrypt=0
#smb_mount_list=
#smb_su_mode=sudo
#sound_daemon_kill=0
#sound_daemon_local_cmd=
#sound_daemon_local_kill=0
#sound_daemon_local_port=
#sound_daemon_local_start=0
#sound_daemon_remote_cmd=
#sound_daemon_remote_port=
#sound_daemon_restart=0
#sound_daemon_x11vnc=0
#ssh_local_protection=1
#ssvnc_encodings=
#ssvnc_escape=
#ssvnc_extra_opts=
#ssvnc_scale=
#stunnel_local_protection=1
#stunnel_local_protection_type=exec
#svcert=
#ts_cups_manage_rcfile=0
#ts_desktop_depth=
#ts_desktop_size=
#ts_desktop_type=
#ts_filexfer=
#ts_mode=0
#ts_multisession=
#ts_ncache=8
#ts_othervnc=
#ts_unixpw=0
#ts_vncshared=0
#ts_x11vnc_autoport=
#ts_x11vnc_opts=
#ts_x11vnc_path=
#ts_xlogin=0
#ts_xserver_type=
#ultra_dsm=0
#ultra_dsm_file=
#ultra_dsm_noultra=0
#ultra_dsm_salt=
#ultra_dsm_type=guess
#unixpw_username=
#use_alpha=0
#use_bgr233=0
#use_compresslevel=default
#use_cups=0
#use_fullscreen=0
#use_grab=0
#use_listen=0
#use_nobell=0
#use_nojpeg=0
#use_notty=0
#use_popupfix=0
#use_port_knocking=0
#use_quality=default
#use_raise_on_beep=0
#use_rawlocal=0
#use_send_always=0
#use_send_clipboard=0
#use_smbmnt=0
#use_sound=0
#use_ssh=0
#use_sshssl=0
use_ssl=0
#use_turbovnc=0
#use_unixpw=0
#use_viewonly=0
#use_x11_macosx=1
#use_x11cursor=0
#use_x11vnc_find=0
#vncviewer_realvnc4=0
#ycrop_string=
 
Old 03-07-2011, 10:46 AM   #11
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,591

Rep: Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689
vncserver

Something is odd or unclear. I use vnc this way ALL the time, and never had a problem.

Running the vnc client (vncviewer) on the ubuntu side, and specifying the IP address and display number 0 on the client side should at LEAST get you to the authentication.

Are you running the VNCSERVER on the Ubuntu workstation, so you can run a local test?
Have you tried testing the reverse (use the tightvncviewer.exe client on windows to see a Ubuntu desktop)?
 
Old 03-12-2011, 09:31 PM   #12
krunge
Member
 
Registered: Mar 2007
Posts: 39

Rep: Reputation: 18
Quote:
Originally Posted by blacksiddis View Post
ALSO! When I press "Find" in ssvnc GUI It says "No VNC Servers detected" but as mentioned above, all indicators on Windows says it is and the firewall is down.
This is because the VNC server detection is done via Zeroconf (aka mdns, Bonjour, Rendevous, Avahi...) and Windows and/or your VNC server does not support that form of service advertizing.

Regarding your problem connecting, to troubleshoot the connection try typing these commands in a terminal on the Linux machine:

Code:
ping 192.168.0.107
telnet 192.168.0.107 5900
Here is what I see for the latter from a linux machine to a windows machine (using ultravnc server) on my lan:
Code:
# telnet 192.168.2.53 5900
Trying 192.168.2.53...
Connected to 192.168.2.53.
Escape character is '^]'.
RFB 003.006
(RFB=remote frame buffer is the VNC protocol, the above is its initial handshake.) If you can't connect this way directly via telnet(1) then no VNC viewer will be able to either.
 
  


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
internet connecion sharing between windows host and linux client pdwivedi Linux - Networking 8 04-16-2009 11:09 AM
VNC over SSH. Windows client - Linux Server c_mitulescu Linux - Networking 30 05-20-2007 11:20 PM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
Running a Linux desktop on a Windows client using VNC spartanM19SSM Linux - Networking 19 12-13-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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