Linux RealVNC (tigervnc) on Fedora 15 - constant problems

Discussion in 'Software' started by Unicorn, 27 Sep 2011.

  1. Unicorn

    Unicorn Uniform November India

    Joined:
    25 Jul 2006
    Posts:
    12,726
    Likes Received:
    456
    Afternon all - I've been trying to get VNC set up in my Fedora 15 Virtual Machine for a couple of days now, but can't get through the process without some sort of error coming up. I was just wondering if any other Linux users (not necessarily Fedora) had got VNC working properly and could possibly give me some pointers? I'm getting the following errors at various stages of the setup;

    "Bad display name "Fedora15VM:3" in "add" command"

    "Warning: Fedora15VM:1 is taken because of /tmp/.X1-lock"

    "Remove this file if there is no X server Fedora15VM:1"

    Thanks in advance. Also not sure what the deal is with the ip address of my VM - it's on a network with a DNS gateway of 192.168.1.2 but the IP address that the VMware network adapter has is 192.168.71.132, and upon trying to connect to 192.168.71.132:3 I get an error (from Windows 7 viewer machine with VNC Enterprise edition installed). For reference, I was using this guide to install VNC in Fedora.

    Thanks in advance.
     
  2. faugusztin

    faugusztin I *am* the guy with two left hands

    Joined:
    11 Aug 2008
    Posts:
    6,943
    Likes Received:
    268
    1) The 192.168.71.xxx IP means you are using the local NAT setting - and in that case no computer from LAN will be able to reach the virtual machine. Set the network to bridged mode, and the virtual machine will show up in your local network, with normal IP adress.

    2) VNC... Any reason for it ? Why not NoMachine NX ?
     
  3. Unicorn

    Unicorn Uniform November India

    Joined:
    25 Jul 2006
    Posts:
    12,726
    Likes Received:
    456
    Hey, thanks for the very quick reply. The NAT setting > Bridged setting worked as expected, thanks for pointing that out! I use VNC on everything - literally everything in the house. I want to be able to connect to the VMs on the server using VNC on my phone and eventually tablet, when I get it.
     
  4. faugusztin

    faugusztin I *am* the guy with two left hands

    Joined:
    11 Aug 2008
    Posts:
    6,943
    Likes Received:
    268
    Ok, well :
    These 2 lines are clear, you are running a local X server instance, so :1 (standard X Windows display number) is taken. Why did it tried to work with :1 ? Because it seems like it doesn't like :3 you set for it :
    Unfortunately the exact configuration is the question i can't answer, as i ditched VNC ASAP and switched to the more responsive and easier to configure system - NX :).

    Edit: But maybe an idea - can both the computer from which you connect to VNC server and the server itself resolve the "Fedora15VM" hostname ?
     
  5. Unicorn

    Unicorn Uniform November India

    Joined:
    25 Jul 2006
    Posts:
    12,726
    Likes Received:
    456
    I tried it with :1 and :2, before moving on to :3. The different errors are from different attempts. It's saying there is a local X server, but I tried killing that process and deleting the files and it still won't let me set "vncserver :1".


    I'd thought about going with No Machine but the no iOS/Android software support stopped me in my tracks. VNC works fine for me, it's just my first time working with it in Linux and it's a learning process.

    It seems that neither the Windows machine nor the server can resolve the hostname.
     
  6. faugusztin

    faugusztin I *am* the guy with two left hands

    Joined:
    11 Aug 2008
    Posts:
    6,943
    Likes Received:
    268
    Then try to add them to the c:\windows\system32\drivers\etc\hosts and /etc/hosts file. Maybe that is your problem.
     

Share This Page