Lost access to the unity interface how to fix?

2,248

Solution 1

This seemed fixed once I went to terminal (ctrl+alt+F1) and pressed:

gconftool-2 --recursive-unset /apps/compiz-1
gconftool-2 --recursive-unset /apps/compizconfig-1
rm ~/.compiz-1/session/*
rm ~/.config/compiz-1/compizconfig/config
unity --reset

source: http://ubuntuforums.org/showthread.php?t=1866462

Solution 2

You can try to reset unity settings with unity --replace and if fails try unity --reset If all those fails and you still cannot get to CCSM then reinstall it with commands: if you don't want to remove setting substitute purge with remove in command below

sudo apt-get purge compizconfig-settings-manager
sudo apt-get install compizconfig-settings-manager

Disclaimer: Iam not sure the link Iam about to post is still applicable as thread dates to 2008. http://ubuntuforums.org/showthread.php?t=799070

UPDATE It seems as if you are not yet logged in GUI, and so there is no XServer running yet. Try in failsafe mode (recovery mode) and fix things from there

Share:
2,248

Related videos on Youtube

Steve
Author by

Steve

Updated on September 18, 2022

Comments

  • Steve
    Steve almost 2 years

    I test the code from http://docs.python.org/py3k/library/urllib.request.html on my computer(Ubuntu 10.04 and python 3.2)

    >>> import urllib.request
    >>> req = urllib.request.Request(url='https://localhost/cgi-bin/test.cgi',
    ... data=b'This data is passed to stdin of the CGI')
    >>> f = urllib.request.urlopen(req)
    >>> print(f.read().decode('utf-8'))
    Got Data: "This data is passed to stdin of the CGI"
    

    use the server

    python3 -m http.server
    

    get message as the following when urlopen(req):

    ......
    ssl.SSLError: [Errno 1] _ssl.c:390: error:140770FC:SSLroutines:SSL23_GET_SERVER_HELLO:unknown protocol
    
    During handling of the above exception, another exception occurred:
    ......
    urllib.error.URLError: <urlopen error [Errno 1] _ssl.c:390: error:140770FC:SSL     routines:SSL23_GET_SERVER_HELLO:unknown protocol>
    

    Any suggestion?Thanks a lot.

    • Stefano Mtangoo
      Stefano Mtangoo over 12 years
      have you tried unity --replace and if fails unity --reset?
    • Tal Galili
      Tal Galili over 12 years
      When running the unity --replace I get: warning: no display variable set, setting it to :0 unity-panel-service: no process found
    • Tal Galili
      Tal Galili over 12 years
      and now it doesn't respond to any more commands. Can I return to putting commands without restarting?
    • Stefano Mtangoo
      Stefano Mtangoo over 12 years
      Which version of Ubuntu do you use? I cannot see it in a tag!
    • Tal Galili
      Tal Galili over 12 years
  • Steve
    Steve over 12 years
    Thanks for answering.Now my code as: url='localhost:8000/cgi-bin/test.cgi'; handler=urllib.request.HTTPSHandler(url); opener=urllib.request.build_opener(handler); f = opener.open(url,data=b'This data is passed to stdin of CGI').But error message as:"urllib.error.HTTPError: HTTP Error 501: Unsupported method ('POST')"
  • Steve
    Steve over 12 years
    Sorry,I know for now,it is my faults.
  • Tal Galili
    Tal Galili over 12 years
    ok, I ran both commands (without errors). But the problem stays the same.
  • Stefano Mtangoo
    Stefano Mtangoo over 12 years
    can you reach tty terminal, I mean that black screen where you can login and type commands?
  • Tal Galili
    Tal Galili over 12 years
    Hi Stefano - I can reach it without a problem (through ctrl+alt+F1). The problem is that even after running the above code - I am still left with the same issue :(
  • Stefano Mtangoo
    Stefano Mtangoo over 12 years
    can you test if sudo startx have any effect. If you do this you will later need to remove the Xauthority file it generates!
  • Tal Galili
    Tal Galili over 12 years
    tried and got: faterl server error: server is alreadt active for display 0
  • Tal Galili
    Tal Galili over 12 years
    if this server is no longer running. remove /tmp/.x0-lock and start again
  • Stefano Mtangoo
    Stefano Mtangoo over 12 years
    cool then try sudo rm /tmp/.x0-lock and re-run sudo startx Just another question, do you reach login manager (gdm or lightdm)
  • Tal Galili
    Tal Galili over 12 years
    o.k, I seem to have fixed it - see my answer.
  • Stefano Mtangoo
    Stefano Mtangoo over 12 years
    Glad that finally you can enjoy your computer!
  • joar
    joar over 12 years
    So, what is the answer? You can post it as a separate answer on this post. I came here looking for a solution, but could not find any.
  • m3nda
    m3nda about 9 years
    @joar You must add a variable into the opener, in this case called handler. Previously, you created the handler with urllib.request.HTTPSHandler(url) instead of simple use urllib.request(url).
  • m3nda
    m3nda about 9 years
    But i don't see the httpshandler anyway... on the docs docs.python.org/3.0/library/urllib.request.html.