0

In my Ubuntu 12.04.2 with GNOME-Shell I'm not able anymore to run any graphical programs with gksudo or sudo.

I always get an error like cannot open display

I don't remember any particular changes I've done manually apart of the regular updates. I use also GNOME3 PPA and Q-series LTS Backport PPA.

I noticed also that I'm not able anymore to install extensions from the website, but I think it's not related, of course I'm not sure too :)

I've already spent time and effort searching the topic everywhere and the few I found didn't give any solution for me. I don't want to reinstall.

BuZZ-dEE
  • 13,993
  • 18
  • 63
  • 80
  • This question has been asked before with some answers (but none accepted): http://askubuntu.com/questions/163384/i-cannot-start-graphical-apps-as-root – Stephen Ostermiller Feb 22 '13 at 23:13
  • Thanks, already checked that's why I'm asking again. Anyway all the xorg packages was reinstalled under the _xserver-xorg-renamed_ package so now every xorg package name end with a _-lts-quantal_ . Of course I can't going back to the previous packages. – user134725 Feb 23 '13 at 11:36

1 Answers1

0

What does:

not able anymore to run any graphical programs with gksudo or sudo

mean?

If you see:

username is not in the sudoers file. This incident will be reported

While trying to "sudo" smth, instructions from psychocats.net/ubuntu/fixsudo might be helpful to you.

Generally, you need to have root shell to check and, if necessary, modify /etc/sudoers file. You should also be in admin group:

usermod -a -G admin username #from the root shell

BuZZ-dEE
  • 13,993
  • 18
  • 63
  • 80
  • thanks amdenis. simply the terminal says "cannot open display", and even absolutely nothing if for example I use **gksudo** to open nautilus. _/etc/sudoers/_ is ok, and **sudo** in terminal is working perfectly. I mean **sudo nano** is working, **sudo gedit** is not working, **gedit** is working – user134725 Feb 22 '13 at 22:55