jueves, 25 de abril de 2013

Open as Administrator in Ubuntu


Open As Administrator in Ubuntu 12.04 & 12.10


This tutorial is going to show you how to add ‘Open As Administrator’ in Nautilus’ context menu in Ubuntu 12.04 & 12.10. This will allow you to edit or modify files or folders with root or administrator permission.
For Ubuntu 10.10 and 10.04, you can just install nautilus-gksu package from Ubuntu Software Center, then you get the ‘Open As Administrator’ option at next login. For Ubuntu 11.04 and 11.10, install nautilus-gksu and copy and paste libnautilus-gksu.so file from /usr/lib/nautilus/extensions-2.0/ to /usr/lib/nautilus/extensions-3.0/
Method 1: (not working for Ubuntu 12.10)
nautilus-gksu package has been dropped in Ubuntu 12.04 and 12.10 since “gksu” 2.0.2-6ubuntu1 release, so you can not install it easily. Here I’m going to use nautilus script to add Open As Administrator functionality.
First download the libnautilus-gksu.so file:
Click to Download libnautilus-gksu.so
Then, run gksudo nautilus in terminal (Ctrl+Alt+T) to open file browser with root privilege, copy and paste this file to/usr/lib/nautilus/extensions-3.0/. Or do it with this command:
sudo cp ~/Downloads/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0/
Log out and back in, or run this command to take effect:
nautilus -q
Enjoy!

No hay comentarios:

Publicar un comentario