Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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!
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.
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
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.
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?
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.
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.
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):
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.
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)?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.