Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 31-03-2012
Member
 
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?
Reply With Quote
  #2  
Old 31-03-2012
Member
 
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.
Reply With Quote
  #3  
Old 31-03-2012
Member
 
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.
Reply With Quote
  #4  
Old 31-03-2012
Member
 
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.
Reply With Quote
  #5  
Old 31-03-2012
Member
 
Join Date: Mar 2011
Posts: 489
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
Reply With Quote
  #6  
Old 31-03-2012
Member
 
Join Date: May 2011
Posts: 397
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.
Reply With Quote
  #7  
Old 31-03-2012
Member
 
Join Date: May 2011
Posts: 392
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
  • you have to remove init or init.d startup scripts if you have used to kill vnc processes
  • now reinstall vino / vinagre and all the associated packages, also install x11vnc as well.
    Code:
    sudo apt-get install vino vinagre x11vnc
  • 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
  • now you have to store default password at the below mentioned location.
    Code:
    x11vnc -storepasswd in /etc/x11vnc.pass
  • now copy and paste the password in the file which you have created.
  • 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
  • finally restart the system and let me know about the result.
  • Reply With Quote
      #8  
    Old 03-04-2012
    Member
     
    Join Date: Jul 2011
    Posts: 227
    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
    Reply With Quote
    Reply

      TechArena Community > Software > Operating Systems
    Tags: , , , ,



    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search


    Similar Threads for: "VNC broken after upgrading with ubuntu 11.10"
    Thread Thread Starter Forum Replies Last Post
    After broken upgrade ubuntu 11.10 unable to reinstall. PushIt Operating Systems 7 04-12-2011 03:21 AM
    Problems after upgrading Ubuntu 10.4 to Ubuntu 10.10 Savious Operating Systems 4 10-11-2010 01:35 PM
    Wireless network broken on Ubuntu 9.04 Andrzej Networking & Security 3 09-07-2009 11:26 PM
    Upgrading kubuntu 8.04 to ubuntu 9.04 Bandish 555 Operating Systems 3 01-07-2009 09:55 PM


    All times are GMT +5.5. The time now is 11:06 AM.