Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th April 2006, 05:28 AM
oliver-fedora Offline
Registered User
 
Join Date: Mar 2006
Posts: 48
create a shortcut (launcher) for root terminal on my desktop

This maybe a bit simple for you so please be patient.

Ok, everytime I log-in (FC4) using my user account (non-root), most of the time I need to use the terminal for the root account so I issue the command "su -" then type my root password.
I find this a bit annoying at some time especially in my case that I'm the only one using my computer.
So my question is "It is possible to create a shortcut on my desktop that will automatically launch the terminal on root account without typing the root password"? Or do you have better ideas?

thnx
Reply With Quote
  #2  
Old 14th April 2006, 06:11 AM
sebnukem's Avatar
sebnukem Offline
Registered User
 
Join Date: May 2004
Location: Colorado
Age: 40
Posts: 159
apparently there's a 'gksu' package to do that. Don't know what it's worth I never tried it
ttp://easylinux.info/wiki/Fedora_fc5#How_to_get_a_shortcut_to_Root_Terminal
Reply With Quote
  #3  
Old 14th April 2006, 06:26 AM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,850
If you are using kde you can easily add one to the panel. There is a terminal (super user mode) in the
kmenu -> system -> more applications -> Terminal Program Super User Mode. When it opens it will ask for a password.
Not sure about gnome, but I believe there is one there too.
Reply With Quote
  #4  
Old 14th April 2006, 09:34 AM
oliver-fedora Offline
Registered User
 
Join Date: Mar 2006
Posts: 48
i tried gksu but it doesn't seem to work.
how about a script? is there a way off doing this by writing a script which i can call everytime?
my goal is just to have the root terminal without asking for password.

thnx
Reply With Quote
  #5  
Old 15th April 2006, 12:33 AM
sebnukem's Avatar
sebnukem Offline
Registered User
 
Join Date: May 2004
Location: Colorado
Age: 40
Posts: 159
ok, like i said i don't know anything about gksu...

what about a 'sudo gnome-terminal' command? Update your /etc/sudoers for the command to work without asking the password...
Reply With Quote
  #6  
Old 15th April 2006, 12:46 AM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,850
My 3rd mistake today. I didn't see the "without typing my root password" comment. That said, konsole is stil a valid option,
and you can put it on the desktop, and for the command to launch it (thanks sebnukem) #sudo konsole --type su
konsole with su priveledges no password (if you have sudoers set up for no password)
Reply With Quote
  #7  
Old 15th April 2006, 12:55 AM
dshaw256 Offline
Registered User
 
Join Date: Mar 2006
Location: Virginia
Age: 59
Posts: 246
Add your account to the sudoers file to look like this:

david ALL=(ALL) NOPASSWD: ALL

Run visudo as root to get this line in there. (Note that david is my login name.)

Once you have this in place, you can run any command as super user by just typing "sudo <command>" If you don't mind sticking "sudo" in front of everything you do, it gets the job done in a normal terminal window without a lot of muss.
__________________
Dave Shaw
Registered Linux user #412525
Dell Latitude D610 / FC13
dshaw256@centurylink.net

no problem is so bad that a moron with root can't make it much worse
Reply With Quote
  #8  
Old 15th April 2006, 01:05 AM
sebnukem's Avatar
sebnukem Offline
Registered User
 
Join Date: May 2004
Location: Colorado
Age: 40
Posts: 159
Ok, I personally use GNOME so here's what I came up with:

- I created a custom launcher in the panel with the command 'sudo gnome-terminal -x su -'
- I added the following line in /etc/sudoers:
username hostname=(ALL) ALL, NOPASSWD: /usr/bin/gnome-terminal

(replace username & hostname with valid names)

It's kinda nice. I will keep using it.
Reply With Quote
  #9  
Old 15th April 2006, 01:08 AM
sebnukem's Avatar
sebnukem Offline
Registered User
 
Join Date: May 2004
Location: Colorado
Age: 40
Posts: 159
Dave,

I have tried running just 'sudo gnome-terminal' but the problem with it is that the environment of the terminal is still the user's. The '-x su -' properly reloads the root environment in the terminal.
Reply With Quote
  #10  
Old 15th April 2006, 01:11 AM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,850
My .cshrc alias ...
alias root 'sudo xterm -aw -rw -sb -rightbar -sl 512 -bg black -fg red -fn 10X20'
When it's open, you know at a glance it's a root terminal. Probaly will work with other terms. I type #root I get this.
Attached Thumbnails
Click image for larger version

Name:	root.jpg
Views:	167
Size:	18.7 KB
ID:	7923  
Reply With Quote
  #11  
Old 15th April 2006, 07:34 AM
oliver-fedora Offline
Registered User
 
Join Date: Mar 2006
Posts: 48
hi sebnukem, yes the sudo works, based exactly on what you posted.
thanks a lot, i put the shortcut on my desktop and on the panel bar.
i used the gsku root as icon. (i think that's what it's for...hehe.. )
simple things really makes me happy. :-)

also want to thank others for their help!

cheers

Last edited by oliver-fedora; 15th April 2006 at 07:38 AM.
Reply With Quote
  #12  
Old 15th April 2006, 01:00 PM
dshaw256 Offline
Registered User
 
Join Date: Mar 2006
Location: Virginia
Age: 59
Posts: 246
Quote:
Originally Posted by sebnukem
Dave,

I have tried running just 'sudo gnome-terminal' but the problem with it is that the environment of the terminal is still the user's. The '-x su -' properly reloads the root environment in the terminal.
That's true, and it hadn't occurred to me. Thanks for pointing that out.
__________________
Dave Shaw
Registered Linux user #412525
Dell Latitude D610 / FC13
dshaw256@centurylink.net

no problem is so bad that a moron with root can't make it much worse
Reply With Quote
  #13  
Old 31st May 2006, 02:51 AM
foxmuldar Offline
Registered User
 
Join Date: Nov 2005
Location: Alabama
Age: 63
Posts: 217
I had it on Debian, i want to be able to turn on my linux box and signin without a user name or PW...will someone please help me with this?

Thanks in advance for the help
foxmuldar,
Reply With Quote
Reply

Tags
create, desktop, launcher, root, shortcut, terminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut for root terminal? MuadNu Using Fedora 9 6th November 2009 06:38 AM
Create shortcut to Wine prog on Desktop yanjchan Using Fedora 9 26th September 2009 02:16 AM
how to create desktop shortcut in kde4 Comrad Using Fedora 3 15th September 2008 03:44 PM
Terminal shortcut when right click desktop gone :( Saint Mike Using Fedora 2 31st March 2006 10:33 AM
Finding desktop icons from Create Launcher in FC3 MakeMyDay Guides & Solutions (No Questions) 2 27th July 2005 09:28 PM


Current GMT-time: 21:31 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat