LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-06-2007, 05:39 PM   #1
kiasta
LQ Newbie
 
Registered: May 2006
Location: Willis, Michigan
Distribution: Ubuntu 7.04 BETA
Posts: 27

Rep: Reputation: 15
how to create sudo right-click function?


I have been trying to do this for a while...I am not exactly sure how to create a right-click function, I believe the command is:

Code:
gksudo "gnome-open %u"
I am able to create a desktop launcher, but I would like to not have to drag and drop it. Sorry for the noobish question, but I am still new to linux, thank you.
 
Old 04-06-2007, 07:53 PM   #2
sharkee
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Kubuntu 5.10 Ubuntu Dapper
Posts: 220

Rep: Reputation: 30
Quote:
Originally Posted by kiasta
I have been trying to do this for a while...I am not exactly sure how to create a right-click function, I believe the command is:

Code:
gksudo "gnome-open %u"
I am able to create a desktop launcher, but I would like to not have to drag and drop it. Sorry for the noobish question, but I am still new to linux, thank you.
sudo apt-get install nautilus-open-terminal

reboot and your sweet.

Regards
Sharke
 
Old 04-06-2007, 08:21 PM   #3
kiasta
LQ Newbie
 
Registered: May 2006
Location: Willis, Michigan
Distribution: Ubuntu 7.04 BETA
Posts: 27

Original Poster
Rep: Reputation: 15
I guess I should have specified the distro I am using, my apologies, anyway I am using Ubuntu 6.10 (CD version, not sure if there is a difference between the CD and DVD versions). I tried that

Code:
sudo apt-get install nautilus-open-terminal
command but I get this error

Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package nautilus-open-terminal
any ideas?
 
Old 04-07-2007, 02:28 AM   #4
DJNolz83
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
It might be in a repository that you do not have configured.

Try http://easylinux.info/wiki/Ubuntu:Edgy for more info on adding repos
 
Old 04-07-2007, 09:23 AM   #5
kiasta
LQ Newbie
 
Registered: May 2006
Location: Willis, Michigan
Distribution: Ubuntu 7.04 BETA
Posts: 27

Original Poster
Rep: Reputation: 15
Actually, the answer was in the guide, I just did not see it, here is an explination in case other people are wondering the same thing.

How to open files as root user via right click:

type this into the terminal

Code:
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
it creates a new file directed at the /home/(user)/.gnome2/nautilus-scripts directory as well as opening as root.

Type this into the new file

Code:
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
	gksudo "gnome-open $uri" &
done
and then save the file

Code:
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
now to enable the script, right-click the file (Open as root is the name of the file)

I got this from here

Last edited by kiasta; 04-11-2007 at 11:09 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to turn of double-click function of hp nx6110 notebook ungua SUSE / openSUSE 3 08-20-2006 05:05 AM
Disable Mozilla Click&Drag function Feyd-Rautha Linux - Software 0 12-21-2005 10:41 AM
Trackpad taps to click easily on Dell laptop with SuSE; Knob-mouse does not function binarybase Linux - Newbie 4 08-07-2005 04:55 PM
How can I make my touchpad have click function? homesp Debian 1 08-04-2005 08:30 AM
How do I disable the Right Click function on the mouse??? steve_f60 Linux - General 6 07-21-2004 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration