How can I install nautilus-gksu?
nautilus-gksu
don't work anymore for a long time since version 12.04 of Ubuntu.
In replace for this use "Nautilus Admin" extension where is available in the official Ubuntu repositories:
sudo apt-get install nautilus-admin
What it do?
Runs Nautilus As Root for any folder and for files open as root with gedit
How to use?
Inside Nautilus, Right-click on any Nautilus file/folder and then Open as Administrator/Edit as Administrator
Apparently nautilus-gksu
has not been in the Ubuntu repositories since 12.04.
I got the below from: http://www.upubuntu.com/2012/09/open-files-and-folders-as-root-from.html
sudo apt-add-repository ppa:upubuntu-com/ppa
sudo apt-get update
sudo apt-get install nautilus-gksu
Then restart nautilus with this command:
nautilus -q
I didn't try this myself, and don't know if there's a better repository to add than upubuntu; it's also supposed to be available from the Linux Mint repositories from my quick Google search. If you Google for alternates, I would recommend limiting the results to the last year, to avoid obsolete references.
In Ubuntu 18.04 you cannot use nautilus-gksu anymore.
Alternative way to use a gksu command is to alias it as follows:
function __gksufn() {
"$1" admin://"$2"
}
export alias gksu=__gksufn
In this way you can open files as gksu gedit /path/to/your/file.txt