Results 1 to 8 of 8

Thread: VNC broken after upgrading with ubuntu 11.10

  1. #1
    Join Date
    Jan 2012
    Posts
    46

    VNC broken after upgrading with ubuntu 11.10

    Recently I have upgraded to ubuntu 11.10 32 bit from 11.10. after doing that I have noticed that VNC server does not starting automatically. On the Desktop Sharing panel anyone can view as well as control the desktop and even there is no need to enter password as well.
    When I tried to execute vino-server through the command line and got ‘vino-server 2464 WARNING: The desktop sharing service is not enabled, so it should not be run.’
    Can you tell me how can I resolve the above mentioned problem?

  2. #2
    Join Date
    Nov 2010
    Posts
    363

    Re: VNC broken after upgrading with ubuntu 11.10

    I got something which can help you out to understand the entire thing. the VNC (vino-server) is starting only when I am using gnome. In perviosu vesion of ubuntu I was using Gnome and in current version I am using Unity. I installed gnome-fallback package and logged into the same so that I can make use of it. after that VNC started to work flawlessly on my computer.

  3. #3
    Join Date
    Nov 2010
    Posts
    442

    Re: VNC broken after upgrading with ubuntu 11.10

    If you have already install Gnome on your computer then you will need to change the default session to the Gnome classic by using following code.
    Code:
    sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-classic
    now restart your computer and see whether it makes any difference in the situation.

  4. #4
    Join Date
    Dec 2010
    Posts
    334

    Re: VNC broken after upgrading with ubuntu 11.10

    I was suffering from the same issue which you have stated over here. but I resolved the issue by simply installing x11vnc. As Unity and Gnome3 are use accelerated. According to me compositing client will not be able to use or see remote desktop by using Vino. x11vnc is having support for framebuffers and it is transmitting actual video which X has been showing on remote screen and that’s why it is working well. You will need to create small script and simply place the same at a startup folder. I know its not so easy to setup Vino.

  5. #5
    Join Date
    Mar 2011
    Posts
    490

    Re: VNC broken after upgrading with ubuntu 11.10

    Well I have done little bit research work and found following thing to do.
    First of all you have to execute below mentioned command on Terminal.

    Code:
    apt-get install tightvncserver
    after that simply add below mentioned line to /etc/lightdm/lightdm.conf

    Code:
    [VNCServer]
    enabled=true
    finally you have to restart lightdm.
    Once you have finish with above mentioned steps you have to log into VNC and there wont be any issue

  6. #6
    Join Date
    May 2011
    Posts
    398

    Re: VNC broken after upgrading with ubuntu 11.10

    Yes Vino is broken after upgrading to ubuntu 11.10 but one will be able to fix it by using below mentioned steps.
    First of all you have to installed x11vnc by using
    Code:
    apt-get install x11vnc
    once done you have to create /etc/init/x11vnc.conf file
    Code:
    start on login-session-start
    script
    x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
    end script
    now restart you computer and x11vnc would begin to listen on vnc startard port – 5900.

    The above mentioned script is based on upstart event mechanism. Lightdm is triggering login-session-start event and you can get the same into lightdm.conf. now you have to start x11vnc it triggers the event.

  7. #7
    Join Date
    May 2011
    Posts
    397

    Re: VNC broken after upgrading with ubuntu 11.10

    I hope below mentioned fix would work for you.
    1. Uninstall all the VNC packages including vino / vinagre.
    2. You can use below mentioned command.

      Code:
      sudo apt-get remove vino vinagre -y
    3. sudo apt-get autoremove –y
  8. you have to remove init or init.d startup scripts if you have used to kill vnc processes
  9. now reinstall vino / vinagre and all the associated packages, also install x11vnc as well.
    Code:
    sudo apt-get install vino vinagre x11vnc
  10. now you have to run x11vnc and set your connect password.
    Code:
    sudo x11vnc –storepasswd
    it will prompt you to enter password and it would place your password at
    Code:
    <user directory>/vnc/passwd
  11. now you have to store default password at the below mentioned location.
    Code:
    x11vnc -storepasswd in /etc/x11vnc.pass
  12. now copy and paste the password in the file which you have created.
  13. Finally you have to create startup script at x11vnc so that it can executes when your machine would boot. It should be created at /etc/init/x11vnc.conf.
    Code:
    start on login-session-start
    
      script
        x11vnc -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900
      end script
  14. finally restart the system and let me know about the result.
Reply With Quote Reply With Quote

  • #8
    Join Date
    Jul 2011
    Posts
    229

    Re: VNC broken after upgrading with ubuntu 11.10

    Give a try to below mentioned steps and tell me about your experience.

    Install vnc4server by using below mentioned steps.
    sudo apt-get install vnc4server
    after that you have to install gdm and gnome-panel. It will install gnome-classic.sessions session file at usr/share/gnome-session/sessions/

    Code:
    sudo apt-get install gdm
    when it prompts for default session manager you have to select lightdm
    Code:
    sudo apt-get install gnome-panel
    when it would launch vnc4server very first time you have to set password.
    Code:
    /home/<user>/.vnc/xstartup
    After that you have to change contents of /home/<user-name>/.vnc/xstartup file so that you can make the thing working for you.
    Content should be displayed something like below
    Code:
    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    unset DBUS_SESSION_BUS_ADDRESS
    #exec /etc/X11/xinit/xinitrc
    #. /etc/X11/xinit/xinitrc
    gnome-session --session=gnome-classic &
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    #x-window-manager
    unset SESSION_MANAGER is used to remove error something like ‘Could not acquire name on session bus
    /usr/share/gnome-session/sessions would have number of .session files and you can use any of them into xstartup file

  • Similar Threads

    1. After broken upgrade ubuntu 11.10 unable to reinstall.
      By PushIt in forum Operating Systems
      Replies: 7
      Last Post: 04-12-2011, 03:21 AM
    2. Problems after upgrading Ubuntu 10.4 to Ubuntu 10.10
      By Savious in forum Operating Systems
      Replies: 4
      Last Post: 10-11-2010, 01:35 PM
    3. Wireless network broken on Ubuntu 9.04
      By Andrzej in forum Networking & Security
      Replies: 3
      Last Post: 09-07-2009, 11:26 PM
    4. Upgrading kubuntu 8.04 to ubuntu 9.04
      By Bandish 555 in forum Operating Systems
      Replies: 3
      Last Post: 01-07-2009, 09:55 PM

    Tags for this Thread

    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
    •  
    Page generated in 1,714,002,307.73966 seconds with 16 queries