Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: VNC with Xfce

  1. #1
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    VNC with Xfce

    Has anyone been successful at doing this? It seems the only way I can connect remotely is by creating a new session and then from the log on screen selecting remote session. If I use VNC or any other application I get an error message saying the machine is not accepting any new connections? I have the proper ports opened on my router and I have configure firestarter as well.

    Are there any logs that can be looked at to get more of a detailed error as to what exactly is happenign when trying to connect?? I dont know if it matters but I'm running Kubuntu on my client and Ubuntu on my server with xfce interface.

    Thank you
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  2. #2
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: VNC with Xfce

    Are you trying to connect to the desktop active on the server itself or create a new X session (like a terminal server?)

  3. #3
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    Re: VNC with Xfce

    Quote Originally Posted by quelx View Post
    Are you trying to connect to the desktop active on the server itself or create a new X session (like a terminal server?)
    I'm trying to connect to the server from the desktop itself. If I use vnc from the desktop I get the error message but If I logout and go to create new session I can connect no problem.

    Hope that answers your question.
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  4. #4
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: VNC with Xfce

    try these steps

    Code:
    sudo apt-get install vnc4server
    sudo vncpasswd
    now edit your /etc/X11/xorg.conf adding the following lines

    Code:
    Section "Module"
    .
    .
    Load "vnc"
    .
    .
    EndSection
    Section "Screen"
    .
    .
     Option      "PasswordFile"    "/root/.vnc/passwd"
    .
    .
    EndSection
    restart X and point your VNC client to ip.adr.es.s:0

  5. #5
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    Re: VNC with Xfce

    Quote Originally Posted by quelx View Post
    try these steps

    Code:
    sudo apt-get install vnc4server
    sudo vncpasswd
    now edit your /etc/X11/xorg.conf adding the following lines

    Code:
    Section "Module"
    .
    .
    Load "vnc"
    .
    .
    EndSection
    Section "Screen"
    .
    .
     Option      "PasswordFile"    "/root/.vnc/passwd"
    .
    .
    EndSection
    restart X and point your VNC client to ip.adr.es.s:0
    Now it seems to be crashing my X Server when I connect to it. A window comes up for a second or so then just crashes. Is there something else that may need to be configured in the xorg?
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  6. #6
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: VNC with Xfce

    Oops, have a look at the X error logs then just comment out those lines (# in front) and

    Code:
    less /var/log/Xorg.0.log
    can you paste the lines where is complains (EE lines)

    EDIT:
    Just tried it on my xfce lappy and noticed that sudo still puts stuff in your home folder, so you need to move the .vnc directory to the root folder

    Code:
    sudo mv ~/.vnc /root/
    EDIT:EDIT:

    It worked for me after I moved the .vnc directory to the right place, you could just change the line in the xorg.conf but it seems better to have the file tucked away in the root users folder.
    Last edited by quelx; May 28th, 2008 at 02:17 AM. Reason: found one problem

  7. #7
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    Re: VNC with Xfce

    I took a look at the log and couldn't seem to find any lines with (EE). If you would like I can upload the entire log. I moved the root folder to the vnc directoy but it still seemed to crash as well....
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  8. #8
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: VNC with Xfce

    Please attach your log, it may help.

  9. #9
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    Re: VNC with Xfce

    Quote Originally Posted by quelx View Post
    Please attach your log, it may help.
    Here it is. I will check back tomorrow.

    Thanks for your help
    Attached Files Attached Files
    Last edited by guilly; May 28th, 2008 at 03:14 AM.
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  10. #10
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: VNC with Xfce

    Is this with or without the VNC module loaded (or trying to load)?

    Does xfce load when you comment out the two vnc lines?

    I didn't see anything unusual (including any hint of vnc modules loading or not loading)

    and snippets from /etc/X11/xorg.conf
    Code:
    Section "Screen"
            Identifier      "Default Screen"
            Monitor         "Configured Monitor"
            Device          "Configured Video Device"
            Defaultdepth    24
            Option          "PasswordFile"  "/root/.vnc/passwd"
    EndSection
    .
    .
    Section "Module"
            Load            "glx"
            Load            "vnc"
    EndSection
    The only two lines that need to be added are lines with vnc in them, they just need to be in the correct sections.

    For reference (I'm not showing off) here is the relevant parts of my log. Something regarding vnc should show up here, even if it breaks, it should have an EE line with something about not finding libvnc.so

    /var/log/Xorg.0.log
    Code:
    (II) LoadModule: "vnc"
    (II) Loading /usr/lib/xorg/modules/extensions//libvnc.so
    (II) Module vnc: vendor="RealVNC Ltd"
            compiled for 4.3.99.902, module version = 1.0.0
            Module class: X.Org Server Extension
            ABI class: X.Org Server Extension, version 0.2
    (II) Loading extension VNC

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •