I used to be able to do so, but something as simple as this fails now:
gksudo gedit
and this also fails:
sudo gedit
I receive the error:
Cannot open display.
I haved checked this:
- .Xauthority and .ICEauthority have my user as owner and also read/write permissions
- As both files are binary, I cannot understand them and check if they are corrupted
Probably, I have some misconfiguration. I have read this before and many other guides before asking.
I'm using Ubuntu Precise 12.04 64-bit.