Klik Kanan Root Nautilus Here (via nautilus script)

on Kamis, 27 Agustus 2009

Bertemu lagi di pelajaran Nautilus script, oprekan Nautilus script kita kali ini adalah Klik kanan Root Nautilus Here , yang artinya kita akan menambah fungsi klik kanan kita di nautilus (file manager) agar bisa langsung masuk ke mode root di nautilus, Langsung praktek aja yuk :

1.Buka Aplication > Accessories > Text Editor
2.Copy teks dibawah ini, paste di Teks Editor, simpan dan beri nama (misalnya : Root Nautilus Here)


#!/bin/sh

# root-nautilus-here

# opens a root-enabled instance of a nautilus window in selected location

# requires sudo priviledges and gksudo, which may involve security risks.

#Install in your ~/Nautilus/scripts directory.

#

# Placed in the public domain by Shane T. Mueller 2001

# Fixes provided by Doug Nordwall

#

# 2004.04.18 -- keith@penguingurus.com - Added gksudo usage to provide popup

# password window if sudo has expired. Line only echos got

# root to std output. But gksudo updates your sudo access

# privs, so running nautilus with sudo will succeed

# without asking for a password.





foo=`gksudo -u root -k -m "enter your password for nautilus root access" /bin/echo "got r00t?"`

sudo nautilus --no-desktop $NAUTILUS_SCRIPT_CURRENT_URI



3.Masuk ke Nautilus klik kanan file "Root Nautilus Here", pilih properties Masuk ke tab Permission, Centang Allow Executing File As Program.
4.Copy file tersebut ke dalam folder /home/nama_user_anda/.gnome2/nautilus-scripts (jika tidak menemukan folder .gnome2 pada file manager klik menu view lalu pilih Show Hidden Files atau tekan Ctrl +H)
5.Sekarang kita bisa mmasuk ke mode root nautilus cukup dengan Klik kanan pada image > Scripts > Root Nautilus Here

Semoga bermanfaat


Ranking: 5
Comments
0 Comments
 
© Geazzy Corner All Rights Reserved