Page 1 of 2 12 LastLast
Results 1 to 10 of 32

Thread: [SOLVED] HOWTO: right click and open a file in Nautilus with gedit as root

Hybrid View

  1. #1
    arnieboy Guest

    [SOLVED] HOWTO: right click and open a file in Nautilus with gedit as root

    we often need to edit files as root in a text editor. Now we can do this with a right click in Nautilus (no big deal about opening in terminal but what the heck!)
    Code:
    gedit ~/.gnome2/nautilus-scripts/gedit-root
    Copy the following lines into the file and save it and close it.
    Code:
    #created by arnieboy
    foo=`gksudo -u root -k -m "enter your password for gedit root access" /bin/echo "Do you have root access?"`
    sudo gedit $NAUTILUS_SCRIPT_SELECTED_URIS
    Then make it executable with
    Code:
    chmod +x ~/.gnome2/nautilus-scripts/gedit-root
    thats it you are all set. Now right click on any file in nautilus and under "scripts" u will find "gedit-root"
    click and enjoy!
    U can even select multiple files and open them in gedit as root in tabbed windows just by right clicking and using this script. The possibilities are endless.

  2. #2
    Join Date
    Sep 2005
    Location
    Phoenix,Az
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    Thanks Arnie,
    Breezy has been doing great. I have a question off topic though. Since I have k3b for my cd burning, how would I change the default player for mp3's from sound juicer to xmms. I have all codecs installed. thanks for the script. I've been looking for a way to do this without terminal.

    My Best,
    MButterman

  3. #3
    Join Date
    Oct 2005
    Beans
    51
    Distro
    Ubuntu 6.06

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    Tanks for the how-to. This is really going to help me ^_^

    i'm a noob at Linux. and sometimes I need to edit some files and I don't like go to the terminal and do the things there..

  4. #4
    Join Date
    Apr 2005
    Location
    Sundsvall, Sweden
    Beans
    140
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    great tip!
    Quote Originally Posted by Benjamin Franklin
    They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.

  5. #5
    arnieboy Guest

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    Quote Originally Posted by MButterman
    Thanks Arnie,
    Breezy has been doing great. I have a question off topic though. Since I have k3b for my cd burning, how would I change the default player for mp3's from sound juicer to xmms. I have all codecs installed. thanks for the script. I've been looking for a way to do this without terminal.

    My Best,
    MButterman
    open nautilus, right click on any mp3 hit properties and change the default player from there.

  6. #6
    manicka Guest

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    Thanks arnieboy, this script since you made it available in hoary, has been something I have used extensively.

  7. #7
    arnieboy Guest

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    Quote Originally Posted by manicka
    Thanks arnieboy, this script since you made it available in hoary, has been something I have used extensively.
    thank u for all the appreciation manicka :)

  8. #8
    Join Date
    Jul 2005
    Beans
    21
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    Thankyou so much arnieboy that is a great tip.This is such a great forum you learn so much on here.

    Cheers oldlucky
    Last edited by oldlucky; October 15th, 2005 at 09:04 AM. Reason: spelling

  9. #9
    Join Date
    May 2005
    Location
    At home
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    how about a nautilus hack that allows sudo access to moving/renaming/et cetera of restricted folders/files?

  10. #10
    Join Date
    Apr 2005
    Beans
    1,467

    Re: HOWTO: right click and open a file in Nautilus with gedit as root

    Cool Im also looking for right click open file as root. Used mostly to play abound with and update games with hacks and patches.

    Edit re: does it work in 5.10 noticed that before end edited while you where posting. I was doing a bunch of searches and confused it with a 5.04 post
    Last edited by Omnios; October 16th, 2005 at 07:08 PM.
    Back to using Ubuntu

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •