I've read that it's bad to run gui applications from a terminal using sudo
.
In order to administer some eclipse updates, I need elevated privileges (view screenshot). How do I do this correctly?
I've read that it's bad to run gui applications from a terminal using sudo
.
In order to administer some eclipse updates, I need elevated privileges (view screenshot). How do I do this correctly?
To run GUI applications as root
you should not be using sudo
, but instead use gksu
.
In this particular case run gksu eclipse
, then enter your password.
kdesu
instead of gksu
. For example press [ALT] + [F2]
and type kdesu eclipse
– Farahmand
Feb 10 '14 at 11:41
If, like me, you're forced to sudo eclipse
because you did it once out of desperation, which changed some config file as root, and permanently rooted you in Sudoland for Eclipse. You can try:
sudo chmod -R a+rwx ~/workspace
sudo chmod -R a+rwx ~/.eclipse
that got me out of it.
Basically the Eclipse update system does not work well when repackaged for various operating system packages. If "apt-get upgrade" does not work for you, then I would suggest you stay away from the packaged version of Eclipse, and simply download the one you need directly from Eclipse, unpack and run it.
Then you can update it as needed.
gksu
– Uri Herrera Jan 29 '13 at 18:51