Lost access to the unity interface how to fix?
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
Related videos on Youtube
Steve
Updated on September 18, 2022Comments
-
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 over 12 yearshave you tried unity --replace and if fails unity --reset?
-
Tal Galili over 12 yearsWhen running the unity --replace I get: warning: no display variable set, setting it to :0 unity-panel-service: no process found
-
Tal Galili over 12 yearsand now it doesn't respond to any more commands. Can I return to putting commands without restarting?
-
Stefano Mtangoo over 12 yearsWhich version of Ubuntu do you use? I cannot see it in a tag!
-
Tal Galili over 12 yearsthere we go ctrl+c ubuntuforums.org/showthread.php?t=1047348
-
-
Steve over 12 yearsThanks 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 over 12 yearsSorry,I know for now,it is my faults.
-
Tal Galili over 12 yearsok, I ran both commands (without errors). But the problem stays the same.
-
Stefano Mtangoo over 12 yearscan you reach tty terminal, I mean that black screen where you can login and type commands?
-
Tal Galili over 12 yearsHi 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 over 12 yearscan 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 over 12 yearstried and got: faterl server error: server is alreadt active for display 0
-
Tal Galili over 12 yearsif this server is no longer running. remove /tmp/.x0-lock and start again
-
Stefano Mtangoo over 12 yearscool 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 over 12 yearso.k, I seem to have fixed it - see my answer.
-
Stefano Mtangoo over 12 yearsGlad that finally you can enjoy your computer!
-
joar over 12 yearsSo, 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 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 about 9 yearsBut i don't see the httpshandler anyway... on the docs docs.python.org/3.0/library/urllib.request.html.